From 117e22047c5752352342d64e3fb7ce00a4eb8113 Mon Sep 17 00:00:00 2001 From: Jacek Antonelli Date: Fri, 15 Aug 2008 23:45:04 -0500 Subject: Second Life viewer sources 1.18.1.2 --- linden/indra/llui/llresizebar.h | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'linden/indra/llui/llresizebar.h') diff --git a/linden/indra/llui/llresizebar.h b/linden/indra/llui/llresizebar.h index e1fc0f9..d3596ec 100644 --- a/linden/indra/llui/llresizebar.h +++ b/linden/indra/llui/llresizebar.h @@ -37,7 +37,7 @@ class LLResizeBar : public LLView public: enum Side { LEFT, TOP, RIGHT, BOTTOM }; - LLResizeBar(const LLString& name, const LLRect& rect, S32 min_width, S32 min_height, Side side ); + 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; @@ -47,7 +47,8 @@ public: 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 ) { mMinWidth = min_width; mMinHeight = min_height; } + void setResizeLimits( S32 min_size, S32 max_size ) { mMinSize = min_size; mMaxSize = max_size; } + void setEnableSnapping(BOOL enable) { mSnappingEnabled = enable; } protected: S32 mDragLastScreenX; @@ -55,9 +56,11 @@ protected: S32 mLastMouseScreenX; S32 mLastMouseScreenY; LLCoordGL mLastMouseDir; - S32 mMinWidth; - S32 mMinHeight; + S32 mMinSize; + S32 mMaxSize; Side mSide; + BOOL mSnappingEnabled; + LLView* mResizingView; }; const S32 RESIZE_BAR_HEIGHT = 3; -- cgit v1.1