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

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


Detailed Description

Definition at line 41 of file llresizehandle.h.


Member Enumeration Documentation

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 
)


Member Function Documentation

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.

Here is the call graph for this function:

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

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

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.

Here is the call graph for this function:

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

Reimplemented from LLView.

Definition at line 96 of file llresizehandle.cpp.

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

Here is the call graph for this function:

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

Definition at line 54 of file llresizehandle.h.

References mMinHeight, and mMinWidth.

Referenced by LLFloater::setResizeLimits().

Here is the caller graph for this function:

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

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

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 59 of file llresizehandle.h.

Referenced by handleHover(), and handleMouseDown().

Definition at line 60 of file llresizehandle.h.

Referenced by handleHover(), and handleMouseDown().

Definition at line 61 of file llresizehandle.h.

Referenced by handleHover(), and handleMouseDown().

Definition at line 62 of file llresizehandle.h.

Referenced by handleHover(), and handleMouseDown().

Definition at line 63 of file llresizehandle.h.

Referenced by handleHover().

Definition at line 64 of file llresizehandle.h.

Referenced by draw(), and LLResizeHandle().

Definition at line 65 of file llresizehandle.h.

Referenced by handleHover(), and setResizeLimits().

Definition at line 66 of file llresizehandle.h.

Referenced by handleHover(), and setResizeLimits().

Definition at line 67 of file llresizehandle.h.

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


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:01:32 2008 for SecondLife by  doxygen 1.5.5