diff options
Diffstat (limited to 'indra/llui/llresizehandle.h')
-rw-r--r-- | indra/llui/llresizehandle.h | 13 |
1 files changed, 11 insertions, 2 deletions
diff --git a/indra/llui/llresizehandle.h b/indra/llui/llresizehandle.h index 0e23d526fa..e4e3c81cec 100644 --- a/indra/llui/llresizehandle.h +++ b/indra/llui/llresizehandle.h @@ -44,9 +44,18 @@ class LLResizeHandle : public LLView public: enum ECorner { LEFT_TOP, LEFT_BOTTOM, RIGHT_TOP, RIGHT_BOTTOM }; - - LLResizeHandle(const std::string& name, const LLRect& rect, S32 min_width, S32 min_height, ECorner corner = RIGHT_BOTTOM ); + struct Params : public LLInitParam::Block<Params, LLView::Params> + { + Mandatory<ECorner> corner; + Optional<S32> min_width; + Optional<S32> min_height; + Params(); + }; +protected: + LLResizeHandle(const LLResizeHandle::Params&); + friend class LLUICtrlFactory; +public: virtual void draw(); virtual BOOL handleHover(S32 x, S32 y, MASK mask); virtual BOOL handleMouseDown(S32 x, S32 y, MASK mask); |