#include <GObject.h>
Inheritance diagram for GObject::

Public Methods | |
| GObject (double, double) | |
| Constructor. More... | |
| virtual | ~GObject () |
| Destructor. | |
| void | getPos (double &x, double &y) |
| Gets x and y coordinate of object. | |
| virtual void | setPos (const double x, const double y) |
| Sets x and y coordinate of object. | |
| virtual void | setXPos (const double x) |
| Sets the x coordinate of the position. | |
| virtual void | setYPos (const double y) |
| Sets the y coordinate of the position. | |
| bool | isSelected () |
| Returns TRUE if object is selected otherwise FALSE. | |
| void | select (bool select=TRUE) |
| If select is TRUE selects object otherwise deselects it. | |
| void | toggleSelect () |
| Toggles the select state. | |
| bool | isDeleted () |
| Returns TRUE if object is deleted otherwise FALSE. | |
| void | setDeleted (bool d=TRUE) |
| If d is TRUE deletes object otherwise undeletes it. | |
| virtual void | move (double, double) |
| Moves the object by x rightwards and y downwards. | |
| virtual QString | getToolTipInfo ()=0 |
| Returns the tooltip string for this object. | |
| virtual QRect | getToolTipRect (const QPoint &p)=0 |
| Returns the tooltip rectangle (if the mouse leaves this rectangle the TT is closed). | |
Protected Attributes | |
| double | xpos |
| X coordinate of the position. | |
| double | ypos |
| Y coordinate of the position. | |
| bool | selected |
| If TRUE the object is selected. | |
| bool | deleted |
| If TRUE the object is marked as deleted (and not drawn). | |
|
|||||||||||||||
|
Constructor. Initialises GObject object with the coordinates @x and @y. |
1.2.9.1 written by Dimitri van Heesch,
© 1997-2001