#include <llresizebar.h>
Inheritance diagram for LLResizeBar:
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 |
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 44 of file llresizebar.cpp.
References BOTTOM, FALSE, LEFT, RIGHT, LLView::setFollowsBottom(), LLView::setFollowsLeft(), LLView::setFollowsRight(), LLView::setFollowsTop(), LLView::setSaveToXML(), and TOP.
LLString LLResizeBar::getWidgetTag | ( | ) | const [virtual] |
EWidgetType LLResizeBar::getWidgetType | ( | ) | const [virtual] |
Implements LLView.
Definition at line 122 of file llresizebar.cpp.
References WIDGET_TYPE_RESIZE_BAR.
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().
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.
Reimplemented from LLView.
Definition at line 105 of file llresizebar.cpp.
References FALSE, gFocusMgr, LLView::hasMouseCapture(), NULL, LLFocusMgr::setMouseCapture(), and TRUE.
Definition at line 54 of file llresizebar.h.
References mSnappingEnabled.
Referenced by LLLayoutStack::LLEmbeddedPanel::LLEmbeddedPanel().
Definition at line 53 of file llresizebar.h.
References mMaxSize, and mMinSize.
Referenced by LLFloater::setResizeLimits().
S32 LLResizeBar::mDragLastScreenX [protected] |
S32 LLResizeBar::mDragLastScreenY [protected] |
LLCoordGL LLResizeBar::mLastMouseDir [protected] |
S32 LLResizeBar::mLastMouseScreenX [protected] |
S32 LLResizeBar::mLastMouseScreenY [protected] |
S32 LLResizeBar::mMaxSize [protected] |
S32 LLResizeBar::mMinSize [protected] |
LLView* LLResizeBar::mResizingView [protected] |
Side LLResizeBar::mSide [protected] |
BOOL LLResizeBar::mSnappingEnabled [protected] |