diff options
author | Steven Bennetts <steve@lindenlab.com> | 2009-05-08 07:43:08 +0000 |
---|---|---|
committer | Steven Bennetts <steve@lindenlab.com> | 2009-05-08 07:43:08 +0000 |
commit | a4000c3744e42fcbb638e742f3b63fa31a0dee15 (patch) | |
tree | 7f472c30e65bbfa04ee9bc06631a1af305cc31fb /indra/llui/llresizebar.h | |
parent | 6c4cadbb04d633ad7b762058bdeba6e1f650dafd (diff) |
merge trunk@116587 skinning-7@119389 -> viewer-2.0.0-skinning-7
Diffstat (limited to 'indra/llui/llresizebar.h')
-rw-r--r-- | indra/llui/llresizebar.h | 26 |
1 files changed, 25 insertions, 1 deletions
diff --git a/indra/llui/llresizebar.h b/indra/llui/llresizebar.h index b9fc40593d..4ad3d5035a 100644 --- a/indra/llui/llresizebar.h +++ b/indra/llui/llresizebar.h @@ -41,7 +41,31 @@ class LLResizeBar : public LLView public: enum Side { LEFT, TOP, RIGHT, BOTTOM }; - LLResizeBar(const std::string& name, LLView* resizing_view, const LLRect& rect, S32 min_size, S32 max_size, Side side ); + struct Params : public LLInitParam::Block<Params, LLView::Params> + { + Mandatory<LLView*> resizing_view; + Mandatory<Side> side; + + Optional<S32> min_size; + Optional<S32> max_size; + Optional<bool> snapping_enabled; + Optional<bool> allow_double_click_snapping; + + Params() + : max_size("", S32_MAX), + snapping_enabled("", true), + resizing_view("resizing_view"), + side("side"), + allow_double_click_snapping("", true) + { + name = "resize_bar"; + } + }; + +protected: + LLResizeBar(const LLResizeBar::Params& p); + friend class LLUICtrlFactory; +public: // virtual void draw(); No appearance virtual BOOL handleHover(S32 x, S32 y, MASK mask); |