Collaboration diagram for CEGUI::RenderableFrame:
Public Member Functions | |
RenderableFrame (void) | |
Default constructor for RenderableFrame. | |
virtual | ~RenderableFrame (void) |
Destructor for RenderableFrame. | |
void | setImages (const Image *topleft, const Image *topright, const Image *bottomleft, const Image *bottomright, const Image *left, const Image *top, const Image *right, const Image *bottom) |
specify the Image objects to use for each part of the frame. A NULL may be used to omit any part. | |
void | setImageForLocation (FrameLocation location, const Image *image) |
Set the Image to use for the specified location of the frame. | |
const Image * | getImageForLocation (FrameLocation location) const |
Return the Image being used for the specified location of the frame. | |
Protected Member Functions | |
void | draw_impl (const Vector3 &position, const Rect &clip_rect) const |
Renders the imagery for a RenderableFrame element. | |
void | draw_impl (RenderCache &renderCache) const |
Protected Attributes | |
const Image * | d_topleft |
Image to draw for the top-left corner. | |
const Image * | d_topright |
Image to draw for the top-right corner. | |
const Image * | d_bottomleft |
Image to draw for the bottom-left corner. | |
const Image * | d_bottomright |
Image to draw for the bottom-right corner. | |
const Image * | d_left |
Image to draw for the left edge. | |
const Image * | d_right |
Image to draw for the right edge. | |
const Image * | d_top |
Image to draw for the top edge. | |
const Image * | d_bottom |
Image to draw for the bottom edge. |
This class is intended to be used where a (usually top-level) GUI element needs to draw a frame that is constructed from a collection of Images. It is possible to specify the image to use for each of the four corners, which are placed appropriately at their natural size, and the images for the four edges, which are stretched to cover the area between any corner images. Any of the Images may be omitted, in which case that part of the frame is not drawn. If the GUI element uses only one image for its frame (usually stretched over the entire area of the element) then a better choice would be to use a RenderableImage, or perform the rendering directly instead.
|
Renders the imagery for a RenderableFrame element.
|
|
Return the Image being used for the specified location of the frame.
|
|
Set the Image to use for the specified location of the frame.
|
|
specify the Image objects to use for each part of the frame. A NULL may be used to omit any part.
|