#include <lldraghandle.h>
Inheritance diagram for LLDragHandle:
Public Member Functions | |
LLDragHandle (const LLString &name, const LLRect &rect, const LLString &title) | |
virtual void | setValue (const LLSD &value) |
void | setForeground (BOOL b) |
void | setMaxTitleWidth (S32 max_width) |
void | setTitleVisible (BOOL visible) |
virtual void | setTitle (const LLString &title)=0 |
virtual const LLString & | getTitle () const =0 |
virtual void | draw ()=0 |
virtual void | reshape (S32 width, S32 height, BOOL called_from_parent=TRUE)=0 |
virtual BOOL | handleHover (S32 x, S32 y, MASK mask) |
virtual BOOL | handleMouseDown (S32 x, S32 y, MASK mask) |
virtual BOOL | handleMouseUp (S32 x, S32 y, MASK mask) |
Protected Attributes | |
S32 | mDragLastScreenX |
S32 | mDragLastScreenY |
S32 | mLastMouseScreenX |
S32 | mLastMouseScreenY |
LLCoordGL | mLastMouseDir |
LLColor4 | mDragHighlightColor |
LLColor4 | mDragShadowColor |
LLTextBox * | mTitleBox |
S32 | mMaxTitleWidth |
BOOL | mForeground |
Static Protected Attributes | |
static S32 | sSnapMargin = 5 |
Definition at line 44 of file lldraghandle.h.
Definition at line 58 of file lldraghandle.cpp.
References LLControlGroup::getS32(), LLUI::sConfigGroup, LLView::setSaveToXML(), and sSnapMargin.
virtual void LLDragHandle::draw | ( | ) | [pure virtual] |
virtual const LLString& LLDragHandle::getTitle | ( | ) | const [pure virtual] |
Implemented in LLDragHandleTop, and LLDragHandleLeft.
Referenced by LLFloater::getShortTitle(), and LLFloater::getTitle().
Reimplemented from LLView.
Definition at line 320 of file lldraghandle.cpp.
References FALSE, LLView::findSnapRect(), LLView::getName(), LLView::getParent(), LLView::getRect(), LLView::getVisible(), LLView::getWindow(), LLView::hasMouseCapture(), lldebugst, llendl, LLView::localPointToScreen(), LLRectBase< Type >::mBottom, mDragLastScreenX, mDragLastScreenY, mLastMouseDir, mLastMouseScreenX, mLastMouseScreenY, LLRectBase< Type >::mLeft, LLCoord::mX, LLCoord::mY, S32, LLWindow::setCursor(), LLView::setRect(), LLView::SNAP_PARENT_AND_SIBLINGS, LLView::snappedTo(), sSnapMargin, LLRectBase< Type >::translate(), TRUE, UI_CURSOR_ARROW, and LLView::userSetShape().
Reimplemented from LLView.
Definition at line 292 of file lldraghandle.cpp.
References gFocusMgr, LLView::localPointToScreen(), mDragLastScreenX, mDragLastScreenY, mLastMouseScreenX, mLastMouseScreenY, LLFocusMgr::setMouseCapture(), and TRUE.
Referenced by LLFloater::handleMouseDown().
Reimplemented from LLView.
Definition at line 307 of file lldraghandle.cpp.
References gFocusMgr, LLView::hasMouseCapture(), NULL, LLFocusMgr::setMouseCapture(), and TRUE.
Definition at line 51 of file lldraghandle.h.
References mForeground.
Referenced by LLFloater::setForeground().
Definition at line 52 of file lldraghandle.h.
References llmin(), and mMaxTitleWidth.
Referenced by LLFloater::updateButtons().
Implemented in LLDragHandleTop, and LLDragHandleLeft.
Referenced by LLFloater::setTitle(), and setValue().
Definition at line 75 of file lldraghandle.cpp.
References mTitleBox, and LLView::setVisible().
Referenced by LLFloater::setIsChrome().
Reimplemented from LLView.
Definition at line 384 of file lldraghandle.cpp.
References LLSD::asString(), and setTitle().
LLColor4 LLDragHandle::mDragHighlightColor [protected] |
Definition at line 70 of file lldraghandle.h.
S32 LLDragHandle::mDragLastScreenX [protected] |
S32 LLDragHandle::mDragLastScreenY [protected] |
LLColor4 LLDragHandle::mDragShadowColor [protected] |
Definition at line 71 of file lldraghandle.h.
BOOL LLDragHandle::mForeground [protected] |
Definition at line 74 of file lldraghandle.h.
Referenced by LLDragHandleLeft::draw(), LLDragHandleTop::draw(), and setForeground().
LLCoordGL LLDragHandle::mLastMouseDir [protected] |
S32 LLDragHandle::mLastMouseScreenX [protected] |
S32 LLDragHandle::mLastMouseScreenY [protected] |
S32 LLDragHandle::mMaxTitleWidth [protected] |
Definition at line 73 of file lldraghandle.h.
Referenced by LLDragHandleTop::reshapeTitleBox(), and setMaxTitleWidth().
LLTextBox* LLDragHandle::mTitleBox [protected] |
Definition at line 72 of file lldraghandle.h.
Referenced by LLDragHandleLeft::draw(), LLDragHandleTop::draw(), LLDragHandleTop::getTitle(), LLDragHandleTop::reshapeTitleBox(), LLDragHandleLeft::setTitle(), LLDragHandleTop::setTitle(), and setTitleVisible().
S32 LLDragHandle::sSnapMargin = 5 [static, protected] |