LLScrollListText Class Reference

#include <llscrolllistctrl.h>

Inheritance diagram for LLScrollListText:

Inheritance graph
[legend]
Collaboration diagram for LLScrollListText:

Collaboration graph
[legend]

List of all members.

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 LLFontGLmFont
LLColor4 mColor
U8 mUseColor
U8 mFontStyle
LLFontGL::HAlign mFontAlignment
BOOL mVisible
S32 mHighlightCount
S32 mHighlightOffset
LLPointer< LLUIImagemRoundedRectImage

Static Private Attributes

static U32 sCount = 0


Detailed Description

Definition at line 100 of file llscrolllistctrl.h.


Constructor & Destructor Documentation

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.

Here is the call graph for this function:

LLScrollListText::~LLScrollListText (  ) 

Definition at line 288 of file llscrolllistctrl.cpp.

References sCount.


Member Function Documentation

void LLScrollListText::draw ( const LLColor4 color,
const LLColor4 highlight_color 
) const [virtual]

S32 LLScrollListText::getContentWidth (  )  const [virtual]

Reimplemented from LLScrollListCell.

Definition at line 293 of file llscrolllistctrl.cpp.

References LLUIString::getString(), LLFontGL::getWidth(), mFont, and mText.

Here is the call graph for this function:

S32 LLScrollListText::getHeight (  )  const [virtual]

Implements LLScrollListCell.

Definition at line 282 of file llscrolllistctrl.cpp.

References LLFontGL::getLineHeight(), llround(), and mFont.

Here is the call graph for this function:

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

Reimplemented from LLScrollListCell.

Definition at line 311 of file llscrolllistctrl.cpp.

References LLSD::asString(), and setText().

Here is the call graph for this function:

const LLSD LLScrollListText::getValue (  )  const [virtual]

Reimplemented from LLScrollListCell.

Definition at line 317 of file llscrolllistctrl.cpp.

References LLUIString::getString(), and mText.

Here is the call graph for this function:

BOOL LLScrollListText::getVisible (  )  const [virtual]

Reimplemented from LLScrollListCell.

Definition at line 276 of file llscrolllistctrl.cpp.

References mVisible.

void LLScrollListText::highlightText ( S32  offset,
S32  num_chars 
) [virtual]

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().

Here is the caller graph for this function:

BOOL LLScrollListText::isText (  )  const [virtual]

Implements LLScrollListCell.

Definition at line 270 of file llscrolllistctrl.cpp.

References TRUE.

void LLScrollListText::setText ( const LLStringExplicit text  ) 

Definition at line 305 of file llscrolllistctrl.cpp.

References mText.

Referenced by setValue(), and LLPreviewGesture::updateLabel().

Here is the caller graph for this function:

void LLScrollListText::setFontStyle ( const U8  font_style  )  [inline]

Definition at line 118 of file llscrolllistctrl.h.

References mFontStyle.


Member Data Documentation

Definition at line 121 of file llscrolllistctrl.h.

Referenced by draw(), getContentWidth(), getValue(), and setText().

Definition at line 122 of file llscrolllistctrl.h.

Referenced by draw(), getContentWidth(), and getHeight().

Definition at line 123 of file llscrolllistctrl.h.

Referenced by draw(), and setColor().

Definition at line 124 of file llscrolllistctrl.h.

Referenced by draw(), and setColor().

Definition at line 125 of file llscrolllistctrl.h.

Referenced by draw(), and setFontStyle().

Definition at line 126 of file llscrolllistctrl.h.

Referenced by draw().

Definition at line 127 of file llscrolllistctrl.h.

Referenced by getVisible().

Definition at line 128 of file llscrolllistctrl.h.

Referenced by draw(), and highlightText().

Definition at line 129 of file llscrolllistctrl.h.

Referenced by draw(), and highlightText().

Definition at line 131 of file llscrolllistctrl.h.

Referenced by draw(), and LLScrollListText().

U32 LLScrollListText::sCount = 0 [static, private]

Definition at line 133 of file llscrolllistctrl.h.

Referenced by LLScrollListText(), and ~LLScrollListText().


The documentation for this class was generated from the following files:

Generated on Fri May 16 09:03:12 2008 for SecondLife by  doxygen 1.5.5