#include <OpenGUI_WidgetManager.h>
Public Types | |
| typedef std::pair< String, String > | WidgetRegPair |
| inner type of WidgetRegPairList | |
| typedef std::list< WidgetRegPair > | WidgetRegPairList |
| return type of GetRegisteredWidgets() | |
| typedef std::list< String > | WidgetDefList |
| return type of GetDefinedWidgets() | |
Public Member Functions | |
| Widget * | CreateRawWidget (const String &Name, const String &Library="") |
Create a Widget that was registered under the given Name and optionally Library. | |
| Widget * | CreateDefinedWidget (const String &Name) |
| Creates and initializes a Widget that was previously defined by DefineWidget(). | |
| void | DefineWidget (const String &Name, const ValueList &propertyList, const String &BaseName, const String &BaseLibrary) |
Defines a new Widget under the given Name with the given propertyList, using BaseName and BaseLibrary as the source. | |
| void | UndefineWidget (const String &Name) |
Undefines an existing Widget definition by Name. | |
| void | RegisterWidgetFactory (const String &Name, const String &Library, WidgetFactoryCallback *factoryCallback) |
| Register a Widget factory. | |
| void | UnregisterWidgetFactory (const String &Name, const String &Library) |
| Unregister a Widget factory. | |
| WidgetRegPairList | GetRegisteredWidgets () |
| returns a pair list of all registered widgets | |
| WidgetDefList | GetDefinedWidgets () |
| returns a list of all defined widgets | |
| void | getStats (size_t &RegWidgets, size_t &RegLibs, size_t &DefWidgets) |
| returns the number of registered widgets across the number of libraries, as well as the number of widget definitions | |
Static Public Member Functions | |
| static WidgetManager & | getSingleton (void) |
| Retrieve the current singleton, if one exists. If none exists, this will cause an error. | |
| static WidgetManager * | getSingletonPtr (void) |
| Retrieve a pointer to the current singleton, if one exists. If none exists, this will return 0. | |
|
|
return type of GetDefinedWidgets()
|
|
|
inner type of WidgetRegPairList
|
|
|
return type of GetRegisteredWidgets()
|
|
|
Creates and initializes a Widget that was previously defined by DefineWidget().
|
|
||||||||||||
|
Create a Widget that was registered under the given If Library is not given or is "", the value of Name will be tested to see if it is in a packed Name:Library format. If so then the packed value will be exploded and used, otherwise the full list of registered cursors is walked and the first entry with a matching Name is used. |
|
||||||||||||||||||||
|
Defines a new Widget under the given
|
|
|
returns a list of all defined widgets
|
|
|
returns a pair list of all registered widgets
|
|
|
Retrieve the current singleton, if one exists. If none exists, this will cause an error.
|
|
|
Retrieve a pointer to the current singleton, if one exists. If none exists, this will return 0.
|
|
||||||||||||||||
|
returns the number of registered widgets across the number of libraries, as well as the number of widget definitions
|
|
||||||||||||||||
|
Register a Widget factory.
|
|
|
Undefines an existing Widget definition by
|
|
||||||||||||
|
Unregister a Widget factory.
|