LLResizeBar Class Reference

#include <llresizebar.h>

Inheritance diagram for LLResizeBar:

Inheritance graph
[legend]
Collaboration diagram for LLResizeBar:

Collaboration graph
[legend]
List of all members.

Public Types

 LEFT
 TOP
 RIGHT
 BOTTOM
enum  Side { LEFT, TOP, RIGHT, BOTTOM }

Public Member Functions

 LLResizeBar (const LLString &name, LLView *resizing_view, const LLRect &rect, S32 min_size, S32 max_size, Side side)
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
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)
void setResizeLimits (S32 min_size, S32 max_size)
void setEnableSnapping (BOOL enable)

Protected Attributes

S32 mDragLastScreenX
S32 mDragLastScreenY
S32 mLastMouseScreenX
S32 mLastMouseScreenY
LLCoordGL mLastMouseDir
S32 mMinSize
S32 mMaxSize
Side mSide
BOOL mSnappingEnabled
LLViewmResizingView

Detailed Description

Definition at line 38 of file llresizebar.h.


Member Enumeration Documentation

enum LLResizeBar::Side

Enumerator:
LEFT 
TOP 
RIGHT 
BOTTOM 

Definition at line 41 of file llresizebar.h.


Constructor & Destructor Documentation

LLResizeBar::LLResizeBar ( const LLString name,
LLView resizing_view,
const LLRect rect,
S32  min_size,
S32  max_size,
Side  side 
)

Definition at line 44 of file llresizebar.cpp.

References BOTTOM, FALSE, LEFT, RIGHT, LLView::setFollowsBottom(), LLView::setFollowsLeft(), LLView::setFollowsRight(), LLView::setFollowsTop(), LLView::setSaveToXML(), and TOP.


Member Function Documentation

LLString LLResizeBar::getWidgetTag (  )  const [virtual]

Implements LLView.

Definition at line 127 of file llresizebar.cpp.

References LL_RESIZE_BAR_TAG.

EWidgetType LLResizeBar::getWidgetType (  )  const [virtual]

Implements LLView.

Definition at line 122 of file llresizebar.cpp.

References WIDGET_TYPE_RESIZE_BAR.

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

Reimplemented from LLView.

Definition at line 132 of file llresizebar.cpp.

References BOTTOM, FALSE, LLView::findSnapEdge(), LLView::getRect(), LLView::getRootView(), LLControlGroup::getS32(), LLView::getWindow(), LLView::hasMouseCapture(), LEFT, llclamp(), LLRectBase< Type >::localPointInRect(), LLView::localPointToScreen(), LLRectBase< Type >::mBottom, mDragLastScreenX, mDragLastScreenY, mLastMouseDir, mLastMouseScreenX, mLastMouseScreenY, LLRectBase< Type >::mLeft, mMaxSize, mMinSize, mResizingView, LLRectBase< Type >::mRight, mSide, mSnappingEnabled, LLRectBase< Type >::mTop, LLCoord::mX, LLCoord::mY, NULL, RIGHT, S32, LLUI::sConfigGroup, LLWindow::setCursor(), LLView::setRect(), LLView::SNAP_BOTTOM, LLView::SNAP_LEFT, LLView::SNAP_PARENT_AND_SIBLINGS, LLView::SNAP_RIGHT, LLView::SNAP_TOP, LLView::snappedTo(), TOP, LLRectBase< Type >::translate(), TRUE, UI_CURSOR_SIZENS, UI_CURSOR_SIZEWE, and LLView::userSetShape().

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

Reimplemented from LLView.

Definition at line 88 of file llresizebar.cpp.

References gFocusMgr, LLView::localPointToScreen(), mDragLastScreenX, mDragLastScreenY, LLView::mEnabled, mLastMouseScreenX, mLastMouseScreenY, LLFocusMgr::setMouseCapture(), and TRUE.

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

Reimplemented from LLView.

Definition at line 105 of file llresizebar.cpp.

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

void LLResizeBar::setEnableSnapping ( BOOL  enable  )  [inline]

Definition at line 54 of file llresizebar.h.

References mSnappingEnabled.

Referenced by LLLayoutStack::LLEmbeddedPanel::LLEmbeddedPanel().

void LLResizeBar::setResizeLimits ( S32  min_size,
S32  max_size 
) [inline]

Definition at line 53 of file llresizebar.h.

References mMaxSize, and mMinSize.

Referenced by LLFloater::setResizeLimits().


Member Data Documentation

S32 LLResizeBar::mDragLastScreenX [protected]

Definition at line 57 of file llresizebar.h.

Referenced by handleHover(), and handleMouseDown().

S32 LLResizeBar::mDragLastScreenY [protected]

Definition at line 58 of file llresizebar.h.

Referenced by handleHover(), and handleMouseDown().

LLCoordGL LLResizeBar::mLastMouseDir [protected]

Definition at line 61 of file llresizebar.h.

Referenced by handleHover().

S32 LLResizeBar::mLastMouseScreenX [protected]

Definition at line 59 of file llresizebar.h.

Referenced by handleHover(), and handleMouseDown().

S32 LLResizeBar::mLastMouseScreenY [protected]

Definition at line 60 of file llresizebar.h.

Referenced by handleHover(), and handleMouseDown().

S32 LLResizeBar::mMaxSize [protected]

Definition at line 63 of file llresizebar.h.

Referenced by handleHover(), and setResizeLimits().

S32 LLResizeBar::mMinSize [protected]

Definition at line 62 of file llresizebar.h.

Referenced by handleHover(), and setResizeLimits().

LLView* LLResizeBar::mResizingView [protected]

Definition at line 66 of file llresizebar.h.

Referenced by handleHover().

Side LLResizeBar::mSide [protected]

Definition at line 64 of file llresizebar.h.

Referenced by handleHover().

BOOL LLResizeBar::mSnappingEnabled [protected]

Definition at line 65 of file llresizebar.h.

Referenced by handleHover(), and setEnableSnapping().


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