#include <CEGUIImagesetManager.h>
Inheritance diagram for CEGUI::ImagesetManager:
Public Types | |
typedef ConstBaseIterator< ImagesetRegistry > | ImagesetIterator |
Public Member Functions | |
ImagesetManager (void) | |
Constructor for ImagesetManager objects. | |
~ImagesetManager (void) | |
Destructor for ImagesetManager objects. | |
Imageset * | createImageset (const String &name, Texture *texture) |
Create a Imageset object with the given name and Texture. | |
Imageset * | createImageset (const String &filename, const String &resourceGroup="") |
Create an Imageset object from the specified file. | |
Imageset * | createImagesetFromImageFile (const String &name, const String &filename, const String &resourceGroup="") |
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. | |
void | destroyImageset (const String &name) |
Destroys the Imageset with the specified name. | |
void | destroyImageset (Imageset *imageset) |
Destroys the given Imageset object. | |
void | destroyAllImagesets (void) |
Destroys all Imageset objects registered in the system. | |
Imageset * | getImageset (const String &name) const |
Returns a pointer to the Imageset object with the specified name. | |
bool | isImagesetPresent (const String &name) const |
Check for the existence of a named Imageset. | |
void | notifyScreenResolution (const Size &size) |
Notify the ImagesetManager of the current (usually new) display resolution. | |
void | writeImagesetToStream (const String &imageset, OutStream &out_stream) const |
Writes a full XML imageset for the specified Imageset to the given OutStream. | |
ImagesetIterator | getIterator (void) const |
Return a ImagesetManager::ImagesetIterator object to iterate over the available Imageset objects. | |
Singleton (void) | |
Static Public Member Functions | |
static ImagesetManager & | getSingleton (void) |
Return singleton ImagesetManager object. | |
static ImagesetManager * | getSingletonPtr (void) |
Return pointer to singleton ImagesetManager object. | |
Static Protected Attributes | |
static ImagesetManager * | ms_Singleton = NULL |
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.
Definition at line 54 of file CEGUIImagesetManager.h.
|
Definition at line 256 of file CEGUIImagesetManager.h. |
|
Constructor for ImagesetManager objects.
Definition at line 44 of file CEGUIImagesetManager.cpp. References CEGUI::Logger::getSingleton(), and CEGUI::Logger::logEvent(). |
|
Destructor for ImagesetManager objects.
Definition at line 53 of file CEGUIImagesetManager.cpp. References destroyAllImagesets(), CEGUI::Logger::getSingleton(), and CEGUI::Logger::logEvent(). |
|
Create an Imageset object from the specified file.
Definition at line 86 of file CEGUIImagesetManager.cpp. References CEGUI::Imageset::getName(), CEGUI::Logger::getSingleton(), isImagesetPresent(), and CEGUI::Logger::logEvent(). |
|
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.
Definition at line 67 of file CEGUIImagesetManager.cpp. References CEGUI::Logger::getSingleton(), isImagesetPresent(), and CEGUI::Logger::logEvent(). Referenced by CEGUI::Font_xmlHandler::elementStart(), and CEGUI::Scheme::loadResources(). |
|
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.
Definition at line 110 of file CEGUIImagesetManager.cpp. References CEGUI::Logger::getSingleton(), isImagesetPresent(), and CEGUI::Logger::logEvent(). Referenced by CEGUI::Scheme::loadResources(). |
|
Destroys all Imageset objects registered in the system.
Definition at line 162 of file CEGUIImagesetManager.cpp. References destroyImageset(). Referenced by ~ImagesetManager(). |
|
Destroys the given Imageset object.
Definition at line 149 of file CEGUIImagesetManager.cpp. References destroyImageset(), and CEGUI::Imageset::getName(). |
|
Destroys the Imageset with the specified name.
Definition at line 129 of file CEGUIImagesetManager.cpp. References CEGUI::Logger::getSingleton(), CEGUI::Informative, and CEGUI::Logger::logEvent(). Referenced by destroyAllImagesets(), destroyImageset(), CEGUI::Scheme::loadResources(), and CEGUI::Scheme::unloadResources(). |
|
Returns a pointer to the Imageset object with the specified name.
Definition at line 173 of file CEGUIImagesetManager.cpp. Referenced by CEGUI::ImageDim::getValue_impl(), CEGUI::FrameWindow::setEWSizingCursorImage(), CEGUI::ImageryComponent::setImage(), CEGUI::FrameComponent::setImage(), CEGUI::Window::setMouseCursor(), CEGUI::FrameWindow::setNESWSizingCursorImage(), CEGUI::FrameWindow::setNSSizingCursorImage(), CEGUI::FrameWindow::setNWSESizingCursorImage(), CEGUI::PropertyHelper::stringToImage(), and writeImagesetToStream(). |
|
Return a ImagesetManager::ImagesetIterator object to iterate over the available Imageset objects.
Definition at line 219 of file CEGUIImagesetManager.cpp. |
|
|
Return pointer to singleton ImagesetManager object.
Reimplemented from CEGUI::Singleton< ImagesetManager >. Definition at line 209 of file CEGUIImagesetManager.cpp. Referenced by CEGUI::System::~System(). |
|
Check for the existence of a named Imageset.
Definition at line 213 of file CEGUIImagesetManager.h. Referenced by createImageset(), createImagesetFromImageFile(), CEGUI::Scheme::loadResources(), and CEGUI::Scheme::resourcesLoaded(). |
|
Notify the ImagesetManager of the current (usually new) display resolution.
Definition at line 190 of file CEGUIImagesetManager.cpp. |
|
Definition at line 58 of file CEGUISingleton.h. |
|
Writes a full XML imageset for the specified Imageset to the given OutStream.
Definition at line 225 of file CEGUIImagesetManager.cpp. References getImageset(), and CEGUI::Imageset::writeXMLToStream(). |
|
Definition at line 38 of file CEGUIImagesetManager.cpp. |