#include <llresizebar.h>
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 |
LLView * | mResizingView |
Definition at line 38 of file llresizebar.h.
enum LLResizeBar::Side |
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.
Reimplemented from LLView.
Definition at line 119 of file llresizebar.cpp.
References BOTTOM, FALSE, LLView::findSnapEdge(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLView::getRootView(), LLControlGroup::getS32(), LLRectBase< Type >::getWidth(), 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().
Reimplemented from LLView.
Definition at line 87 of file llresizebar.cpp.
References gFocusMgr, LLView::localPointToScreen(), mDragLastScreenX, mDragLastScreenY, mLastMouseScreenX, mLastMouseScreenY, LLFocusMgr::setMouseCapture(), and TRUE.
Reimplemented from LLView.
Definition at line 101 of file llresizebar.cpp.
References FALSE, gFocusMgr, LLView::hasMouseCapture(), NULL, LLFocusMgr::setMouseCapture(), and TRUE.
Reimplemented from LLView.
Definition at line 259 of file llresizebar.cpp.
References BOTTOM, LLView::findSnapEdge(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), LEFT, llclamp(), mAllowDoubleClickSnapping, LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, mMaxSize, mMinSize, mResizingView, LLRectBase< Type >::mRight, mSide, mSnappingEnabled, LLRectBase< Type >::mTop, RIGHT, S32_MAX, LLView::SNAP_BOTTOM, LLView::SNAP_LEFT, LLView::SNAP_PARENT_AND_SIBLINGS, LLView::SNAP_RIGHT, LLView::SNAP_TOP, TOP, TRUE, and LLView::userSetShape().
Definition at line 51 of file llresizebar.h.
References mMaxSize, and mMinSize.
Referenced by LLFloater::setResizeLimits().
void LLResizeBar::setEnableSnapping | ( | BOOL | enable | ) | [inline] |
void LLResizeBar::setAllowDoubleClickSnapping | ( | BOOL | allow | ) | [inline] |
S32 LLResizeBar::mDragLastScreenX [private] |
S32 LLResizeBar::mDragLastScreenY [private] |
S32 LLResizeBar::mLastMouseScreenX [private] |
S32 LLResizeBar::mLastMouseScreenY [private] |
LLCoordGL LLResizeBar::mLastMouseDir [private] |
S32 LLResizeBar::mMinSize [private] |
Definition at line 61 of file llresizebar.h.
Referenced by handleDoubleClick(), handleHover(), and setResizeLimits().
S32 LLResizeBar::mMaxSize [private] |
Definition at line 62 of file llresizebar.h.
Referenced by handleDoubleClick(), handleHover(), and setResizeLimits().
const Side LLResizeBar::mSide [private] |
BOOL LLResizeBar::mSnappingEnabled [private] |
Definition at line 64 of file llresizebar.h.
Referenced by handleDoubleClick(), handleHover(), and setEnableSnapping().
BOOL LLResizeBar::mAllowDoubleClickSnapping [private] |
Definition at line 65 of file llresizebar.h.
Referenced by handleDoubleClick(), and setAllowDoubleClickSnapping().
LLView* LLResizeBar::mResizingView [private] |