#include <llui.h>
Public Member Functions | |
LLUIImage (const LLString &name, LLPointer< LLImageGL > image) | |
void | setClipRegion (const LLRectf ®ion) |
void | setScaleRegion (const LLRectf ®ion) |
LLPointer< LLImageGL > | getImage () |
const LLPointer< LLImageGL > & | getImage () const |
void | draw (S32 x, S32 y, S32 width, S32 height, const LLColor4 &color=UI_VERTEX_COLOR) const |
void | draw (S32 x, S32 y, const LLColor4 &color=UI_VERTEX_COLOR) const |
void | draw (const LLRect &rect, const LLColor4 &color=UI_VERTEX_COLOR) const |
void | drawSolid (S32 x, S32 y, S32 width, S32 height, const LLColor4 &color) const |
void | drawSolid (const LLRect &rect, const LLColor4 &color) const |
void | drawSolid (S32 x, S32 y, const LLColor4 &color) const |
void | drawBorder (S32 x, S32 y, S32 width, S32 height, const LLColor4 &color, S32 border_width) const |
void | drawBorder (const LLRect &rect, const LLColor4 &color, S32 border_width) const |
void | drawBorder (S32 x, S32 y, const LLColor4 &color, S32 border_width) const |
const LLString & | getName () const |
S32 | getWidth () const |
S32 | getHeight () const |
S32 | getTextureWidth () const |
S32 | getTextureHeight () const |
Protected Attributes | |
LLString | mName |
LLRectf | mScaleRegion |
LLRectf | mClipRegion |
LLPointer< LLImageGL > | mImage |
BOOL | mUniformScaling |
BOOL | mNoClip |
Definition at line 411 of file llui.h.
void LLUIImage::setClipRegion | ( | const LLRectf & | region | ) |
Definition at line 1835 of file llui.cpp.
References LLRectBase< Type >::mBottom, mClipRegion, LLRectBase< Type >::mLeft, mNoClip, LLRectBase< Type >::mRight, and LLRectBase< Type >::mTop.
void LLUIImage::setScaleRegion | ( | const LLRectf & | region | ) |
Definition at line 1844 of file llui.cpp.
References LLRectBase< Type >::mBottom, LLRectBase< Type >::mLeft, LLRectBase< Type >::mRight, mScaleRegion, LLRectBase< Type >::mTop, and mUniformScaling.
void LLUIImage::draw | ( | S32 | x, | |
S32 | y, | |||
S32 | width, | |||
S32 | height, | |||
const LLColor4 & | color = UI_VERTEX_COLOR | |||
) | const |
Definition at line 1859 of file llui.cpp.
References FALSE, gl_draw_scaled_image(), gl_draw_scaled_image_with_border(), mClipRegion, mImage, mScaleRegion, and mUniformScaling.
Referenced by draw(), LLSlider::draw(), and LLScrollbar::draw().
Definition at line 1854 of file llui.cpp.
References gl_draw_image(), mClipRegion, and mImage.
void LLUIImage::draw | ( | const LLRect & | rect, | |
const LLColor4 & | color = UI_VERTEX_COLOR | |||
) | const [inline] |
Definition at line 424 of file llui.h.
References draw(), LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), LLRectBase< Type >::mBottom, and LLRectBase< Type >::mLeft.
Definition at line 1878 of file llui.cpp.
References gl_draw_scaled_image_with_border(), mClipRegion, mImage, mScaleRegion, and TRUE.
Referenced by LLScrollbar::draw(), drawBorder(), and drawSolid().
Definition at line 427 of file llui.h.
References drawSolid(), LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), LLRectBase< Type >::mBottom, and LLRectBase< Type >::mLeft.
Definition at line 428 of file llui.h.
References drawSolid(), and mImage.
void LLUIImage::drawBorder | ( | S32 | x, | |
S32 | y, | |||
S32 | width, | |||
S32 | height, | |||
const LLColor4 & | color, | |||
S32 | border_width | |||
) | const |
Definition at line 1890 of file llui.cpp.
References drawSolid(), LLRectBase< Type >::setOriginAndSize(), and LLRectBase< Type >::stretch().
Referenced by LLSlider::draw(), and drawBorder().
void LLUIImage::drawBorder | ( | const LLRect & | rect, | |
const LLColor4 & | color, | |||
S32 | border_width | |||
) | const [inline] |
Definition at line 431 of file llui.h.
References drawBorder(), LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), LLRectBase< Type >::mBottom, and LLRectBase< Type >::mLeft.
void LLUIImage::drawBorder | ( | S32 | x, | |
S32 | y, | |||
const LLColor4 & | color, | |||
S32 | border_width | |||
) | const [inline] |
Definition at line 432 of file llui.h.
References drawBorder(), and mImage.
const LLString& LLUIImage::getName | ( | void | ) | const [inline] |
S32 LLUIImage::getWidth | ( | ) | const |
Definition at line 1898 of file llui.cpp.
References LLRectBase< Type >::getWidth(), llround(), mClipRegion, and mImage.
Referenced by LLSlider::draw(), LLSlider::handleHover(), LLSlider::handleMouseDown(), and LLSlider::updateThumbRect().
S32 LLUIImage::getHeight | ( | ) | const |
Definition at line 1904 of file llui.cpp.
References LLRectBase< Type >::getHeight(), llround(), mClipRegion, and mImage.
Referenced by LLSlider::draw(), and LLSlider::updateThumbRect().
S32 LLUIImage::getTextureWidth | ( | ) | const |
S32 LLUIImage::getTextureHeight | ( | ) | const |
LLString LLUIImage::mName [protected] |
LLRectf LLUIImage::mScaleRegion [protected] |
LLRectf LLUIImage::mClipRegion [protected] |
Definition at line 446 of file llui.h.
Referenced by draw(), drawSolid(), getHeight(), getWidth(), and setClipRegion().
LLPointer<LLImageGL> LLUIImage::mImage [protected] |
Definition at line 447 of file llui.h.
Referenced by draw(), drawBorder(), drawSolid(), getHeight(), getImage(), getTextureHeight(), getTextureWidth(), and getWidth().
BOOL LLUIImage::mUniformScaling [protected] |
BOOL LLUIImage::mNoClip [protected] |