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

 BEVEL_IN
 BEVEL_OUT
 BEVEL_BRIGHT
 BEVEL_NONE
 STYLE_LINE
 STYLE_TEXTURE
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 EWidgetType getWidgetType () const
virtual LLString getWidgetTag () const
virtual BOOL isCtrl () const
virtual void draw ()
void setBorderWidth (S32 width)
void setBevel (EBevel bevel)
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 LLUUID &image_id)
EBevel getBevel () const
EStyle getStyle () const
S32 getBorderWidth () const
void setKeyboardFocusHighlight (BOOL b)

Static Public Member Functions

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

Protected Member Functions

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

Protected Attributes

EBevel mBevel
EStyle mStyle
LLColor4 mHighlightLight
LLColor4 mHighlightDark
LLColor4 mShadowLight
LLColor4 mShadowDark
LLColor4 mBackgroundColor
S32 mBorderWidth
LLPointer< LLImageGLmTexture
BOOL mHasKeyboardFocus

Detailed Description

Definition at line 47 of file llviewborder.h.


Member Enumeration Documentation

enum LLViewBorder::EBevel

Enumerator:
BEVEL_IN 
BEVEL_OUT 
BEVEL_BRIGHT 
BEVEL_NONE 

Definition at line 50 of file llviewborder.h.

enum LLViewBorder::EStyle

Enumerator:
STYLE_LINE 
STYLE_TEXTURE 

Definition at line 52 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 47 of file llviewborder.cpp.

References LLView::setFollowsAll().

Referenced by fromXML().


Member Function Documentation

void LLViewBorder::draw (  )  [virtual]

Reimplemented from LLView.

Definition at line 91 of file llviewborder.cpp.

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

void LLViewBorder::drawOnePixelLines (  )  [protected]

Definition at line 130 of file llviewborder.cpp.

References BEVEL_IN, BEVEL_NONE, BEVEL_OUT, bottom, f, LLFocusMgr::getFocusColor(), LLFocusMgr::getFocusFlashAmt(), LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), gFocusMgr, gl_line_2d(), glColor4fv, left, lerp(), llassert, mBevel, mHasKeyboardFocus, mHighlightLight, LLView::mRect, mShadowDark, LLColor4::mV, right, S32, LLUI::setLineWidth(), and top.

Referenced by draw().

void LLViewBorder::drawTextures (  )  [protected]

Definition at line 244 of file llviewborder.cpp.

References drawTextureTrapezoid(), f, FALSE, LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), glColor4fv, llassert, mBorderWidth, LLView::mRect, mTexture, LLColor4::mV, and UI_VERTEX_COLOR.

Referenced by draw().

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

Definition at line 263 of file llviewborder.cpp.

References f, glBegin, glEnd, glPopMatrix, glRotatef, and glTranslatef.

Referenced by drawTextures().

void LLViewBorder::drawTwoPixelLines (  )  [protected]

Definition at line 178 of file llviewborder.cpp.

References BEVEL_BRIGHT, BEVEL_IN, BEVEL_NONE, BEVEL_OUT, bottom, LLFocusMgr::getFocusColor(), LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), gFocusMgr, gl_line_2d(), glColor3fv, left, llassert, mBevel, mHasKeyboardFocus, mHighlightDark, mHighlightLight, LLView::mRect, mShadowDark, mShadowLight, LLColor4::mV, right, S32, and top.

Referenced by draw().

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

Definition at line 340 of file llviewborder.cpp.

References BEVEL_IN, border, getBevelFromAttribute(), LLViewBorder(), S32, and STYLE_LINE.

EBevel LLViewBorder::getBevel (  )  const [inline]

Definition at line 75 of file llviewborder.h.

References mBevel.

Referenced by LLLineEditor::getXML().

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

Definition at line 295 of file llviewborder.cpp.

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

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

S32 LLViewBorder::getBorderWidth (  )  const [inline]

Definition at line 77 of file llviewborder.h.

References mBorderWidth.

Referenced by LLScrollableContainerView::calcVisibleSize(), LLScrollableContainerView::getBorderWidth(), LLLineEditor::getXML(), LLScrollableContainerView::reshape(), and LLScrollableContainerView::updateScroll().

EStyle LLViewBorder::getStyle (  )  const [inline]

Definition at line 76 of file llviewborder.h.

References mStyle.

Referenced by LLLineEditor::getXML().

LLString LLViewBorder::getWidgetTag (  )  const [virtual]

Implements LLView.

Definition at line 334 of file llviewborder.cpp.

References LL_VIEW_BORDER_TAG.

EWidgetType LLViewBorder::getWidgetType (  )  const [virtual]

Implements LLView.

Definition at line 329 of file llviewborder.cpp.

References WIDGET_TYPE_VIEW_BORDER.

BOOL LLViewBorder::isCtrl (  )  const [virtual]

Reimplemented from LLView.

Definition at line 65 of file llviewborder.cpp.

References FALSE.

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

Definition at line 69 of file llviewborder.h.

References mBevel.

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

Definition at line 68 of file llviewborder.h.

References mBorderWidth.

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

Definition at line 70 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 76 of file llviewborder.cpp.

References mHighlightDark, mHighlightLight, mShadowDark, and mShadowLight.

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

Definition at line 79 of file llviewborder.h.

References mHasKeyboardFocus.

Referenced by LLTextureCtrl::draw(), LLTextEditor::draw(), LLScrollListCtrl::draw(), LLScrollableContainerView::draw(), LLLineEditor::draw(), LLComboBox::draw(), and LLColorSwatchCtrl::draw().

void LLViewBorder::setTexture ( const LLUUID image_id  ) 

Definition at line 85 of file llviewborder.cpp.

References LLImageProviderInterface::getUIImageByID(), mTexture, and LLUI::sImageProvider.

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

Reimplemented from LLView.

Definition at line 324 of file llviewborder.cpp.

References LLView::setRect().


Member Data Documentation

LLColor4 LLViewBorder::mBackgroundColor [protected]

Definition at line 94 of file llviewborder.h.

EBevel LLViewBorder::mBevel [protected]

Definition at line 88 of file llviewborder.h.

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

S32 LLViewBorder::mBorderWidth [protected]

Definition at line 95 of file llviewborder.h.

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

BOOL LLViewBorder::mHasKeyboardFocus [protected]

Definition at line 97 of file llviewborder.h.

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

LLColor4 LLViewBorder::mHighlightDark [protected]

Definition at line 91 of file llviewborder.h.

Referenced by drawTwoPixelLines(), and setColorsExtended().

LLColor4 LLViewBorder::mHighlightLight [protected]

Definition at line 90 of file llviewborder.h.

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

LLColor4 LLViewBorder::mShadowDark [protected]

Definition at line 93 of file llviewborder.h.

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

LLColor4 LLViewBorder::mShadowLight [protected]

Definition at line 92 of file llviewborder.h.

Referenced by drawTwoPixelLines(), and setColorsExtended().

EStyle LLViewBorder::mStyle [protected]

Definition at line 89 of file llviewborder.h.

Referenced by draw(), and getStyle().

LLPointer<LLImageGL> LLViewBorder::mTexture [protected]

Definition at line 96 of file llviewborder.h.

Referenced by draw(), drawTextures(), and setTexture().


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