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

@@ -48,6 +48,22 @@ class LLUICtrlFactory;
class LLIconCtrl
: public LLUICtrl
{
public:
struct Params : public LLInitParam::Block<Params, LLUICtrl::Params>
{
Optional<LLUIImage*> image;
Optional<LLUIColor> color;
// Optional<bool> use_draw_context_alpha;
Optional<S32> min_width,
min_height;
Ignored scale_image;
Params();
};
protected:
LLIconCtrl(const Params&);
friend class LLUICtrlFactory;
public:
LLIconCtrl(const std::string& name, const LLRect &rect, const std::string &image_name, const S32& min_width = 0, const S32& min_height = 0);
virtual ~LLIconCtrl();
@@ -76,6 +92,10 @@ protected:
S32 mMinWidth,
mMinHeight;
// If set to true (default), use the draw context transparency.
// If false, will use transparency returned by getCurrentTransparency(). See STORM-698.
//bool mUseDrawContextAlpha;
private:
LLColor4 mColor;
LLPointer<LLUIImage> mImagep;