#include <llviewborder.h>
Inheritance diagram for LLViewBorder:
Definition at line 47 of file llviewborder.h.
enum LLViewBorder::EBevel |
Definition at line 50 of file llviewborder.h.
enum LLViewBorder::EStyle |
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().
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] |
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] |
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.
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().
Definition at line 85 of file llviewborder.cpp.
References LLImageProviderInterface::getUIImageByID(), mTexture, and LLUI::sImageProvider.
Reimplemented from LLView.
Definition at line 324 of file llviewborder.cpp.
References LLView::setRect().
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] |
LLPointer<LLImageGL> LLViewBorder::mTexture [protected] |
Definition at line 96 of file llviewborder.h.
Referenced by draw(), drawTextures(), and setTexture().