#include <llresizehandle.h>
Public Types | |
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 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) |
Private Member Functions | |
BOOL | pointInHandle (S32 x, S32 y) |
Private Attributes | |
S32 | mDragLastScreenX |
S32 | mDragLastScreenY |
S32 | mLastMouseScreenX |
S32 | mLastMouseScreenY |
LLCoordGL | mLastMouseDir |
LLPointer< LLUIImage > | mImage |
S32 | mMinWidth |
S32 | mMinHeight |
const 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::getUIImage(), LEFT_BOTTOM, LEFT_TOP, mCorner, mImage, RIGHT_BOTTOM, RIGHT_TOP, LLView::setFollows(), LLView::setSaveToXML(), and LLUI::sImageProvider.
void LLResizeHandle::draw | ( | void | ) | [virtual] |
Reimplemented from LLView.
Definition at line 308 of file llresizehandle.cpp.
References LLView::getVisible(), mCorner, mImage, LLPointer< Type >::notNull(), and RIGHT_BOTTOM.
Reimplemented from LLView.
Definition at line 115 of file llresizehandle.cpp.
References FALSE, LLView::findSnapEdge(), LLRectBase< Type >::getHeight(), LLView::getParent(), LLView::getRect(), LLView::getRootView(), LLControlGroup::getS32(), 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 77 of file llresizehandle.cpp.
References FALSE, gFocusMgr, LLView::localPointToScreen(), mDragLastScreenX, mDragLastScreenY, mLastMouseScreenX, mLastMouseScreenY, pointInHandle(), LLFocusMgr::setMouseCapture(), and TRUE.
Reimplemented from LLView.
Definition at line 96 of file llresizehandle.cpp.
References FALSE, gFocusMgr, LLView::hasMouseCapture(), NULL, pointInHandle(), LLFocusMgr::setMouseCapture(), and TRUE.
Definition at line 54 of file llresizehandle.h.
References mMinHeight, and mMinWidth.
Referenced by LLFloater::setResizeLimits().
Definition at line 317 of file llresizehandle.cpp.
References FALSE, LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), LEFT_BOTTOM, LEFT_TOP, mCorner, LLView::pointInView(), RESIZE_BORDER_WIDTH, RIGHT_BOTTOM, RIGHT_TOP, S32, and TRUE.
Referenced by handleHover(), handleMouseDown(), and handleMouseUp().
S32 LLResizeHandle::mDragLastScreenX [private] |
S32 LLResizeHandle::mDragLastScreenY [private] |
S32 LLResizeHandle::mLastMouseScreenX [private] |
S32 LLResizeHandle::mLastMouseScreenY [private] |
LLCoordGL LLResizeHandle::mLastMouseDir [private] |
LLPointer<LLUIImage> LLResizeHandle::mImage [private] |
S32 LLResizeHandle::mMinWidth [private] |
S32 LLResizeHandle::mMinHeight [private] |
const ECorner LLResizeHandle::mCorner [private] |
Definition at line 67 of file llresizehandle.h.
Referenced by draw(), handleHover(), LLResizeHandle(), and pointInHandle().