LLIconCtrl Class Reference

#include <lliconctrl.h>

Inheritance diagram for LLIconCtrl:

Inheritance graph
[legend]
Collaboration diagram for LLIconCtrl:

Collaboration graph
[legend]
List of all members.

Public Member Functions

 LLIconCtrl (const LLString &name, const LLRect &rect, const LLUUID &image_id)
 LLIconCtrl (const LLString &name, const LLRect &rect, const LLString &image_name)
virtual ~LLIconCtrl ()
virtual EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual void draw ()
void setImage (const LLUUID &image_id)
const LLUUIDgetImage () const
virtual void setValue (const LLSD &value)
virtual LLSD getValue () const
void setColor (const LLColor4 &color)
virtual LLXMLNodePtr getXML (bool save_children=true) const

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, LLUICtrlFactory *factory)

Protected Attributes

LLColor4 mColor
LLString mImageName
LLUUID mImageID
LLPointer< LLImageGLmImagep

Detailed Description

Definition at line 47 of file lliconctrl.h.


Constructor & Destructor Documentation

LLIconCtrl::LLIconCtrl ( const LLString name,
const LLRect rect,
const LLUUID image_id 
)

Definition at line 45 of file lliconctrl.cpp.

References FALSE, setImage(), and LLUICtrl::setTabStop().

Referenced by fromXML().

LLIconCtrl::LLIconCtrl ( const LLString name,
const LLRect rect,
const LLString image_name 
)

Definition at line 58 of file lliconctrl.cpp.

References FALSE, LLUI::sAssetsGroup, LLUUID::set(), setImage(), and LLUICtrl::setTabStop().

LLIconCtrl::~LLIconCtrl (  )  [virtual]

Definition at line 74 of file lliconctrl.cpp.

References mImagep, and NULL.


Member Function Documentation

void LLIconCtrl::draw (  )  [virtual]

Reimplemented from LLView.

Definition at line 87 of file lliconctrl.cpp.

References LLView::draw(), LLRectBase< Type >::getHeight(), LLView::getVisible(), LLRectBase< Type >::getWidth(), gl_draw_scaled_image(), LLUUID::isNull(), mColor, mImageID, mImagep, LLView::mRect, and LLPointer< Type >::notNull().

LLView * LLIconCtrl::fromXML ( LLXMLNodePtr  node,
LLView parent,
LLUICtrlFactory factory 
) [static]

Definition at line 137 of file lliconctrl.cpp.

References LLView::createRect(), LLUICtrlFactory::getAttributeColor(), LLUICtrl::initFromXML(), LLIconCtrl(), LLUI::sAssetsGroup, LLUUID::set(), setColor(), and LLColor4::white.

const LLUUID& LLIconCtrl::getImage (  )  const [inline]

Definition at line 61 of file lliconctrl.h.

References mImageID.

Referenced by getValue(), and LLPanelGroupSubTab::postBuild().

LLSD LLIconCtrl::getValue (  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 116 of file lliconctrl.cpp.

References getImage().

virtual LLString LLIconCtrl::getWidgetTag (  )  const [inline, virtual]

Implements LLView.

Definition at line 55 of file lliconctrl.h.

References LL_ICON_CTRL_TAG.

virtual EWidgetType LLIconCtrl::getWidgetType (  )  const [inline, virtual]

Implements LLView.

Definition at line 54 of file lliconctrl.h.

References WIDGET_TYPE_ICON.

LLXMLNodePtr LLIconCtrl::getXML ( bool  save_children = true  )  const [virtual]

Reimplemented from LLUICtrl.

Definition at line 123 of file lliconctrl.cpp.

References LLUICtrl::getXML(), mColor, mImageName, LLColor4::mV, and TRUE.

void LLIconCtrl::setColor ( const LLColor4 color  )  [inline, virtual]

Reimplemented from LLUICtrl.

Definition at line 67 of file lliconctrl.h.

References mColor.

Referenced by fromXML().

void LLIconCtrl::setImage ( const LLUUID image_id  ) 

Definition at line 80 of file lliconctrl.cpp.

References LLImageProviderInterface::getUIImageByID(), mImageID, mImagep, and LLUI::sImageProvider.

Referenced by LLIconCtrl(), LLViewChildren::setBadge(), LLPanelGroupNotices::setItem(), setValue(), and LLPanelGroupNotices::showNotice().

void LLIconCtrl::setValue ( const LLSD value  )  [virtual]

Reimplemented from LLView.

Definition at line 110 of file lliconctrl.cpp.

References LLSD::asUUID(), and setImage().


Member Data Documentation

LLColor4 LLIconCtrl::mColor [protected]

Definition at line 73 of file lliconctrl.h.

Referenced by draw(), getXML(), and setColor().

LLUUID LLIconCtrl::mImageID [protected]

Definition at line 75 of file lliconctrl.h.

Referenced by draw(), getImage(), and setImage().

LLString LLIconCtrl::mImageName [protected]

Definition at line 74 of file lliconctrl.h.

Referenced by getXML().

LLPointer<LLImageGL> LLIconCtrl::mImagep [protected]

Definition at line 76 of file lliconctrl.h.

Referenced by draw(), setImage(), and ~LLIconCtrl().


The documentation for this class was generated from the following files:
Generated on Thu Jul 1 06:11:24 2010 for Second Life Viewer by  doxygen 1.4.7