#include <llviewborder.h>
Definition at line 38 of file llviewborder.h.
enum LLViewBorder::EBevel |
Definition at line 41 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 38 of file llviewborder.cpp.
References LLView::setFollowsAll().
Referenced by fromXML().
virtual void LLViewBorder::setValue | ( | const LLSD & | val | ) | [inline, virtual] |
Reimplemented from LLView.
Definition at line 46 of file llviewborder.h.
References LLView::setRect().
virtual BOOL LLViewBorder::isCtrl | ( | ) | const [inline, virtual] |
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.
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.
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().
void LLViewBorder::setBorderWidth | ( | S32 | width | ) | [inline] |
S32 LLViewBorder::getBorderWidth | ( | ) | const [inline] |
Definition at line 57 of file llviewborder.h.
References mBorderWidth.
Referenced by LLScrollableContainerView::calcVisibleSize(), LLScrollableContainerView::getBorderWidth(), LLLineEditor::getXML(), LLScrollableContainerView::init(), LLScrollableContainerView::reshape(), and LLScrollableContainerView::updateScroll().
void LLViewBorder::setBevel | ( | EBevel | bevel | ) | [inline] |
EBevel LLViewBorder::getBevel | ( | ) | const [inline] |
Definition at line 59 of file llviewborder.h.
References mBevel.
Referenced by LLLineEditor::getXML().
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] |
LLColor4 LLViewBorder::getShadowDark | ( | ) | [inline] |
EStyle LLViewBorder::getStyle | ( | ) | const [inline] |
Definition at line 68 of file llviewborder.h.
References mStyle.
Referenced by LLLineEditor::getXML().
void LLViewBorder::setKeyboardFocusHighlight | ( | BOOL | b | ) | [inline] |
Definition at line 70 of file llviewborder.h.
References mHasKeyboardFocus.
Referenced by LLWebBrowserCtrl::draw(), LLTextureCtrl::draw(), LLColorSwatchCtrl::draw(), LLTextEditor::draw(), LLScrollListCtrl::draw(), LLScrollableContainerView::draw(), and LLLineEditor::draw().
void LLViewBorder::drawOnePixelLines | ( | ) | [private] |
Definition at line 112 of file llviewborder.cpp.
References BEVEL_IN, BEVEL_NONE, BEVEL_OUT, LLGLImmediate::color4fv(), LLFocusMgr::getFocusColor(), LLFocusMgr::getFocusFlashAmt(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), gFocusMgr, gGL, gl_line_2d(), lerp(), llassert, mBevel, mHasKeyboardFocus, mHighlightLight, mShadowDark, LLColor4::mV, S32, and LLUI::setLineWidth().
Referenced by draw().
void LLViewBorder::drawTwoPixelLines | ( | ) | [private] |
Definition at line 159 of file llviewborder.cpp.
References BEVEL_BRIGHT, BEVEL_IN, BEVEL_NONE, BEVEL_OUT, LLGLImmediate::color3fv(), LLFocusMgr::getFocusColor(), LLRectBase< Type >::getHeight(), LLView::getRect(), LLRectBase< Type >::getWidth(), gFocusMgr, gGL, gl_line_2d(), llassert, mBevel, mHasKeyboardFocus, mHighlightDark, mHighlightLight, mShadowDark, mShadowLight, LLColor4::mV, and S32.
Referenced by draw().
void LLViewBorder::drawTextures | ( | ) | [private] |
Definition at line 225 of file llviewborder.cpp.
Referenced by draw().
void LLViewBorder::drawTextureTrapezoid | ( | F32 | degrees, | |
S32 | width, | |||
S32 | length, | |||
F32 | start_x, | |||
F32 | start_y | |||
) | [private] |
Definition at line 244 of file llviewborder.cpp.
References LLGLImmediate::begin(), LLGLImmediate::end(), gGL, LLGLImmediate::popMatrix(), LLGLImmediate::pushMatrix(), LLVertexBuffer::QUADS, LLGLImmediate::texCoord2f(), LLGLImmediate::translatef(), and LLGLImmediate::vertex2i().
EBevel LLViewBorder::mBevel [private] |
Definition at line 78 of file llviewborder.h.
Referenced by drawOnePixelLines(), drawTwoPixelLines(), getBevel(), and setBevel().
const EStyle LLViewBorder::mStyle [private] |
LLColor4 LLViewBorder::mHighlightLight [private] |
Definition at line 80 of file llviewborder.h.
Referenced by drawOnePixelLines(), drawTwoPixelLines(), getHighlightLight(), setColors(), and setColorsExtended().
LLColor4 LLViewBorder::mHighlightDark [private] |
Definition at line 81 of file llviewborder.h.
Referenced by drawTwoPixelLines(), getShadowDark(), and setColorsExtended().
LLColor4 LLViewBorder::mShadowLight [private] |
Definition at line 82 of file llviewborder.h.
Referenced by drawTwoPixelLines(), and setColorsExtended().
LLColor4 LLViewBorder::mShadowDark [private] |
Definition at line 83 of file llviewborder.h.
Referenced by drawOnePixelLines(), drawTwoPixelLines(), setColors(), and setColorsExtended().
LLColor4 LLViewBorder::mBackgroundColor [private] |
Definition at line 84 of file llviewborder.h.
S32 LLViewBorder::mBorderWidth [private] |
Definition at line 85 of file llviewborder.h.
Referenced by draw(), getBorderWidth(), and setBorderWidth().
LLUIImagePtr LLViewBorder::mTexture [private] |
BOOL LLViewBorder::mHasKeyboardFocus [private] |
Definition at line 87 of file llviewborder.h.
Referenced by drawOnePixelLines(), drawTwoPixelLines(), and setKeyboardFocusHighlight().