ParaGUI  1.1.9
Functions
PG_Layout Namespace Reference

Functions

bool Load (PG_Widget *parent, const std::string &filename, void(*WorkCallback)(int now, int max), void *UserSpace)
 Load a XML layout. More...
 
int GetParamInt (const char **Source, const char *What)
 
PG_ScrollBar::ScrollDirection GetParamScrollDirection (const char **Source, const char *What)
 
char * GetParamStr (const char **Source, const char *What)
 
void GetParamRect (const char **Source, const char *What, PG_Rect &Rect, PG_Widget *parent=NULL)
 
PG_Label::TextAlign GetParamAlign (const char **Source, const char *What)
 
PG_Draw::BkMode GetParamIMode (const char **Source, const char *What)
 
int GetParamGrad (const char **Source, const char *What, PG_Gradient *grad)
 

Function Documentation

PG_Label::TextAlign PG_Layout::GetParamAlign ( const char **  Source,
const char *  What 
)
int PG_Layout::GetParamGrad ( const char **  Source,
const char *  What,
PG_Gradient grad 
)
PG_Draw::BkMode PG_Layout::GetParamIMode ( const char **  Source,
const char *  What 
)
int PG_Layout::GetParamInt ( const char **  Source,
const char *  What 
)
void PG_Layout::GetParamRect ( const char **  Source,
const char *  What,
PG_Rect Rect,
PG_Widget parent = NULL 
)
PG_ScrollBar::ScrollDirection PG_Layout::GetParamScrollDirection ( const char **  Source,
const char *  What 
)
char* PG_Layout::GetParamStr ( const char **  Source,
const char *  What 
)
bool PG_Layout::Load ( PG_Widget parent,
const std::string &  filename,
void(*)(int now, int max)  WorkCallback,
void *  UserSpace 
)

Load a XML layout.

Parameters
parentPointer to the widget which will be the parent for newly created widgets (from the XML layout). If NULL all new widgets will be created as toplevel widgets
filenamename of the XML layoutfile
WorkCallbackprogress callback function (OBSOLETE)
UserSpace???
Returns
true on success