Om
1.0.0
A universal framework for multimedia simulation
|
A class that represents a rectangular region containing an image drawn by an arbitrary process. More...
#include <omGraphicsGUIImage.h>
Classes | |
class | Delegate |
A class that contains function objects that recieve GUIImage events. More... | |
Public Types | |
enum | Type { CHECK, CHECK_CIRCLE, CIRCLE, CLOCK, EDIT, ET_CETERA, EYE, FOLDER, HARD_DISK, MINIMIZE, OPEN_IN_WINDOW, PLUS, PLUS_CIRCLE, POWER, SEARCH, SHARED, TAG, TIMES, TIMES_CIRCLE, TRIANGLE_LEFT, TRIANGLE_RIGHT, TRIANGLE_UP, TRIANGLE_DOWN, WINDOW } |
An enum containing standard GUI image types. More... | |
Public Member Functions | |
GUIImage () | |
Create a new GUI image with a width and height of 0. More... | |
GUIImage (const Vector2f &newSize) | |
Create a new GUI image with the specified displayed size in pixels. More... | |
const Vector2f & | getSize () const |
Return a 2D vector representing the displayed size of this image in pixels. More... | |
void | setSize (const Vector2f &newSize) |
Set a 2D vector representing the displayed size of this image in pixels. More... | |
const AABB2f & | getBounds () const |
Return a 2D bounding box within the image's normalized coordinates (0 to 1) where the image is located. More... | |
void | setBounds (const AABB2f &newBounds) |
Set a 2D bounding box within the image's normalized coordinates (0 to 1) where the image is located. More... | |
const Color4f & | getColor () const |
Return a color that should be used to tint the image's appearance. More... | |
void | setColor (const Color4f &newColor) |
Set a color that should be used to tint the image's appearance. More... | |
Image * | getImage () const |
Return a pointer to this image's raster representation. More... | |
void | setImage (Image *newImage) |
Set a pointer to this image's raster representation. More... | |
const Delegate & | getDelegate () const |
Return an object that contains functions that respond to GUI image events. More... | |
void | setDelegate (const Delegate &newDelegate) |
Set an object that contains functions that respond to GUI image events. More... | |
Static Public Member Functions | |
static Bool | get (Type imageType, const Vector2f &size, const Color4f &color, GUIImage &image) |
Get an image object that represents the specified standard image type. More... | |
static GUIImage | get (Type imageType, const Vector2f &size, const Color4f &color) |
Return an image object that represents the specified standard image type. More... | |
A class that represents a rectangular region containing an image drawn by an arbitrary process.
This abstraction allows GUIs to use pixel-based or vector-based images (via an external callback interface).
An enum containing standard GUI image types.
|
inline |
Create a new GUI image with a width and height of 0.
|
inline |
Create a new GUI image with the specified displayed size in pixels.
|
inline |
Return a 2D vector representing the displayed size of this image in pixels.
This is the size that the image is scaled to (neglecting any parent scaling) when it is displayed. This size also determines the aspect ratio of the image.
|
inline |
Set a 2D vector representing the displayed size of this image in pixels.
This is the size that the image is scaled to (neglecting any parent scaling) when it is displayed. This size also determines the aspect ratio of the image.
|
inline |
Return a 2D bounding box within the image's normalized coordinates (0 to 1) where the image is located.
|
inline |
Set a 2D bounding box within the image's normalized coordinates (0 to 1) where the image is located.
|
inline |
Return a color that should be used to tint the image's appearance.
|
inline |
Set a color that should be used to tint the image's appearance.
|
inline |
Return a pointer to this image's raster representation.
If the image's delegate does not have a valid draw function set, this representation is used to draw the image using the default method.
|
inline |
Set a pointer to this image's raster representation.
If the image's delegate does not have a valid draw function set, this representation is used to draw the image using the default method.
|
inline |
Return an object that contains functions that respond to GUI image events.
|
inline |
Set an object that contains functions that respond to GUI image events.
|
static |
Get an image object that represents the specified standard image type.
The image is created with the given size and tint color. The method returns whether or not an image for that type was found.
|
static |
Return an image object that represents the specified standard image type.
The image is created with the given size and tint color.