#include <CEGUIInterfaces.h>
Inherits DigitalSpaces::DIObjectBase.
Public Member Functions | |
| const char * | getName () |
| return Texture object for this Imageset | |
| unsigned int | getImageCount () |
| return number of images defined for this Imageset | |
| bool | isImageDefined (const char *name) |
| return true if an Image with the specified name exists. | |
| DICEGUIImage * | getImage (const char *name) |
| return a copy of the Image object for the named image | |
| void | undefineImage (const char *name) |
| remove the definition for the Image with the specified name. If no such Image exists, nothing happens. | |
| void | undefineAllImages () |
| Removes the definitions for all Image objects currently defined in the Imageset. | |
| void | getImageSize (const char *name, out_Pairf *size) |
| return a Size object describing the dimensions of the named image. | |
| float | getImageWidth (const char *name) |
| return the width of the named image. | |
| float | getImageHeight (const char *name) |
| return the height of the named image. | |
| void | getImageOffset (const char *name, out_Pairf *offset) |
| return the rendering offsets applied to the named image. | |
| float | getImageOffsetX (const char *name) |
| return the x rendering offset for the named image. | |
| float | getImageOffsetY (const char *name) |
| return the y rendering offset for the named image. | |
| void | defineImage (const char *name, in_Pairf *position, in_Pairf *size, in_Pairf *render_offset) |
| Define a new Image for this Imageset. | |
| void | defineImage (const char *name, in_Vector4f *image_rect, in_Pairf *render_offset) |
| Define a new Image for this Imageset. | |
| bool | isAutoScaled () |
| Return whether this Imageset is auto-scaled. | |
| void | getNativeResolution (out_Pairf *resolution) |
| Return the native display size for this Imageset. This is only relevant if the Imageset is being auto-scaled. | |
| void | setAutoScalingEnabled (bool setting) |
| Enable or disable auto-scaling for this Imageset. | |
| void | setNativeResolution (in_Pairf *size) |
| Set the native resolution for this Imageset. | |
| void | notifyScreenResolution (in_Pairf *size) |
| Notify the Imageset of the current (usually new) display resolution. | |
| const char* DigitalSpaces::DICEGUIImageset::getName | ( | ) |
return Texture object for this Imageset
| unsigned int DigitalSpaces::DICEGUIImageset::getImageCount | ( | ) |
return number of images defined for this Imageset
| bool DigitalSpaces::DICEGUIImageset::isImageDefined | ( | const char * | name | ) |
return true if an Image with the specified name exists.
| name | String object holding the name of the Image to look for. |
| DICEGUIImage* DigitalSpaces::DICEGUIImageset::getImage | ( | const char * | name | ) |
return a copy of the Image object for the named image
| name | String object holding the name of the Image object to be returned |
| UnknownObjectException | thrown if no Image named name is defined for the Imageset |
| void DigitalSpaces::DICEGUIImageset::undefineImage | ( | const char * | name | ) |
remove the definition for the Image with the specified name. If no such Image exists, nothing happens.
| name | String object holding the name of the Image object to be removed from the Imageset, |
| void DigitalSpaces::DICEGUIImageset::undefineAllImages | ( | ) |
Removes the definitions for all Image objects currently defined in the Imageset.
| void DigitalSpaces::DICEGUIImageset::getImageSize | ( | const char * | name, | |
| out_Pairf * | size | |||
| ) |
return a Size object describing the dimensions of the named image.
| name | String object holding the name of the Image. |
| UnknownObjectException | thrown if no Image named name is defined for the Imageset |
| float DigitalSpaces::DICEGUIImageset::getImageWidth | ( | const char * | name | ) |
return the width of the named image.
| name | String object holding the name of the Image. |
| UnknownObjectException | thrown if no Image named name is defined for the Imageset |
| float DigitalSpaces::DICEGUIImageset::getImageHeight | ( | const char * | name | ) |
return the height of the named image.
| name | String object holding the name of the Image. |
| UnknownObjectException | thrown if no Image named name is defined for the Imageset |
| void DigitalSpaces::DICEGUIImageset::getImageOffset | ( | const char * | name, | |
| out_Pairf * | offset | |||
| ) |
return the rendering offsets applied to the named image.
| name | String object holding the name of the Image. |
| UnknownObjectException | thrown if no Image named name is defined for the Imageset |
| float DigitalSpaces::DICEGUIImageset::getImageOffsetX | ( | const char * | name | ) |
return the x rendering offset for the named image.
| name | String object holding the name of the Image. |
| UnknownObjectException | thrown if no Image named name is defined for the Imageset |
| float DigitalSpaces::DICEGUIImageset::getImageOffsetY | ( | const char * | name | ) |
return the y rendering offset for the named image.
| name | String object holding the name of the Image. |
| UnknownObjectException | thrown if no Image named name is defined for the Imageset |
| void DigitalSpaces::DICEGUIImageset::defineImage | ( | const char * | name, | |
| in_Pairf * | position, | |||
| in_Pairf * | size, | |||
| in_Pairf * | render_offset | |||
| ) |
Define a new Image for this Imageset.
| name | String object holding the name that will be assigned to the new Image, which must be unique within the Imageset. | |
| position | Point object describing the pixel location of the Image on the image file / texture associated with this Imageset. | |
| size | Size object describing the dimensions of the Image, in pixels. | |
| render_offset | Point object describing the offsets, in pixels, that are to be applied to the Image when it is drawn. |
| AlreadyExistsException | thrown if an Image named name is already defined for this Imageset |
| void DigitalSpaces::DICEGUIImageset::defineImage | ( | const char * | name, | |
| in_Vector4f * | image_rect, | |||
| in_Pairf * | render_offset | |||
| ) |
Define a new Image for this Imageset.
| name | String object holding the name that will be assigned to the new Image, which must be unique within the Imageset. | |
| image_rect | Rect object describing the area on the image file / texture associated with this Imageset that will be used for the Image. | |
| render_offset | Point object describing the offsets, in pixels, that are to be applied to the Image when it is drawn. |
| AlreadyExistsException | thrown if an Image named name is already defined for this Imageset |
| bool DigitalSpaces::DICEGUIImageset::isAutoScaled | ( | ) |
Return whether this Imageset is auto-scaled.
| void DigitalSpaces::DICEGUIImageset::getNativeResolution | ( | out_Pairf * | resolution | ) |
Return the native display size for this Imageset. This is only relevant if the Imageset is being auto-scaled.
| void DigitalSpaces::DICEGUIImageset::setAutoScalingEnabled | ( | bool | setting | ) |
Enable or disable auto-scaling for this Imageset.
| setting | true to enable auto-scaling, false to disable auto-scaling. |
| void DigitalSpaces::DICEGUIImageset::setNativeResolution | ( | in_Pairf * | size | ) |
Set the native resolution for this Imageset.
| size | Size object describing the new native screen resolution for this Imageset. |
| void DigitalSpaces::DICEGUIImageset::notifyScreenResolution | ( | in_Pairf * | size | ) |
Notify the Imageset of the current (usually new) display resolution.
| size | Size object describing the display resolution |
1.5.6