#include <guimessagebox.h>
Inheritance diagram for GuiMessageBox:
Public Member Functions | |
DECLSPEC | GuiMessageBox (const SDL_Rect &r, GuiElement *el, const char *name, const char *t=NULL, int buttons=-1) |
DECLSPEC | GuiMessageBox (TiXmlElement *el, GuiElement *p) |
virtual const char * | getClassName () |
void | setCallback (Callback c, BasicObject *d) |
DECLSPEC void | showMessage (const char *m, long buttons=-1) |
DECLSPEC void | setButtons (long i) |
DECLSPEC int | getAnswer (bool hide=true) |
Static Public Member Functions | |
static void | newguiobject (void *presult, BasicObject *o, void *xmldata) |
Protected Member Functions | |
virtual DECLSPEC Uint32 | onResize () |
virtual DECLSPEC void | onInit () |
GuiMessageBox::GuiMessageBox | ( | TiXmlElement * | el, | |
GuiElement * | p | |||
) |
Constructor. Uses XML data.
el | the XML data for initialisation | |
p | parent element (or NULL, to take GuiManager::the as parent) |
virtual const char* GuiMessageBox::getClassName | ( | ) | [inline, virtual] |
This function should be overriden in every sub-class of BasicObject!
Reimplemented from GuiPictureBg.
Uint32 GuiMessageBox::onResize | ( | ) | [protected, virtual] |
This event is called, when the element changed its place or size.
Reimplemented from GuiElement.
void GuiMessageBox::onInit | ( | ) | [protected, virtual] |
Initializes the object's variables by reading data from the XML element. If there were no XML data used for creation, nothing is done. This function calls onInit() of its children recursively (after it has inited itself). It is highly recommended to call BasicObject::onInit(), usually at the end of the onInit() method, when overwriting it in a derived class.
Reimplemented from GuiPictureBg.