glictMessageBox Class Reference

#include <messagebox.h>

Inheritance diagram for glictMessageBox:

glictWindow glictContainer

List of all members.


Detailed Description

Derived from window, this widget contains a panel with settable caption, and an OK button which closes the messagebox and possibly calls a settable function.
Examples:

examples/memory/main.cpp, and examples/memory_sdl/main.cpp.

Definition at line 29 of file messagebox.h.


Public Member Functions

 glictMessageBox ()
void Paint ()
 Paints the window.
void SetBGColor (float r, float g, float b, float a)
void SetEnabled (bool enabled)
 Sets enabledness.
void SetHeight (int height)
void SetMessage (std::string msg)
void SetOnDismiss (void(*OnClickFunction)(glictPos *relmousepos, glictContainer *callerclass))
void SetWidth (int width)
 ~glictMessageBox ()

Private Attributes

glictButton btnOk
std::string mesg
glictPanel pnlMessage

Friends

void _glictMessageBox_Closer (glictPos *relmousepos, glictContainer *caller)

Member Function Documentation

void glictMessageBox::Paint (  )  [virtual]

Paints the window.

Paints the widget called window, simulating looks of windows on other platforms (to a very plain and flat extent), and then calls CPaint() which will paint all the subwidgets.

See also:
glictContainer::Paint()

glictContainer::CPaint()

Todo:
Windows really need borders!

Reimplemented from glictWindow.

Definition at line 72 of file messagebox.cpp.

References glictContainer::GetVisible(), and glictWindow::Paint().

void glictMessageBox::SetEnabled ( bool  enabled  ) 

Sets enabledness.

Parameters:
enabled Object's "enabledness"
Sets whether the object is enabled or not.

Reimplemented from glictContainer.

Definition at line 105 of file messagebox.cpp.

References btnOk, glictContainer::SetEnabled(), SetHeight(), and glictContainer::SetVisible().


Friends And Related Function Documentation

void _glictMessageBox_Closer ( glictPos relmousepos,
glictContainer caller 
) [friend]

Todo:
Remove this friend!

Reimplemented from glictContainer.

Definition at line 22 of file messagebox.cpp.

Referenced by glictMessageBox().


The documentation for this class was generated from the following files:
SourceForge.net Logo
generated with doxygen 1.5.3 on Mon Oct 29 18:09:27 2007