LLIconCtrl Params

This commit is contained in:
Inusaito Sayori
2013-12-02 20:45:07 -05:00
parent b4d0896507
commit 8fb2812899
2 changed files with 44 additions and 0 deletions

View File

@@ -44,6 +44,30 @@
static LLRegisterWidget<LLIconCtrl> r("icon");
LLIconCtrl::Params::Params()
: image("image_name"),
color("color"),
// use_draw_context_alpha("use_draw_context_alpha", true),
scale_image("scale_image"),
min_width("min_width", 0),
min_height("min_height", 0)
{}
LLIconCtrl::LLIconCtrl(const LLIconCtrl::Params& p)
: LLUICtrl(p),
mColor(p.color()),
mImagep(p.image),
// mUseDrawContextAlpha(p.use_draw_context_alpha),
mPriority(0),
mMinWidth(p.min_width),
mMinHeight(p.min_height)
{
if (mImagep.notNull())
{
LLUICtrl::setValue(mImagep->getName());
}
setTabStop(false);
}
LLIconCtrl::LLIconCtrl(const std::string& name, const LLRect &rect, const std::string &image_name, const S32& min_width, const S32& min_height)
: LLUICtrl(name,