diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llui/llresizebar.h | 11 |
1 files changed, 7 insertions, 4 deletions
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 | |||
37 | public: | 37 | public: |
38 | enum Side { LEFT, TOP, RIGHT, BOTTOM }; | 38 | enum Side { LEFT, TOP, RIGHT, BOTTOM }; |
39 | 39 | ||
40 | LLResizeBar(const LLString& name, const LLRect& rect, S32 min_width, S32 min_height, Side side ); | 40 | LLResizeBar(const LLString& name, LLView* resizing_view, const LLRect& rect, S32 min_size, S32 max_size, Side side ); |
41 | 41 | ||
42 | virtual EWidgetType getWidgetType() const; | 42 | virtual EWidgetType getWidgetType() const; |
43 | virtual LLString getWidgetTag() const; | 43 | virtual LLString getWidgetTag() const; |
@@ -47,7 +47,8 @@ public: | |||
47 | virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); | 47 | virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); |
48 | virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); | 48 | virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); |
49 | 49 | ||
50 | void setResizeLimits( S32 min_width, S32 min_height ) { mMinWidth = min_width; mMinHeight = min_height; } | 50 | void setResizeLimits( S32 min_size, S32 max_size ) { mMinSize = min_size; mMaxSize = max_size; } |
51 | void setEnableSnapping(BOOL enable) { mSnappingEnabled = enable; } | ||
51 | 52 | ||
52 | protected: | 53 | protected: |
53 | S32 mDragLastScreenX; | 54 | S32 mDragLastScreenX; |
@@ -55,9 +56,11 @@ protected: | |||
55 | S32 mLastMouseScreenX; | 56 | S32 mLastMouseScreenX; |
56 | S32 mLastMouseScreenY; | 57 | S32 mLastMouseScreenY; |
57 | LLCoordGL mLastMouseDir; | 58 | LLCoordGL mLastMouseDir; |
58 | S32 mMinWidth; | 59 | S32 mMinSize; |
59 | S32 mMinHeight; | 60 | S32 mMaxSize; |
60 | Side mSide; | 61 | Side mSide; |
62 | BOOL mSnappingEnabled; | ||
63 | LLView* mResizingView; | ||
61 | }; | 64 | }; |
62 | 65 | ||
63 | const S32 RESIZE_BAR_HEIGHT = 3; | 66 | const S32 RESIZE_BAR_HEIGHT = 3; |