Main Page | Class Hierarchy | Class List | File List | Class Members

aedApp Class Reference

#include <aedApp.h>

List of all members.

Public Member Functions

 aedApp ()
aedFontrequestFont (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)
aedButtongetOkayButton ()
aedButtongetCancelButton ()
void clickOkayButton ()
void clickCancelButton ()
void setUTF8 (bool enable)
bool getUTF8 () const


Detailed Description

The application class.

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.


Constructor & Destructor Documentation

aedApp::aedApp  ) 
 

The default constructor.


Member Function Documentation

void aedApp::addFontPath std::string  path  ) 
 

Add font path to the list of paths which will be used for searching fonts.

Parameters:
path path to the font files
See also:
requestFont

void aedApp::addMemoryFont std::string  name,
unsigned char *  data,
unsigned long int  size
 

Register a memory font for use by aedGUI.

Parameters:
name name under which the font will be known
data pointer to the font data
size size of the font data

void aedApp::dumpFontPaths  ) 
 

Dump all font paths to std::cerr.

std::string aedApp::getDefaultFontName  )  const [inline]
 

Return the default font name.

aedTheme* aedApp::getDefaultTheme  )  const
 

Return a pointer to the default theme.

aedWidget* aedApp::getFocusWidget  )  const [inline]
 

Return a pointer to the widget that has focus.

aedWidget* aedApp::getRoot  )  const [inline]
 

Get the root widget.

aedTheme* aedApp::loadTheme std::string  file  ) 
 

Load a theme plugin.

Parameters:
file filename of the theme plugin
Returns:
pointer to the loaded theme or NULL if the theme couldn't be loaded

aedFont* aedApp::requestFont std::string  name,
Uint8  size,
int  style = AED_FONT_STYLE_NORMAL
 

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.

Parameters:
name font name
size font size
style font style
Returns:
pointer to the requested font or NULL if the font was not found

void aedApp::setDefaultFontName std::string  name  )  [inline]
 

Set the default font name.

Parameters:
name font name

void aedApp::setFocusWidget aedWidget *  win  ) 
 

Set focus.

void aedApp::setOkayButton aedButton button  )  [inline]
 

Handle okay and cancel buttons.

void aedApp::setRoot aedWidget *  w  )  [inline]
 

Set the application's root widget.

void aedApp::setUTF8 bool  enable  )  [inline]
 

Enable or disable UTF8 text rendering. Rendering UTF8 text is disabled by default.

void aedApp::unloadTheme aedTheme *  theme  ) 
 

Unload the theme and free all resources allocated to it.

Parameters:
theme pointer to a theme returned previously by loadTheme()


The documentation for this class was generated from the following file:
Generated on Mon Mar 1 19:56:18 2004 for aedGUI by doxygen 1.3.6