#include "ginteractors.h"

class GInteractor : public GObject

This abstract class is the superclass for all graphical interactors. In most applications, interactors will be added to a control strip along one of the sides of the GWindow, but they can also be placed in specific positions just like any other GObject. The structure of the GInteractor hierarchy looks like this:

GInteractorHierarchy
GObject GButton GCheckBox GChooser GSlider GTextField
Methods
getActionCommand() Returns the action command associated with the interactor.
setActionCommand(cmd) Sets the action command to the indicated string.
setBounds(rect)
setBounds(xywidthheight) 
Changes the bounds of the interactor to the specified values.
setSize(size)
setSize(widthheight) 
Changes the size of the interactor to the specified width and height.

Method detail


void setActionCommand(string cmd);
Sets the action command to the indicated string. If the string is not empty, activating the interactor generates a GActionEvent.

Usage:

interactor.setActionCommand(cmd);

string getActionCommand();
Returns the action command associated with the interactor.

Usage:

string cmd = interactor.getActionCommand();

void setSize(const GDimension & size);
void setSize(double width, double height);
Changes the size of the interactor to the specified width and height.

Usage:

interactor.setSize(size);
interactor.setSize(width, height);

void setBounds(const GRectangle & size);
void setBounds(double x, double y, double width, double height);
Changes the bounds of the interactor to the specified values.

Usage:

interactor.setBounds(rect);
interactor.setBounds(x, y, width, height);