LLUIImage Class Reference

#include <llui.h>

Inheritance diagram for LLUIImage:

Inheritance graph
[legend]
Collaboration diagram for LLUIImage:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 LLUIImage (const LLString &name, LLPointer< LLImageGL > image)
void setClipRegion (const LLRectf &region)
void setScaleRegion (const LLRectf &region)
LLPointer< LLImageGLgetImage ()
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 LLStringgetName () const
S32 getWidth () const
S32 getHeight () const
S32 getTextureWidth () const
S32 getTextureHeight () const

Protected Attributes

LLString mName
LLRectf mScaleRegion
LLRectf mClipRegion
LLPointer< LLImageGLmImage
BOOL mUniformScaling
BOOL mNoClip


Detailed Description

Definition at line 411 of file llui.h.


Constructor & Destructor Documentation

LLUIImage::LLUIImage ( const LLString name,
LLPointer< LLImageGL image 
)

Definition at line 1825 of file llui.cpp.


Member Function Documentation

void LLUIImage::setClipRegion ( const LLRectf region  ) 

void LLUIImage::setScaleRegion ( const LLRectf region  ) 

LLPointer<LLImageGL> LLUIImage::getImage (  )  [inline]

Definition at line 419 of file llui.h.

References mImage.

const LLPointer<LLImageGL>& LLUIImage::getImage (  )  const [inline]

Definition at line 420 of file llui.h.

References mImage.

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLUIImage::draw ( S32  x,
S32  y,
const LLColor4 color = UI_VERTEX_COLOR 
) const

Definition at line 1854 of file llui.cpp.

References gl_draw_image(), mClipRegion, and mImage.

Here is the call graph for this function:

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.

Here is the call graph for this function:

void LLUIImage::drawSolid ( S32  x,
S32  y,
S32  width,
S32  height,
const LLColor4 color 
) const

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().

Here is the call graph for this function:

Here is the caller graph for this function:

void LLUIImage::drawSolid ( const LLRect rect,
const LLColor4 color 
) const [inline]

Definition at line 427 of file llui.h.

References drawSolid(), LLRectBase< Type >::getHeight(), LLRectBase< Type >::getWidth(), LLRectBase< Type >::mBottom, and LLRectBase< Type >::mLeft.

Here is the call graph for this function:

void LLUIImage::drawSolid ( S32  x,
S32  y,
const LLColor4 color 
) const [inline]

Definition at line 428 of file llui.h.

References drawSolid(), and mImage.

Here is the call graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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.

Here is the call graph for this function:

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.

Here is the call graph for this function:

const LLString& LLUIImage::getName ( void   )  const [inline]

Definition at line 434 of file llui.h.

References mName.

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().

Here is the call graph for this function:

Here is the caller graph for this function:

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().

Here is the call graph for this function:

Here is the caller graph for this function:

S32 LLUIImage::getTextureWidth (  )  const

Definition at line 1910 of file llui.cpp.

References mImage.

S32 LLUIImage::getTextureHeight (  )  const

Definition at line 1915 of file llui.cpp.

References mImage.


Member Data Documentation

Definition at line 444 of file llui.h.

Referenced by getName().

Definition at line 445 of file llui.h.

Referenced by draw(), drawSolid(), and setScaleRegion().

Definition at line 446 of file llui.h.

Referenced by draw(), drawSolid(), getHeight(), getWidth(), and setClipRegion().

Definition at line 448 of file llui.h.

Referenced by draw(), and setScaleRegion().

BOOL LLUIImage::mNoClip [protected]

Definition at line 449 of file llui.h.

Referenced by setClipRegion().


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

Generated on Fri May 16 09:19:49 2008 for SecondLife by  doxygen 1.5.5