FXDataTarget

class FXDataTarget

A Data Target allows a valuator widget such as a Slider or Text Field to be directly connected with a variable in the program.

Inheritance:


Public Methods

[more] FXDataTarget(FXObject* tgt=NULL, FXSelector sel=0)
Associate with nothing
[more] FXDataTarget(FXchar& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with character variable
[more] FXDataTarget(FXuchar& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with unsigned character variable
[more] FXDataTarget(FXshort& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with signed short variable
[more] FXDataTarget(FXushort& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with unsigned short variable
[more] FXDataTarget(FXint& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with int variable
[more] FXDataTarget(FXuint& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with unsigned int variable
[more] FXDataTarget(FXfloat& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with float variable
[more] FXDataTarget(FXdouble& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with double variable
[more] FXDataTarget(FXString& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with string variable
[more]void setTarget(FXObject* t)
Set the message target object for this data target
[more]FXObject* getTarget() const
Get the message target object for this data target, if any
[more]void setSelector(FXSelector sel)
Set the message identifier for this data target
[more]FXSelector getSelector() const
Get the message identifier for this data target
[more]FXuint getType() const
Return type of data its connected to
[more]void* getData() const
Return pointer to data its connected to
[more]void connect()
Associate with nothing
[more]void connect(FXchar& value)
Associate with character variable
[more]void connect(FXuchar& value)
Associate with unsigned character variable
[more]void connect(FXshort& value)
Associate with signed short variable
[more]void connect(FXushort& value)
Associate with unsigned short variable
[more]void connect(FXint& value)
Associate with int variable
[more]void connect(FXuint& value)
Associate with unsigned int variable
[more]void connect(FXfloat& value)
Associate with float variable
[more]void connect(FXdouble& value)
Associate with double variable
[more]void connect(FXString& value)
Associate with string variable


Inherited from FXObject:

Public Methods

oconst FXchar* getClassName() const
oFXbool isMemberOf(const FXMetaClass* metaclass) const
ovirtual void save(FXStream& store) const
ovirtual void load(FXStream& store)


Documentation

A Data Target allows a valuator widget such as a Slider or Text Field to be directly connected with a variable in the program. Whenever the valuator control changes, the variable connected through the data target is automatically updated; conversely, whenever the program changes a variable, all the connected valuator widgets will be updated to reflect this new value on the display. Data Targets also allow connecting Radio Buttons, Menu Commands, and so on to a variable. In this case, the new value of the connected variable is computed by substracting ID_OPTION from the message ID.
o FXDataTarget(FXObject* tgt=NULL, FXSelector sel=0)
Associate with nothing

o FXDataTarget(FXchar& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with character variable

o FXDataTarget(FXuchar& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with unsigned character variable

o FXDataTarget(FXshort& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with signed short variable

o FXDataTarget(FXushort& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with unsigned short variable

o FXDataTarget(FXint& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with int variable

o FXDataTarget(FXuint& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with unsigned int variable

o FXDataTarget(FXfloat& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with float variable

o FXDataTarget(FXdouble& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with double variable

o FXDataTarget(FXString& value, FXObject* tgt=NULL, FXSelector sel=0)
Associate with string variable

ovoid setTarget(FXObject* t)
Set the message target object for this data target

oFXObject* getTarget() const
Get the message target object for this data target, if any

ovoid setSelector(FXSelector sel)
Set the message identifier for this data target

oFXSelector getSelector() const
Get the message identifier for this data target

oFXuint getType() const
Return type of data its connected to

ovoid* getData() const
Return pointer to data its connected to

ovoid connect()
Associate with nothing

ovoid connect(FXchar& value)
Associate with character variable

ovoid connect(FXuchar& value)
Associate with unsigned character variable

ovoid connect(FXshort& value)
Associate with signed short variable

ovoid connect(FXushort& value)
Associate with unsigned short variable

ovoid connect(FXint& value)
Associate with int variable

ovoid connect(FXuint& value)
Associate with unsigned int variable

ovoid connect(FXfloat& value)
Associate with float variable

ovoid connect(FXdouble& value)
Associate with double variable

ovoid connect(FXString& value)
Associate with string variable


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.