aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llui/llresizebar.h
diff options
context:
space:
mode:
authorJacek Antonelli2008-08-15 23:45:34 -0500
committerJacek Antonelli2008-08-15 23:45:34 -0500
commitcd17687f01420952712a500107e0f93e7ab8d5f8 (patch)
treece48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/llui/llresizebar.h
parentSecond Life viewer sources 1.19.0.5 (diff)
downloadmeta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.zip
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.gz
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.bz2
meta-impy-cd17687f01420952712a500107e0f93e7ab8d5f8.tar.xz
Second Life viewer sources 1.19.1.0
Diffstat (limited to 'linden/indra/llui/llresizebar.h')
-rw-r--r--linden/indra/llui/llresizebar.h11
1 files changed, 5 insertions, 6 deletions
diff --git a/linden/indra/llui/llresizebar.h b/linden/indra/llui/llresizebar.h
index 11fca9d..5446811 100644
--- a/linden/indra/llui/llresizebar.h
+++ b/linden/indra/llui/llresizebar.h
@@ -42,18 +42,19 @@ public:
42 42
43 LLResizeBar(const LLString& name, LLView* resizing_view, const LLRect& rect, S32 min_size, S32 max_size, Side side ); 43 LLResizeBar(const LLString& name, LLView* resizing_view, const LLRect& rect, S32 min_size, S32 max_size, Side side );
44 44
45 virtual EWidgetType getWidgetType() const; 45 virtual EWidgetType getWidgetType() const { return WIDGET_TYPE_RESIZE_BAR; }
46 virtual LLString getWidgetTag() const; 46 virtual LLString getWidgetTag() const { return LL_RESIZE_BAR_TAG; }
47 47
48// virtual void draw(); No appearance 48// virtual void draw(); No appearance
49 virtual BOOL handleHover(S32 x, S32 y, MASK mask); 49 virtual BOOL handleHover(S32 x, S32 y, MASK mask);
50 virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); 50 virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask);
51 virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask); 51 virtual BOOL handleMouseUp(S32 x, S32 y, MASK mask);
52 virtual BOOL handleDoubleClick(S32 x, S32 y, MASK mask);
52 53
53 void setResizeLimits( S32 min_size, S32 max_size ) { mMinSize = min_size; mMaxSize = max_size; } 54 void setResizeLimits( S32 min_size, S32 max_size ) { mMinSize = min_size; mMaxSize = max_size; }
54 void setEnableSnapping(BOOL enable) { mSnappingEnabled = enable; } 55 void setEnableSnapping(BOOL enable) { mSnappingEnabled = enable; }
55 56
56protected: 57private:
57 S32 mDragLastScreenX; 58 S32 mDragLastScreenX;
58 S32 mDragLastScreenY; 59 S32 mDragLastScreenY;
59 S32 mLastMouseScreenX; 60 S32 mLastMouseScreenX;
@@ -61,13 +62,11 @@ protected:
61 LLCoordGL mLastMouseDir; 62 LLCoordGL mLastMouseDir;
62 S32 mMinSize; 63 S32 mMinSize;
63 S32 mMaxSize; 64 S32 mMaxSize;
64 Side mSide; 65 const Side mSide;
65 BOOL mSnappingEnabled; 66 BOOL mSnappingEnabled;
66 LLView* mResizingView; 67 LLView* mResizingView;
67}; 68};
68 69
69const S32 RESIZE_BAR_HEIGHT = 3;
70
71#endif // LL_RESIZEBAR_H 70#endif // LL_RESIZEBAR_H
72 71
73 72