CAWidget Class Reference

Base class for widgets. More...

#include <cawidget.h>

Inheritance diagram for CAWidget:

CAImageView CALabel CALineEdit CAImageHueSelector CAImageSelector List of all members.

Public Types

enum  Alignment { Left, Right, Center }

Public Member Functions

 CAWidget (Alignment alignment=Left)
 Constructor.
virtual ~CAWidget ()
 Destructor.
void move (int x, int y)
 Moves the widget to the given point.
void resize (int width, int height)
 Resizes this widget.
virtual void display (bool active=true)=0
virtual void handleKey (const CL_Key &key)
int getLeft ()
 Returns left border position of this widget.
int getTop ()
 Returns top border position of this widget.
int getRight ()
 Returns right border position of this widget.
int getBottom ()
 Returns bottom border position of this widget.
int getHCenter ()
 Returns horizontal center position.
int getVCenter ()
 Returns vertical center position.
int getWidth ()
 Returns width.
int getHeight ()
 Returns height.

Protected Attributes

int left
 Left border position.
int right
 Right border position.
int top
 Top border position.
int bottom
 Bottom border position.
int width
 Width.
int height
 Height.
Alignment alignment

Detailed Description

Base class for widgets.

Author:
Andrew Mustun


Member Function Documentation

void CAWidget::move ( int  x,
int  y 
)

Moves the widget to the given point.

The new position depends also on the alignment.

void CAWidget::resize ( int  width,
int  height 
)

Resizes this widget.

The new position depends also on the alignment.


The documentation for this class was generated from the following files:
Generated on Tue Nov 28 06:48:29 2006 by  doxygen 1.5.0