diff options
author | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:34 -0500 |
commit | cd17687f01420952712a500107e0f93e7ab8d5f8 (patch) | |
tree | ce48c2b706f2c1176290e39fb555fbdf6648ce01 /linden/indra/llui/llresizehandle.h | |
parent | Second Life viewer sources 1.19.0.5 (diff) | |
download | meta-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/llresizehandle.h')
-rw-r--r-- | linden/indra/llui/llresizehandle.h | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/linden/indra/llui/llresizehandle.h b/linden/indra/llui/llresizehandle.h index 863ce70..77ebcb9 100644 --- a/linden/indra/llui/llresizehandle.h +++ b/linden/indra/llui/llresizehandle.h | |||
@@ -46,8 +46,8 @@ public: | |||
46 | 46 | ||
47 | LLResizeHandle(const LLString& name, const LLRect& rect, S32 min_width, S32 min_height, ECorner corner = RIGHT_BOTTOM ); | 47 | LLResizeHandle(const LLString& name, const LLRect& rect, S32 min_width, S32 min_height, ECorner corner = RIGHT_BOTTOM ); |
48 | 48 | ||
49 | virtual EWidgetType getWidgetType() const; | 49 | virtual EWidgetType getWidgetType() const { return WIDGET_TYPE_RESIZE_HANDLE; } |
50 | virtual LLString getWidgetTag() const; | 50 | virtual LLString getWidgetTag() const { return LL_RESIZE_HANDLE_TAG; } |
51 | 51 | ||
52 | virtual void draw(); | 52 | virtual void draw(); |
53 | virtual BOOL handleHover(S32 x, S32 y, MASK mask); | 53 | virtual BOOL handleHover(S32 x, S32 y, MASK mask); |
@@ -56,10 +56,9 @@ public: | |||
56 | 56 | ||
57 | void setResizeLimits( S32 min_width, S32 min_height ) { mMinWidth = min_width; mMinHeight = min_height; } | 57 | void setResizeLimits( S32 min_width, S32 min_height ) { mMinWidth = min_width; mMinHeight = min_height; } |
58 | 58 | ||
59 | protected: | 59 | private: |
60 | BOOL pointInHandle( S32 x, S32 y ); | 60 | BOOL pointInHandle( S32 x, S32 y ); |
61 | 61 | ||
62 | protected: | ||
63 | S32 mDragLastScreenX; | 62 | S32 mDragLastScreenX; |
64 | S32 mDragLastScreenY; | 63 | S32 mDragLastScreenY; |
65 | S32 mLastMouseScreenX; | 64 | S32 mLastMouseScreenX; |
@@ -68,7 +67,7 @@ protected: | |||
68 | LLPointer<LLImageGL> mImage; | 67 | LLPointer<LLImageGL> mImage; |
69 | S32 mMinWidth; | 68 | S32 mMinWidth; |
70 | S32 mMinHeight; | 69 | S32 mMinHeight; |
71 | ECorner mCorner; | 70 | const ECorner mCorner; |
72 | }; | 71 | }; |
73 | 72 | ||
74 | const S32 RESIZE_HANDLE_HEIGHT = 16; | 73 | const S32 RESIZE_HANDLE_HEIGHT = 16; |