#include <cawidget.h>
Inheritance diagram for CAWidget:

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