#include <llscrolllistctrl.h>
Public Member Functions | |
LLScrollListIcon (LLUIImagePtr icon, S32 width=0) | |
LLScrollListIcon (const LLSD &value, S32 width=0) | |
~LLScrollListIcon () | |
virtual void | draw (const LLColor4 &color, const LLColor4 &highlight_color) const |
virtual S32 | getWidth () const |
virtual S32 | getHeight () const |
virtual const LLSD | getValue () const |
virtual void | setColor (const LLColor4 &) |
virtual BOOL | isText () const |
virtual void | setValue (const LLSD &value) |
Private Attributes | |
LLUIImagePtr | mIcon |
LLColor4 | mColor |
Definition at line 139 of file llscrolllistctrl.h.
LLScrollListIcon::LLScrollListIcon | ( | LLUIImagePtr | icon, | |
S32 | width = 0 | |||
) |
Definition at line 107 of file llscrolllistctrl.cpp.
Definition at line 114 of file llscrolllistctrl.cpp.
References setValue().
LLScrollListIcon::~LLScrollListIcon | ( | ) |
Definition at line 122 of file llscrolllistctrl.cpp.
void LLScrollListIcon::draw | ( | const LLColor4 & | color, | |
const LLColor4 & | highlight_color | |||
) | const [virtual] |
S32 LLScrollListIcon::getWidth | ( | ) | const [virtual] |
Reimplemented from LLScrollListCell.
Definition at line 158 of file llscrolllistctrl.cpp.
References LLScrollListCell::getWidth(), mIcon, and LLPointer< Type >::notNull().
virtual S32 LLScrollListIcon::getHeight | ( | ) | const [inline, virtual] |
virtual const LLSD LLScrollListIcon::getValue | ( | ) | const [inline, virtual] |
Reimplemented from LLScrollListCell.
Definition at line 148 of file llscrolllistctrl.h.
References LLPointer< Type >::isNull(), mIcon, and LLStringBase< char >::null.
void LLScrollListIcon::setColor | ( | const LLColor4 & | color | ) | [virtual] |
Reimplemented from LLScrollListCell.
Definition at line 153 of file llscrolllistctrl.cpp.
References mColor.
Referenced by LLScrollListCtrl::addElement().
virtual BOOL LLScrollListIcon::isText | ( | ) | const [inline, virtual] |
void LLScrollListIcon::setValue | ( | const LLSD & | value | ) | [virtual] |
Reimplemented from LLScrollListCell.
Definition at line 126 of file llscrolllistctrl.cpp.
References LLSD::asString(), LLSD::asUUID(), LLUI::getUIImage(), LLImageProviderInterface::getUIImageByID(), LLSD::isUUID(), mIcon, LLUUID::notNull(), NULL, LLUI::sImageProvider, and LLUUID::validate().
Referenced by LLScrollListIcon().
LLUIImagePtr LLScrollListIcon::mIcon [private] |
Definition at line 154 of file llscrolllistctrl.h.
Referenced by draw(), getHeight(), getValue(), getWidth(), and setValue().
LLColor4 LLScrollListIcon::mColor [private] |