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

GObject Class Reference

Base class for all graphical objects. More...

#include <GObject.h>

Inheritance diagram for GObject::

GITransition GState GTransition List of all members.

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


Detailed Description

Base class for all graphical objects.


Constructor & Destructor Documentation

GObject::GObject double x,
double y
 

Constructor.

Initialises GObject object with the coordinates @x and @y.


The documentation for this class was generated from the following files:
Generated at Fri Apr 11 22:37:15 2003 for Qfsm by doxygen1.2.9.1 written by Dimitri van Heesch, © 1997-2001