#include <lldraghandle.h>
Public Member Functions | |
LLDragHandle (const LLString &name, const LLRect &rect, const LLString &title) | |
virtual | ~LLDragHandle () |
virtual void | setValue (const LLSD &value) |
void | setForeground (BOOL b) |
BOOL | getForeground () const |
void | setMaxTitleWidth (S32 max_width) |
S32 | getMaxTitleWidth () const |
void | setTitleVisible (BOOL visible) |
virtual void | setTitle (const LLString &title)=0 |
virtual const LLString & | getTitle () const =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 Member Functions | |
LLTextBox * | getTitleBox () const |
void | setTitleBox (LLTextBox *) |
Private Attributes | |
S32 | mDragLastScreenX |
S32 | mDragLastScreenY |
S32 | mLastMouseScreenX |
S32 | mLastMouseScreenY |
LLCoordGL | mLastMouseDir |
LLColor4 | mDragHighlightColor |
LLColor4 | mDragShadowColor |
LLTextBox * | mTitleBox |
S32 | mMaxTitleWidth |
BOOL | mForeground |
Static Private 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 LLDragHandle::~LLDragHandle | ( | ) | [inline, virtual] |
Definition at line 48 of file lldraghandle.h.
References NULL, and setTitleBox().
void LLDragHandle::setValue | ( | const LLSD & | value | ) | [virtual] |
Reimplemented from LLView.
Definition at line 367 of file lldraghandle.cpp.
References LLSD::asString(), and setTitle().
void LLDragHandle::setForeground | ( | BOOL | b | ) | [inline] |
Definition at line 52 of file lldraghandle.h.
References mForeground.
Referenced by LLFloater::setForeground().
BOOL LLDragHandle::getForeground | ( | ) | const [inline] |
Definition at line 53 of file lldraghandle.h.
References mForeground.
Referenced by LLDragHandleLeft::draw(), and LLDragHandleTop::draw().
void LLDragHandle::setMaxTitleWidth | ( | S32 | max_width | ) | [inline] |
Definition at line 54 of file lldraghandle.h.
References llmin(), and mMaxTitleWidth.
Referenced by LLFloater::updateButtons().
S32 LLDragHandle::getMaxTitleWidth | ( | ) | const [inline] |
Definition at line 55 of file lldraghandle.h.
References mMaxTitleWidth.
Referenced by LLDragHandleTop::reshapeTitleBox().
void LLDragHandle::setTitleVisible | ( | BOOL | visible | ) |
Definition at line 75 of file lldraghandle.cpp.
References mTitleBox, and LLView::setVisible().
Referenced by LLFloater::setIsChrome(), and LLFloater::setTitleVisible().
virtual void LLDragHandle::setTitle | ( | const LLString & | title | ) | [pure virtual] |
Implemented in LLDragHandleTop, and LLDragHandleLeft.
Referenced by LLFloater::setTitle(), and setValue().
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 303 of file lldraghandle.cpp.
References FALSE, LLView::findSnapRect(), LLView::getName(), LLView::getParent(), LLView::getRect(), 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 275 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 290 of file lldraghandle.cpp.
References gFocusMgr, LLView::hasMouseCapture(), NULL, LLFocusMgr::setMouseCapture(), and TRUE.
LLTextBox* LLDragHandle::getTitleBox | ( | ) | const [inline, protected] |
Definition at line 66 of file lldraghandle.h.
References mTitleBox.
Referenced by LLDragHandleLeft::draw(), LLDragHandleTop::draw(), LLDragHandleTop::getTitle(), and LLDragHandleTop::reshapeTitleBox().
void LLDragHandle::setTitleBox | ( | LLTextBox * | titlebox | ) | [protected] |
Definition at line 83 of file lldraghandle.cpp.
References LLView::addChild(), mTitleBox, and LLView::removeChild().
Referenced by LLDragHandleLeft::setTitle(), LLDragHandleTop::setTitle(), and ~LLDragHandle().
S32 LLDragHandle::mDragLastScreenX [private] |
S32 LLDragHandle::mDragLastScreenY [private] |
S32 LLDragHandle::mLastMouseScreenX [private] |
S32 LLDragHandle::mLastMouseScreenY [private] |
LLCoordGL LLDragHandle::mLastMouseDir [private] |
LLColor4 LLDragHandle::mDragHighlightColor [private] |
Definition at line 75 of file lldraghandle.h.
LLColor4 LLDragHandle::mDragShadowColor [private] |
Definition at line 76 of file lldraghandle.h.
LLTextBox* LLDragHandle::mTitleBox [private] |
Definition at line 77 of file lldraghandle.h.
Referenced by getTitleBox(), setTitleBox(), and setTitleVisible().
S32 LLDragHandle::mMaxTitleWidth [private] |
Definition at line 78 of file lldraghandle.h.
Referenced by getMaxTitleWidth(), and setMaxTitleWidth().
BOOL LLDragHandle::mForeground [private] |
S32 LLDragHandle::sSnapMargin = 5 [static, private] |