Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

CPanel Class Reference

Widget container class. More...

#include <CUI.h>

List of all members.

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...

CWidgetget_widget (int ID)
 returns the pointer to the widget with m_ID ID. More...


Detailed Description

Widget container class.

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 & Destructor Documentation

CPanel::CPanel int    x,
int    y,
CGfxScreen   scr
 

Constructor - takes position (x,y) and a pointer to the screen the panel is on.

CPanel::~CPanel  
 

Destructor - Deletes all the widgets.


Member Function Documentation

void CPanel::add_widget CWidget   w,
int    ID
 

adds a widget to the panel and assigns a user-ID to the widget.

void CPanel::draw  
 

Standard draw method.

CWidget * CPanel::get_widget int    ID
 

returns the pointer to the widget with m_ID ID.

void CPanel::redraw  
 

Only draws this panel.

int CPanel::update CInputEvent   e
 

Standard update method.


The documentation for this class was generated from the following files:
Generated on Thu Dec 6 00:14:56 2001 for Dijinni by doxygen1.2.12 written by Dimitri van Heesch, © 1997-2001