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

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 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)
virtual BOOL handleDoubleClick (S32 x, S32 y, MASK mask)
void setResizeLimits (S32 min_size, S32 max_size)
void setEnableSnapping (BOOL enable)
void setAllowDoubleClickSnapping (BOOL allow)

Private Attributes

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


Detailed Description

Definition at line 38 of file llresizebar.h.


Member Enumeration Documentation

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 42 of file llresizebar.cpp.

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

Here is the call graph for this function:


Member Function Documentation

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

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

Reimplemented from LLView.

Definition at line 87 of file llresizebar.cpp.

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

Here is the call graph for this function:

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

Reimplemented from LLView.

Definition at line 101 of file llresizebar.cpp.

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

Here is the call graph for this function:

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

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

Definition at line 51 of file llresizebar.h.

References mMaxSize, and mMinSize.

Referenced by LLFloater::setResizeLimits().

Here is the caller graph for this function:

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

Definition at line 52 of file llresizebar.h.

References mSnappingEnabled.

void LLResizeBar::setAllowDoubleClickSnapping ( BOOL  allow  )  [inline]

Definition at line 53 of file llresizebar.h.

References mAllowDoubleClickSnapping.


Member Data Documentation

Definition at line 56 of file llresizebar.h.

Referenced by handleHover(), and handleMouseDown().

Definition at line 57 of file llresizebar.h.

Referenced by handleHover(), and handleMouseDown().

Definition at line 58 of file llresizebar.h.

Referenced by handleHover(), and handleMouseDown().

Definition at line 59 of file llresizebar.h.

Referenced by handleHover(), and handleMouseDown().

Definition at line 60 of file llresizebar.h.

Referenced by handleHover().

Definition at line 61 of file llresizebar.h.

Referenced by handleDoubleClick(), handleHover(), and setResizeLimits().

Definition at line 62 of file llresizebar.h.

Referenced by handleDoubleClick(), handleHover(), and setResizeLimits().

const Side LLResizeBar::mSide [private]

Definition at line 63 of file llresizebar.h.

Referenced by handleDoubleClick(), and handleHover().

Definition at line 64 of file llresizebar.h.

Referenced by handleDoubleClick(), handleHover(), and setEnableSnapping().

Definition at line 65 of file llresizebar.h.

Referenced by handleDoubleClick(), and setAllowDoubleClickSnapping().

Definition at line 66 of file llresizebar.h.

Referenced by handleDoubleClick(), and handleHover().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:01:31 2008 for SecondLife by  doxygen 1.5.5