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 drawToWidth (S32 width, const LLColor4 &color, const LLColor4 &highlight_color) const
virtual S32 getWidth () const
virtual void setWidth (S32 width)
virtual S32 getHeight () const
virtual const LLStringgetText () const
virtual BOOL getVisible () const
virtual void highlightText (S32 offset, S32 num_chars)
void setText (const LLStringExplicit &text)
virtual void setColor (const LLColor4 &)
virtual BOOL isText ()

Private Attributes

LLUIString mText
const LLFontGLmFont
LLColor4mColor
const U8 mFontStyle
LLFontGL::HAlign mFontAlignment
S32 mWidth
BOOL mVisible
S32 mHighlightCount
S32 mHighlightOffset
LLPointer< LLImageGLmRoundedRectImage

Static Private Attributes

static U32 sCount = 0

Detailed Description

Definition at line 91 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 191 of file llscrolllistctrl.cpp.

References LLImageProviderInterface::getUIImageByID(), mColor, mRoundedRectImage, NULL, LLUI::sAssetsGroup, sCount, LLColor4::setVec(), and LLUI::sImageProvider.

LLScrollListText::~LLScrollListText (  ) 

Definition at line 220 of file llscrolllistctrl.cpp.

References mColor, and sCount.


Member Function Documentation

void LLScrollListText::drawToWidth ( S32  width,
const LLColor4 color,
const LLColor4 highlight_color 
) const [virtual]

Implements LLScrollListCell.

Definition at line 240 of file llscrolllistctrl.cpp.

References LLFontGL::BOTTOM, f, FALSE, LLFontGL::getLineHeight(), LLUIString::getString(), LLFontGL::getWidth(), LLUIString::getWString(), gl_segmented_rect_2d_tex(), glColor4fv, LLFontGL::HCENTER, LLFontGL::LEFT, left, LLUIString::length(), llround(), mColor, mFont, mFontAlignment, mFontStyle, mHighlightCount, mHighlightOffset, mRoundedRectImage, mText, LLColor4::mV, mWidth, LLFontGL::render(), LLFontGL::RIGHT, S32, S32_MAX, and TRUE.

virtual S32 LLScrollListText::getHeight (  )  const [inline, virtual]

Implements LLScrollListCell.

Definition at line 100 of file llscrolllistctrl.h.

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

virtual const LLString& LLScrollListText::getText (  )  const [inline, virtual]

Reimplemented from LLScrollListCell.

Definition at line 101 of file llscrolllistctrl.h.

References LLUIString::getString(), and mText.

virtual BOOL LLScrollListText::getVisible (  )  const [inline, virtual]

Reimplemented from LLScrollListCell.

Definition at line 102 of file llscrolllistctrl.h.

References mVisible.

virtual S32 LLScrollListText::getWidth (  )  const [inline, virtual]

Implements LLScrollListCell.

Definition at line 98 of file llscrolllistctrl.h.

References mWidth.

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

Reimplemented from LLScrollListCell.

Definition at line 103 of file llscrolllistctrl.h.

References mHighlightCount, and mHighlightOffset.

virtual BOOL LLScrollListText::isText (  )  [inline, virtual]

Implements LLScrollListCell.

Definition at line 106 of file llscrolllistctrl.h.

References TRUE.

void LLScrollListText::setColor ( const LLColor4  )  [virtual]

Implements LLScrollListCell.

Definition at line 226 of file llscrolllistctrl.cpp.

References mColor.

Referenced by LLScrollListCtrl::addElement().

void LLScrollListText::setText ( const LLStringExplicit text  ) 

Definition at line 235 of file llscrolllistctrl.cpp.

References mText.

Referenced by LLPreviewGesture::updateLabel().

virtual void LLScrollListText::setWidth ( S32  width  )  [inline, virtual]

Implements LLScrollListCell.

Definition at line 99 of file llscrolllistctrl.h.

References mWidth.


Member Data Documentation

LLColor4* LLScrollListText::mColor [private]

Definition at line 111 of file llscrolllistctrl.h.

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

const LLFontGL* LLScrollListText::mFont [private]

Definition at line 110 of file llscrolllistctrl.h.

Referenced by drawToWidth(), and getHeight().

LLFontGL::HAlign LLScrollListText::mFontAlignment [private]

Definition at line 113 of file llscrolllistctrl.h.

Referenced by drawToWidth().

const U8 LLScrollListText::mFontStyle [private]

Definition at line 112 of file llscrolllistctrl.h.

Referenced by drawToWidth().

S32 LLScrollListText::mHighlightCount [private]

Definition at line 116 of file llscrolllistctrl.h.

Referenced by drawToWidth(), and highlightText().

S32 LLScrollListText::mHighlightOffset [private]

Definition at line 117 of file llscrolllistctrl.h.

Referenced by drawToWidth(), and highlightText().

LLPointer<LLImageGL> LLScrollListText::mRoundedRectImage [private]

Definition at line 119 of file llscrolllistctrl.h.

Referenced by drawToWidth(), and LLScrollListText().

LLUIString LLScrollListText::mText [private]

Definition at line 109 of file llscrolllistctrl.h.

Referenced by drawToWidth(), getText(), and setText().

BOOL LLScrollListText::mVisible [private]

Definition at line 115 of file llscrolllistctrl.h.

Referenced by getVisible().

S32 LLScrollListText::mWidth [private]

Definition at line 114 of file llscrolllistctrl.h.

Referenced by drawToWidth(), getWidth(), and setWidth().

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

Definition at line 121 of file llscrolllistctrl.h.

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


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