aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llresizebar.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:04 -0500
committerJacek Antonelli2008-08-15 23:45:04 -0500
commit117e22047c5752352342d64e3fb7ce00a4eb8113 (patch)
treee32de2cfba0dda8705ae528fcd1fbe23ba075685 /linden/indra/llui/llresizebar.h
parentSecond Life viewer sources 1.18.0.6 (diff)
downloadmeta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.zip
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.gz
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.bz2
meta-impy-117e22047c5752352342d64e3fb7ce00a4eb8113.tar.xz
Second Life viewer sources 1.18.1.2
Diffstat (limited to '')
-rw-r--r--linden/indra/llui/llresizebar.h11
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
37public: 37public:
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
52protected: 53protected:
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
63const S32 RESIZE_BAR_HEIGHT = 3; 66const S32 RESIZE_BAR_HEIGHT = 3;