#include <CUI.h>
Public Methods | |
| CPanel (int x, int y, CGfxScreen *scr) | |
| Constructor - takes position (x,y) and a pointer to the screen the panel is on. More... | |
| ~CPanel () | |
| Destructor - Deletes all the widgets. More... | |
| int | update (CInputEvent *e) |
| Standard update method. More... | |
| void | draw () |
| Standard draw method. More... | |
| void | redraw () |
| Only draws this panel. More... | |
| void | add_widget (CWidget *w, int ID) |
| adds a widget to the panel and assigns a user-ID to the widget. More... | |
| CWidget * | get_widget (int ID) |
| returns the pointer to the widget with m_ID ID. More... | |
A CPanel is a container for widgets that can contain many widgets and provide simple access to draw, update, and position many widgets at once
|
||||||||||||||||
|
Constructor - takes position (x,y) and a pointer to the screen the panel is on.
|
|
|
Destructor - Deletes all the widgets.
|
|
||||||||||||
|
adds a widget to the panel and assigns a user-ID to the widget.
|
|
|
Standard draw method.
|
|
|
returns the pointer to the widget with m_ID ID.
|
|
|
Only draws this panel.
|
|
|
Standard update method.
|
1.2.12 written by Dimitri van Heesch,
© 1997-2001