LLViewBorder Class Reference

#include <llviewborder.h>

Inheritance diagram for LLViewBorder:

Inheritance graph
[legend]
Collaboration diagram for LLViewBorder:

Collaboration graph
[legend]

List of all members.

Public Types

enum  EBevel { BEVEL_IN, BEVEL_OUT, BEVEL_BRIGHT, BEVEL_NONE }
enum  EStyle { STYLE_LINE, STYLE_TEXTURE }

Public Member Functions

 LLViewBorder (const LLString &name, const LLRect &rect, EBevel bevel=BEVEL_OUT, EStyle style=STYLE_LINE, S32 width=1)
virtual void setValue (const LLSD &val)
virtual BOOL isCtrl () const
virtual void draw ()
void setBorderWidth (S32 width)
S32 getBorderWidth () const
void setBevel (EBevel bevel)
EBevel getBevel () const
void setColors (const LLColor4 &shadow_dark, const LLColor4 &highlight_light)
void setColorsExtended (const LLColor4 &shadow_light, const LLColor4 &shadow_dark, const LLColor4 &highlight_light, const LLColor4 &highlight_dark)
void setTexture (const class LLUUID &image_id)
LLColor4 getHighlightLight ()
LLColor4 getShadowDark ()
EStyle getStyle () const
void setKeyboardFocusHighlight (BOOL b)

Static Public Member Functions

static LLViewfromXML (LLXMLNodePtr node, LLView *parent, class LLUICtrlFactory *factory)
static BOOL getBevelFromAttribute (LLXMLNodePtr node, LLViewBorder::EBevel &bevel_style)

Private Member Functions

void drawOnePixelLines ()
void drawTwoPixelLines ()
void drawTextures ()
void drawTextureTrapezoid (F32 degrees, S32 width, S32 length, F32 start_x, F32 start_y)

Private Attributes

EBevel mBevel
const EStyle mStyle
LLColor4 mHighlightLight
LLColor4 mHighlightDark
LLColor4 mShadowLight
LLColor4 mShadowDark
LLColor4 mBackgroundColor
S32 mBorderWidth
LLUIImagePtr mTexture
BOOL mHasKeyboardFocus


Detailed Description

Definition at line 38 of file llviewborder.h.


Member Enumeration Documentation

Enumerator:
BEVEL_IN 
BEVEL_OUT 
BEVEL_BRIGHT 
BEVEL_NONE 

Definition at line 41 of file llviewborder.h.

Enumerator:
STYLE_LINE 
STYLE_TEXTURE 

Definition at line 42 of file llviewborder.h.


Constructor & Destructor Documentation

LLViewBorder::LLViewBorder ( const LLString name,
const LLRect rect,
EBevel  bevel = BEVEL_OUT,
EStyle  style = STYLE_LINE,
S32  width = 1 
)

Definition at line 38 of file llviewborder.cpp.

References LLView::setFollowsAll().

Referenced by fromXML().

Here is the call graph for this function:

Here is the caller graph for this function:


Member Function Documentation

virtual void LLViewBorder::setValue ( const LLSD val  )  [inline, virtual]

Reimplemented from LLView.

Definition at line 46 of file llviewborder.h.

References LLView::setRect().

Here is the call graph for this function:

virtual BOOL LLViewBorder::isCtrl (  )  const [inline, virtual]

Reimplemented from LLView.

Definition at line 48 of file llviewborder.h.

References FALSE.

void LLViewBorder::draw ( void   )  [virtual]

Reimplemented from LLView.

Definition at line 75 of file llviewborder.cpp.

References LLView::draw(), drawOnePixelLines(), drawTextures(), drawTwoPixelLines(), FALSE, llassert, mBorderWidth, mStyle, mTexture, STYLE_LINE, and STYLE_TEXTURE.

Here is the call graph for this function:

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

Reimplemented from LLView.

Definition at line 307 of file llviewborder.cpp.

References BEVEL_IN, getBevelFromAttribute(), LLView::initFromXML(), LLViewBorder(), S32, and STYLE_LINE.

Here is the call graph for this function:

BOOL LLViewBorder::getBevelFromAttribute ( LLXMLNodePtr  node,
LLViewBorder::EBevel bevel_style 
) [static]

Definition at line 276 of file llviewborder.cpp.

References BEVEL_BRIGHT, BEVEL_IN, BEVEL_NONE, BEVEL_OUT, FALSE, LLStringBase< char >::toLower(), and TRUE.

Referenced by fromXML(), LLLineEditor::fromXML(), and LLPanel::setPanelParameters().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLViewBorder::setBorderWidth ( S32  width  )  [inline]

Definition at line 56 of file llviewborder.h.

References mBorderWidth.

S32 LLViewBorder::getBorderWidth (  )  const [inline]

void LLViewBorder::setBevel ( EBevel  bevel  )  [inline]

Definition at line 58 of file llviewborder.h.

References mBevel.

EBevel LLViewBorder::getBevel (  )  const [inline]

Definition at line 59 of file llviewborder.h.

References mBevel.

Referenced by LLLineEditor::getXML().

Here is the caller graph for this function:

void LLViewBorder::setColors ( const LLColor4 shadow_dark,
const LLColor4 highlight_light 
)

Definition at line 54 of file llviewborder.cpp.

References mHighlightLight, and mShadowDark.

void LLViewBorder::setColorsExtended ( const LLColor4 shadow_light,
const LLColor4 shadow_dark,
const LLColor4 highlight_light,
const LLColor4 highlight_dark 
)

Definition at line 60 of file llviewborder.cpp.

References mHighlightDark, mHighlightLight, mShadowDark, and mShadowLight.

void LLViewBorder::setTexture ( const class LLUUID image_id  ) 

LLColor4 LLViewBorder::getHighlightLight (  )  [inline]

Definition at line 65 of file llviewborder.h.

References mHighlightLight.

LLColor4 LLViewBorder::getShadowDark (  )  [inline]

Definition at line 66 of file llviewborder.h.

References mHighlightDark.

EStyle LLViewBorder::getStyle (  )  const [inline]

Definition at line 68 of file llviewborder.h.

References mStyle.

Referenced by LLLineEditor::getXML().

Here is the caller graph for this function:

void LLViewBorder::setKeyboardFocusHighlight ( BOOL  b  )  [inline]

void LLViewBorder::drawOnePixelLines (  )  [private]

void LLViewBorder::drawTwoPixelLines (  )  [private]

void LLViewBorder::drawTextures (  )  [private]

Definition at line 225 of file llviewborder.cpp.

Referenced by draw().

Here is the caller graph for this function:

void LLViewBorder::drawTextureTrapezoid ( F32  degrees,
S32  width,
S32  length,
F32  start_x,
F32  start_y 
) [private]


Member Data Documentation

Definition at line 78 of file llviewborder.h.

Referenced by drawOnePixelLines(), drawTwoPixelLines(), getBevel(), and setBevel().

const EStyle LLViewBorder::mStyle [private]

Definition at line 79 of file llviewborder.h.

Referenced by draw(), and getStyle().

Definition at line 81 of file llviewborder.h.

Referenced by drawTwoPixelLines(), getShadowDark(), and setColorsExtended().

Definition at line 82 of file llviewborder.h.

Referenced by drawTwoPixelLines(), and setColorsExtended().

Definition at line 83 of file llviewborder.h.

Referenced by drawOnePixelLines(), drawTwoPixelLines(), setColors(), and setColorsExtended().

Definition at line 84 of file llviewborder.h.

Definition at line 85 of file llviewborder.h.

Referenced by draw(), getBorderWidth(), and setBorderWidth().

Definition at line 86 of file llviewborder.h.

Referenced by draw().

Definition at line 87 of file llviewborder.h.

Referenced by drawOnePixelLines(), drawTwoPixelLines(), and setKeyboardFocusHighlight().


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

Generated on Fri May 16 09:26:00 2008 for SecondLife by  doxygen 1.5.5