Class providing a shared library of Imageset objects to the system.
More...
List of all members.
Detailed Description
Class providing a shared library of Imageset objects to the system.
The ImagesetManager is used to create, access, and destroy Imageset objects. The idea is that the ImagesetManager will function as a central repository for imagery used within the GUI system, and that such imagery can be accessed, via a unique name, by any interested party within the system.
Member Function Documentation
Create a Imageset object with the given name and Texture.
The created Imageset will be of limited use, and will require one or more images to be defined for the set.
- Parameters:
-
name | String object containing the unique name for the Imageset being created. |
texture | Texture object to be associated with the Imageset |
action | One of the XMLResourceExistsAction enumerated values indicating what action should be taken when an Imageset with the specified name already exists. |
- Returns:
- Reference to the newly created Imageset object
- Exceptions:
-
Create an Imageset object from the specified image file. The Imageset will initially have a single image defined named "full_image" which is an image that represents the entire area of the loaded image.
- Parameters:
-
name | String object containing the unique name for the Imageset being created. |
filename | String object holding the name of the image file to be loaded. |
resourceGroup | Resource group identifier to be passed to the resource manager when loading the image file. |
action | One of the XMLResourceExistsAction enumerated values indicating what action should be taken when an Imageset with the specified name already exists. |
- Returns:
- Reference to the newly created Imageset object
- Exceptions:
-
void CEGUI::ImagesetManager::notifyDisplaySizeChanged |
( |
const Size & |
size ) |
|
Notify the ImagesetManager that the display size may have changed.
- Parameters:
-
size | Size object describing the display resolution |
void CEGUI::ImagesetManager::writeImagesetToStream |
( |
const String & |
imageset, |
|
|
OutStream & |
out_stream |
|
) |
| const |
Writes a full XML imageset for the specified Imageset to the given OutStream.
- Parameters:
-
imageset | String holding the name of the Imageset to be written to the stream. |
out_stream | OutStream (std::ostream based) object where data is to be sent. |
- Returns:
- Nothing.