#include <CEGUIImage.h>
Collaboration diagram for CEGUI::Image:
Public Member Functions | |
Size | getSize (void) const |
Return a Size object containing the dimensions of the Image. | |
float | getWidth (void) const |
Return the pixel width of the image. | |
float | getHeight (void) const |
Return the pixel height of the image. | |
Point | getOffsets (void) const |
Return a Point object that contains the offset applied when rendering this Image. | |
float | getOffsetX (void) const |
Return the X rendering offset. | |
float | getOffsetY (void) const |
Return the Y rendering offset. | |
const String & | getName (void) const |
Return the name of this Image object. | |
const String & | getImagesetName (void) const |
Return the name of the Imageset that contains this Image. | |
const Rect & | getSourceTextureArea (void) const |
Return Rect describing the source texture area used by this Image. | |
void | draw (const Vector3 &position, const Size &size, const Rect &clip_rect, const colour &top_left_colour=0xFFFFFFFF, const colour &top_right_colour=0xFFFFFFFF, const colour &bottom_left_colour=0xFFFFFFFF, const colour &bottom_right_colour=0xFFFFFFFF, QuadSplitMode quad_split_mode=TopLeftToBottomRight) const |
Queue the image to be drawn. | |
void | draw (const Rect &dest_rect, float z, const Rect &clip_rect, const colour &top_left_colour=0xFFFFFFFF, const colour &top_right_colour=0xFFFFFFFF, const colour &bottom_left_colour=0xFFFFFFFF, const colour &bottom_right_colour=0xFFFFFFFF, QuadSplitMode quad_split_mode=TopLeftToBottomRight) const |
Queue the image to be drawn. | |
void | draw (const Vector3 &position, const Size &size, const Rect &clip_rect, const ColourRect &colours, QuadSplitMode quad_split_mode=TopLeftToBottomRight) const |
Queue the image to be drawn. | |
void | draw (const Vector3 &position, const Rect &clip_rect, const ColourRect &colours, QuadSplitMode quad_split_mode=TopLeftToBottomRight) const |
Queue the image to be drawn. | |
void | draw (const Vector3 &position, const Rect &clip_rect, const colour &top_left_colour=0xFFFFFFFF, const colour &top_right_colour=0xFFFFFFFF, const colour &bottom_left_colour=0xFFFFFFFF, const colour &bottom_right_colour=0xFFFFFFFF, QuadSplitMode quad_split_mode=TopLeftToBottomRight) const |
Queue the image to be drawn. | |
void | draw (const Rect &dest_rect, float z, const Rect &clip_rect, const ColourRect &colours, QuadSplitMode quad_split_mode=TopLeftToBottomRight) const |
Queue the image to be drawn. | |
void | writeXMLToStream (OutStream &out_stream) const |
Writes an xml representation of this Image object to out_stream. | |
Image (void) | |
Default constructor (only used by std::map). | |
Image (const Imageset *owner, const String &name, const Rect &area, const Point &render_offset, float horzScaling=1.0f, float vertScaling=1.0f) | |
Constructor for Image objects. This is not normally used directly by client code, use the Imageset interface instead. | |
Image (const Image &image) | |
Copy constructor. | |
~Image (void) | |
Destructor for Image objects. | |
Friends | |
class | std::map< String, Image > |
struct | std::pair< const String, Image > |
class | Imageset |
Definition at line 52 of file CEGUIImage.h.
|
Default constructor (only used by std::map).
Definition at line 394 of file CEGUIImage.h. |
|
Constructor for Image objects. This is not normally used directly by client code, use the Imageset interface instead.
Definition at line 42 of file CEGUIImage.cpp. |
|
Copy constructor.
Definition at line 63 of file CEGUIImage.cpp. |
|
Destructor for Image objects.
Definition at line 77 of file CEGUIImage.cpp. |
|
Queue the image to be drawn.
Definition at line 105 of file CEGUIImage.cpp. References CEGUI::Imageset::draw(), and CEGUI::Rect::offset(). |
|
Queue the image to be drawn.
Definition at line 333 of file CEGUIImage.h. References CEGUI::Vector3::d_x, CEGUI::Vector3::d_y, and CEGUI::Vector3::d_z. |
|
Queue the image to be drawn.
Definition at line 293 of file CEGUIImage.h. References CEGUI::Vector3::d_x, CEGUI::Vector3::d_y, and CEGUI::Vector3::d_z. |
|
Queue the image to be drawn.
Definition at line 259 of file CEGUIImage.h. References CEGUI::Size::d_height, CEGUI::Size::d_width, CEGUI::Vector3::d_x, CEGUI::Vector3::d_y, and CEGUI::Vector3::d_z. |
|
Queue the image to be drawn.
Definition at line 225 of file CEGUIImage.h. |
|
Queue the image to be drawn.
Definition at line 181 of file CEGUIImage.h. References CEGUI::Size::d_height, CEGUI::Size::d_width, CEGUI::Vector3::d_x, CEGUI::Vector3::d_y, and CEGUI::Vector3::d_z. Referenced by CEGUI::MouseCursor::draw(), CEGUI::ListboxTextItem::draw(), CEGUI::RenderableImage::draw_impl(), and CEGUI::RenderableFrame::draw_impl(). |
|
Return the pixel height of the image.
Definition at line 82 of file CEGUIImage.h. Referenced by CEGUI::RenderableFrame::draw_impl(), CEGUI::RenderableImage::getDestinationSize(), CEGUI::ImageDim::getValue_impl(), CEGUI::RenderableImage::getVertTileCount(), CEGUI::Static::setFrameImages(), and CEGUI::Static::setImageForFrameLocation(). |
|
Return the name of the Imageset that contains this Image.
Definition at line 129 of file CEGUIImage.cpp. References CEGUI::Imageset::getName(). Referenced by CEGUI::PropertyHelper::imageToString(), CEGUI::ImageryComponent::writeXMLToStream(), and CEGUI::FrameComponent::writeXMLToStream(). |
|
Return the name of this Image object.
Definition at line 120 of file CEGUIImage.cpp. Referenced by CEGUI::PropertyHelper::imageToString(), CEGUI::ImageryComponent::writeXMLToStream(), and CEGUI::FrameComponent::writeXMLToStream(). |
|
Return a Point object that contains the offset applied when rendering this Image.
Definition at line 92 of file CEGUIImage.h. |
|
Return the X rendering offset.
Definition at line 102 of file CEGUIImage.h. Referenced by CEGUI::RenderableImage::draw_impl(), CEGUI::RenderableFrame::draw_impl(), CEGUI::ImageDim::getValue_impl(), and CEGUI::FrameComponent::render_impl(). |
|
Return the Y rendering offset.
Definition at line 112 of file CEGUIImage.h. Referenced by CEGUI::RenderableImage::draw_impl(), CEGUI::RenderableFrame::draw_impl(), CEGUI::ImageDim::getValue_impl(), and CEGUI::FrameComponent::render_impl(). |
|
Return a Size object containing the dimensions of the Image.
Definition at line 62 of file CEGUIImage.h. Referenced by CEGUI::Tooltip::positionSelf(), CEGUI::ImageryComponent::render_impl(), and CEGUI::FrameComponent::render_impl(). |
|
Return Rect describing the source texture area used by this Image.
Definition at line 137 of file CEGUIImage.cpp. Referenced by CEGUI::ImageDim::getValue_impl(). |
|
Return the pixel width of the image.
Definition at line 72 of file CEGUIImage.h. Referenced by CEGUI::RenderableFrame::draw_impl(), CEGUI::RenderableImage::getDestinationSize(), CEGUI::RenderableImage::getHorzTileCount(), CEGUI::ImageDim::getValue_impl(), CEGUI::Static::setFrameImages(), and CEGUI::Static::setImageForFrameLocation(). |
|
Writes an xml representation of this Image object to out_stream.
Definition at line 146 of file CEGUIImage.cpp. References CEGUI::String::c_str(), CEGUI::Rect::d_left, CEGUI::Rect::d_top, CEGUI::Vector2::d_x, CEGUI::Vector2::d_y, CEGUI::Rect::getHeight(), CEGUI::Rect::getWidth(), CEGUI::PropertyHelper::intToString(), and CEGUI::PropertyHelper::uintToString(). |
|
Definition at line 443 of file CEGUIImage.h. |
|
Definition at line 383 of file CEGUIImage.h. |
|
Definition at line 384 of file CEGUIImage.h. |