#include <llscrolllistctrl.h>


Public Member Functions | |
| LLScrollListText (const LLString &text, const LLFontGL *font, S32 width=0, U8 font_style=LLFontGL::NORMAL, LLFontGL::HAlign font_alignment=LLFontGL::LEFT, LLColor4 &color=LLColor4::black, BOOL use_color=FALSE, BOOL visible=TRUE) | |
| ~LLScrollListText () | |
| virtual void | draw (const LLColor4 &color, const LLColor4 &highlight_color) const |
| virtual S32 | getContentWidth () const |
| virtual S32 | getHeight () const |
| virtual void | setValue (const LLSD &value) |
| virtual const LLSD | getValue () const |
| virtual BOOL | getVisible () const |
| virtual void | highlightText (S32 offset, S32 num_chars) |
| virtual void | setColor (const LLColor4 &) |
| virtual BOOL | isText () const |
| void | setText (const LLStringExplicit &text) |
| void | setFontStyle (const U8 font_style) |
Private Attributes | |
| LLUIString | mText |
| const LLFontGL * | mFont |
| LLColor4 | mColor |
| U8 | mUseColor |
| U8 | mFontStyle |
| LLFontGL::HAlign | mFontAlignment |
| BOOL | mVisible |
| S32 | mHighlightCount |
| S32 | mHighlightOffset |
| LLPointer< LLUIImage > | mRoundedRectImage |
Static Private Attributes | |
| static U32 | sCount = 0 |
Definition at line 100 of file llscrolllistctrl.h.
| LLScrollListText::LLScrollListText | ( | const LLString & | text, | |
| const LLFontGL * | font, | |||
| S32 | width = 0, |
|||
| U8 | font_style = LLFontGL::NORMAL, |
|||
| LLFontGL::HAlign | font_alignment = LLFontGL::LEFT, |
|||
| LLColor4 & | color = LLColor4::black, |
|||
| BOOL | use_color = FALSE, |
|||
| BOOL | visible = TRUE | |||
| ) |
Definition at line 242 of file llscrolllistctrl.cpp.
References LLImageProviderInterface::getUIImage(), mRoundedRectImage, sCount, and LLUI::sImageProvider.

| LLScrollListText::~LLScrollListText | ( | ) |
| void LLScrollListText::draw | ( | const LLColor4 & | color, | |
| const LLColor4 & | highlight_color | |||
| ) | const [virtual] |
Implements LLScrollListCell.
Definition at line 323 of file llscrolllistctrl.cpp.
References LLFontGL::BOTTOM, FALSE, LLFontGL::getLineHeight(), LLUIString::getString(), LLScrollListCell::getWidth(), LLFontGL::getWidth(), LLUIString::getWString(), LLFontGL::HCENTER, LLFontGL::LEFT, LLUIString::length(), llround(), mColor, mFont, mFontAlignment, mFontStyle, mHighlightCount, mHighlightOffset, mRoundedRectImage, mText, mUseColor, LLFontGL::render(), LLFontGL::RIGHT, S32, S32_MAX, and TRUE.

| S32 LLScrollListText::getContentWidth | ( | ) | const [virtual] |
Reimplemented from LLScrollListCell.
Definition at line 293 of file llscrolllistctrl.cpp.
References LLUIString::getString(), LLFontGL::getWidth(), mFont, and mText.

| S32 LLScrollListText::getHeight | ( | ) | const [virtual] |
Implements LLScrollListCell.
Definition at line 282 of file llscrolllistctrl.cpp.
References LLFontGL::getLineHeight(), llround(), and mFont.

| void LLScrollListText::setValue | ( | const LLSD & | value | ) | [virtual] |
Reimplemented from LLScrollListCell.
Definition at line 311 of file llscrolllistctrl.cpp.
References LLSD::asString(), and setText().

| const LLSD LLScrollListText::getValue | ( | ) | const [virtual] |
Reimplemented from LLScrollListCell.
Definition at line 317 of file llscrolllistctrl.cpp.
References LLUIString::getString(), and mText.

| BOOL LLScrollListText::getVisible | ( | ) | const [virtual] |
Reimplemented from LLScrollListCell.
Definition at line 276 of file llscrolllistctrl.cpp.
References mVisible.
Reimplemented from LLScrollListCell.
Definition at line 263 of file llscrolllistctrl.cpp.
References mHighlightCount, and mHighlightOffset.
| void LLScrollListText::setColor | ( | const LLColor4 & | color | ) | [virtual] |
Reimplemented from LLScrollListCell.
Definition at line 299 of file llscrolllistctrl.cpp.
References mColor, mUseColor, and TRUE.
Referenced by LLScrollListCtrl::addElement().

| BOOL LLScrollListText::isText | ( | ) | const [virtual] |
| void LLScrollListText::setText | ( | const LLStringExplicit & | text | ) |
Definition at line 305 of file llscrolllistctrl.cpp.
References mText.
Referenced by setValue(), and LLPreviewGesture::updateLabel().

| void LLScrollListText::setFontStyle | ( | const U8 | font_style | ) | [inline] |
LLUIString LLScrollListText::mText [private] |
Definition at line 121 of file llscrolllistctrl.h.
Referenced by draw(), getContentWidth(), getValue(), and setText().
const LLFontGL* LLScrollListText::mFont [private] |
Definition at line 122 of file llscrolllistctrl.h.
Referenced by draw(), getContentWidth(), and getHeight().
LLColor4 LLScrollListText::mColor [private] |
U8 LLScrollListText::mUseColor [private] |
U8 LLScrollListText::mFontStyle [private] |
BOOL LLScrollListText::mVisible [private] |
S32 LLScrollListText::mHighlightCount [private] |
S32 LLScrollListText::mHighlightOffset [private] |
U32 LLScrollListText::sCount = 0 [static, private] |
Definition at line 133 of file llscrolllistctrl.h.
Referenced by LLScrollListText(), and ~LLScrollListText().
1.5.5