![]() |
Skylicht Engine
|
Utility class for exporting Canvas and GUI element trees to files or serializable data. More...
#include <Graphics2D/CGUIExporter.h>
Static Public Member Functions | |
| static bool | save (const char *file, CCanvas *canvas) |
| Save the specified canvas and its elements to a file (XML format). Also generates a secondary info file with element paths. | |
| static CObjectSerializable * | createSerializable (CGUIElement *ui) |
| Create a serializable object representing the GUI element and its hierarchy. | |
Utility class for exporting Canvas and GUI element trees to files or serializable data.
CGUIExporter can be used to save a CCanvas to an XML file, or convert GUI elements to
serializable objects for other forms of storage or transfer. It supports recursive export of child elements and can generate info files listing all element paths.
Example usage :
|
static |
Create a serializable object representing the GUI element and its hierarchy.
| ui | Pointer to the root GUI element. |
|
static |
Save the specified canvas and its elements to a file (XML format). Also generates a secondary info file with element paths.
| file | The path to save the file. |
| canvas | Pointer to the canvas to export. |