LLDragHandle Class Reference

#include <lldraghandle.h>

Inheritance diagram for LLDragHandle:

Inheritance graph
[legend]
Collaboration diagram for LLDragHandle:

Collaboration graph
[legend]
List of all members.

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 LLStringgetTitle () 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
LLTextBoxmTitleBox
S32 mMaxTitleWidth
BOOL mForeground

Static Protected Attributes

static S32 sSnapMargin = 5

Detailed Description

Definition at line 44 of file lldraghandle.h.


Constructor & Destructor Documentation

LLDragHandle::LLDragHandle ( const LLString name,
const LLRect rect,
const LLString title 
)

Definition at line 58 of file lldraghandle.cpp.

References LLControlGroup::getS32(), LLUI::sConfigGroup, LLView::setSaveToXML(), and sSnapMargin.


Member Function Documentation

virtual void LLDragHandle::draw (  )  [pure virtual]

Reimplemented from LLView.

Implemented in LLDragHandleTop, and LLDragHandleLeft.

virtual const LLString& LLDragHandle::getTitle (  )  const [pure virtual]

Implemented in LLDragHandleTop, and LLDragHandleLeft.

Referenced by LLFloater::getShortTitle(), and LLFloater::getTitle().

BOOL LLDragHandle::handleHover ( S32  x,
S32  y,
MASK  mask 
) [virtual]

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().

BOOL LLDragHandle::handleMouseDown ( S32  x,
S32  y,
MASK  mask 
) [virtual]

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().

BOOL LLDragHandle::handleMouseUp ( S32  x,
S32  y,
MASK  mask 
) [virtual]

Reimplemented from LLView.

Definition at line 307 of file lldraghandle.cpp.

References gFocusMgr, LLView::hasMouseCapture(), NULL, LLFocusMgr::setMouseCapture(), and TRUE.

virtual void LLDragHandle::reshape ( S32  width,
S32  height,
BOOL  called_from_parent = TRUE 
) [pure virtual]

Reimplemented from LLView.

Implemented in LLDragHandleTop, and LLDragHandleLeft.

void LLDragHandle::setForeground ( BOOL  b  )  [inline]

Definition at line 51 of file lldraghandle.h.

References mForeground.

Referenced by LLFloater::setForeground().

void LLDragHandle::setMaxTitleWidth ( S32  max_width  )  [inline]

Definition at line 52 of file lldraghandle.h.

References llmin(), and mMaxTitleWidth.

Referenced by LLFloater::updateButtons().

virtual void LLDragHandle::setTitle ( const LLString title  )  [pure virtual]

Implemented in LLDragHandleTop, and LLDragHandleLeft.

Referenced by LLFloater::setTitle(), and setValue().

void LLDragHandle::setTitleVisible ( BOOL  visible  ) 

Definition at line 75 of file lldraghandle.cpp.

References mTitleBox, and LLView::setVisible().

Referenced by LLFloater::setIsChrome().

void LLDragHandle::setValue ( const LLSD value  )  [virtual]

Reimplemented from LLView.

Definition at line 384 of file lldraghandle.cpp.

References LLSD::asString(), and setTitle().


Member Data Documentation

LLColor4 LLDragHandle::mDragHighlightColor [protected]

Definition at line 70 of file lldraghandle.h.

S32 LLDragHandle::mDragLastScreenX [protected]

Definition at line 65 of file lldraghandle.h.

Referenced by handleHover(), and handleMouseDown().

S32 LLDragHandle::mDragLastScreenY [protected]

Definition at line 66 of file lldraghandle.h.

Referenced by handleHover(), and handleMouseDown().

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]

Definition at line 69 of file lldraghandle.h.

Referenced by handleHover().

S32 LLDragHandle::mLastMouseScreenX [protected]

Definition at line 67 of file lldraghandle.h.

Referenced by handleHover(), and handleMouseDown().

S32 LLDragHandle::mLastMouseScreenY [protected]

Definition at line 68 of file lldraghandle.h.

Referenced by handleHover(), and handleMouseDown().

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]

Definition at line 77 of file lldraghandle.h.

Referenced by handleHover(), and LLDragHandle().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:14 2010 for Second Life Viewer by  doxygen 1.4.7