#include <llresizehandle.h>
Inheritance diagram for LLResizeHandle:
Public Types | |
LEFT_TOP | |
LEFT_BOTTOM | |
RIGHT_TOP | |
RIGHT_BOTTOM | |
enum | ECorner { LEFT_TOP, LEFT_BOTTOM, RIGHT_TOP, RIGHT_BOTTOM } |
Public Member Functions | |
LLResizeHandle (const LLString &name, const LLRect &rect, S32 min_width, S32 min_height, ECorner corner=RIGHT_BOTTOM) | |
virtual EWidgetType | getWidgetType () const |
virtual LLString | getWidgetTag () const |
virtual void | draw () |
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_width, S32 min_height) |
Protected Member Functions | |
BOOL | pointInHandle (S32 x, S32 y) |
Protected Attributes | |
S32 | mDragLastScreenX |
S32 | mDragLastScreenY |
S32 | mLastMouseScreenX |
S32 | mLastMouseScreenY |
LLCoordGL | mLastMouseDir |
LLPointer< LLImageGL > | mImage |
S32 | mMinWidth |
S32 | mMinHeight |
ECorner | mCorner |
Definition at line 41 of file llresizehandle.h.
Definition at line 44 of file llresizehandle.h.
LLResizeHandle::LLResizeHandle | ( | const LLString & | name, | |
const LLRect & | rect, | |||
S32 | min_width, | |||
S32 | min_height, | |||
ECorner | corner = RIGHT_BOTTOM | |||
) |
Definition at line 46 of file llresizehandle.cpp.
References FALSE, FOLLOWS_BOTTOM, FOLLOWS_LEFT, FOLLOWS_RIGHT, FOLLOWS_TOP, LLImageProviderInterface::getUIImageByID(), LEFT_BOTTOM, LEFT_TOP, mCorner, mImage, RIGHT_BOTTOM, RIGHT_TOP, LLUI::sConfigGroup, LLView::setFollows(), LLView::setSaveToXML(), and LLUI::sImageProvider.
void LLResizeHandle::draw | ( | ) | [virtual] |
Reimplemented from LLView.
Definition at line 320 of file llresizehandle.cpp.
References LLView::getVisible(), gl_draw_image(), mCorner, mImage, LLPointer< Type >::notNull(), and RIGHT_BOTTOM.
LLString LLResizeHandle::getWidgetTag | ( | ) | const [virtual] |
Implements LLView.
Definition at line 83 of file llresizehandle.cpp.
References LL_RESIZE_HANDLE_TAG.
EWidgetType LLResizeHandle::getWidgetType | ( | ) | const [virtual] |
Implements LLView.
Definition at line 78 of file llresizehandle.cpp.
References WIDGET_TYPE_RESIZE_HANDLE.
Reimplemented from LLView.
Definition at line 130 of file llresizehandle.cpp.
References FALSE, LLView::findSnapEdge(), LLRectBase< Type >::getHeight(), LLView::getParent(), LLView::getRect(), LLView::getRootView(), LLControlGroup::getS32(), LLView::getVisible(), LLRectBase< Type >::getWidth(), LLView::getWindow(), LLView::hasMouseCapture(), LEFT_BOTTOM, LEFT_TOP, llclamp(), LLView::localPointToScreen(), LLRectBase< Type >::mBottom, mCorner, mDragLastScreenX, mDragLastScreenY, mLastMouseDir, mLastMouseScreenX, mLastMouseScreenY, LLRectBase< Type >::mLeft, mMinHeight, mMinWidth, LLRectBase< Type >::mRight, LLRectBase< Type >::mTop, LLCoord::mX, LLCoord::mY, NULL, pointInHandle(), RIGHT_BOTTOM, RIGHT_TOP, 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(), LLRectBase< Type >::translate(), TRUE, UI_CURSOR_SIZENESW, UI_CURSOR_SIZENWSE, and LLView::userSetShape().
Reimplemented from LLView.
Definition at line 88 of file llresizehandle.cpp.
References FALSE, LLView::getVisible(), gFocusMgr, LLView::localPointToScreen(), mDragLastScreenX, mDragLastScreenY, LLView::mEnabled, mLastMouseScreenX, mLastMouseScreenY, pointInHandle(), LLFocusMgr::setMouseCapture(), and TRUE.
Reimplemented from LLView.
Definition at line 110 of file llresizehandle.cpp.
References FALSE, LLView::getVisible(), gFocusMgr, LLView::hasMouseCapture(), NULL, pointInHandle(), LLFocusMgr::setMouseCapture(), and TRUE.
Definition at line 329 of file llresizehandle.cpp.
References FALSE, LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), LEFT_BOTTOM, LEFT_TOP, mCorner, LLView::mRect, LLView::pointInView(), RESIZE_BORDER_WIDTH, RIGHT_BOTTOM, RIGHT_TOP, S32, and TRUE.
Referenced by handleHover(), handleMouseDown(), and handleMouseUp().
Definition at line 57 of file llresizehandle.h.
References mMinHeight, and mMinWidth.
Referenced by LLFloater::setResizeLimits().
ECorner LLResizeHandle::mCorner [protected] |
Definition at line 71 of file llresizehandle.h.
Referenced by draw(), handleHover(), LLResizeHandle(), and pointInHandle().
S32 LLResizeHandle::mDragLastScreenX [protected] |
S32 LLResizeHandle::mDragLastScreenY [protected] |
LLPointer<LLImageGL> LLResizeHandle::mImage [protected] |
LLCoordGL LLResizeHandle::mLastMouseDir [protected] |
S32 LLResizeHandle::mLastMouseScreenX [protected] |
S32 LLResizeHandle::mLastMouseScreenY [protected] |
S32 LLResizeHandle::mMinHeight [protected] |
S32 LLResizeHandle::mMinWidth [protected] |