LLResizeHandle Class Reference

#include <llresizehandle.h>

Inheritance diagram for LLResizeHandle:

Inheritance graph
[legend]
Collaboration diagram for LLResizeHandle:

Collaboration graph
[legend]
List of all members.

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< LLImageGLmImage
S32 mMinWidth
S32 mMinHeight
ECorner mCorner

Detailed Description

Definition at line 41 of file llresizehandle.h.


Member Enumeration Documentation

enum LLResizeHandle::ECorner

Enumerator:
LEFT_TOP 
LEFT_BOTTOM 
RIGHT_TOP 
RIGHT_BOTTOM 

Definition at line 44 of file llresizehandle.h.


Constructor & Destructor Documentation

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.


Member Function Documentation

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.

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

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().

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

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.

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

Reimplemented from LLView.

Definition at line 110 of file llresizehandle.cpp.

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

BOOL LLResizeHandle::pointInHandle ( S32  x,
S32  y 
) [protected]

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().

void LLResizeHandle::setResizeLimits ( S32  min_width,
S32  min_height 
) [inline]

Definition at line 57 of file llresizehandle.h.

References mMinHeight, and mMinWidth.

Referenced by LLFloater::setResizeLimits().


Member Data Documentation

ECorner LLResizeHandle::mCorner [protected]

Definition at line 71 of file llresizehandle.h.

Referenced by draw(), handleHover(), LLResizeHandle(), and pointInHandle().

S32 LLResizeHandle::mDragLastScreenX [protected]

Definition at line 63 of file llresizehandle.h.

Referenced by handleHover(), and handleMouseDown().

S32 LLResizeHandle::mDragLastScreenY [protected]

Definition at line 64 of file llresizehandle.h.

Referenced by handleHover(), and handleMouseDown().

LLPointer<LLImageGL> LLResizeHandle::mImage [protected]

Definition at line 68 of file llresizehandle.h.

Referenced by draw(), and LLResizeHandle().

LLCoordGL LLResizeHandle::mLastMouseDir [protected]

Definition at line 67 of file llresizehandle.h.

Referenced by handleHover().

S32 LLResizeHandle::mLastMouseScreenX [protected]

Definition at line 65 of file llresizehandle.h.

Referenced by handleHover(), and handleMouseDown().

S32 LLResizeHandle::mLastMouseScreenY [protected]

Definition at line 66 of file llresizehandle.h.

Referenced by handleHover(), and handleMouseDown().

S32 LLResizeHandle::mMinHeight [protected]

Definition at line 70 of file llresizehandle.h.

Referenced by handleHover(), and setResizeLimits().

S32 LLResizeHandle::mMinWidth [protected]

Definition at line 69 of file llresizehandle.h.

Referenced by handleHover(), and setResizeLimits().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:42 2010 for Second Life Viewer by  doxygen 1.4.7