#include <aedApp.h>
Public Member Functions | |
aedApp () | |
aedFont * | requestFont (std::string name, Uint8 size, int style=AED_FONT_STYLE_NORMAL) |
void | addFontPath (std::string path) |
void | addMemoryFont (std::string name, unsigned char *data, unsigned long int size) |
void | dumpFontPaths () |
void | setDefaultFontName (std::string name) |
std::string | getDefaultFontName () const |
void | setRoot (aedWidget *w) |
aedWidget * | getRoot () const |
aedLog * | getLog () const |
aedTheme * | loadTheme (std::string file) |
void | unloadTheme (aedTheme *theme) |
aedTheme * | getDefaultTheme () const |
aedWidget * | getFocusWidget () const |
void | setFocusWidget (aedWidget *win) |
void | setOkayButton (aedButton *button) |
void | setCancelButton (aedButton *button) |
aedButton * | getOkayButton () |
aedButton * | getCancelButton () |
void | clickOkayButton () |
void | clickCancelButton () |
void | setUTF8 (bool enable) |
bool | getUTF8 () const |
The aedApp class enables you to load custom themes and use memory fonts, set the application's root widget, modify aedGUI's logging behaviour etc. You have to create only one object of this class and it must happen before any widgets are created.
|
The default constructor. |
|
Add font path to the list of paths which will be used for searching fonts.
|
|
Register a memory font for use by aedGUI.
|
|
Dump all font paths to std::cerr. |
|
Return the default font name. |
|
Return a pointer to the default theme. |
|
Return a pointer to the widget that has focus. |
|
Get the root widget. |
|
Load a theme plugin.
|
|
Search global font cache for the specified font. If the font isn't present in the cache or in the list of memory fonts, disk is searched.
|
|
Set the default font name.
|
|
Set focus. |
|
Handle okay and cancel buttons. |
|
Set the application's root widget. |
|
Enable or disable UTF8 text rendering. Rendering UTF8 text is disabled by default. |
|
Unload the theme and free all resources allocated to it.
|