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
-
FXDataTarget(FXObject* tgt=NULL, FXSelector sel=0)
- Associate with nothing
-
FXDataTarget(FXchar& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with character variable
-
FXDataTarget(FXuchar& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with unsigned character variable
-
FXDataTarget(FXshort& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with signed short variable
-
FXDataTarget(FXushort& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with unsigned short variable
-
FXDataTarget(FXint& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with int variable
-
FXDataTarget(FXuint& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with unsigned int variable
-
FXDataTarget(FXfloat& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with float variable
-
FXDataTarget(FXdouble& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with double variable
-
FXDataTarget(FXString& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with string variable
-
void setTarget(FXObject* t)
- Set the message target object for this data target
-
FXObject* getTarget() const
- Get the message target object for this data target, if any
-
void setSelector(FXSelector sel)
- Set the message identifier for this data target
-
FXSelector getSelector() const
- Get the message identifier for this data target
-
FXuint getType() const
- Return type of data its connected to
-
void* getData() const
- Return pointer to data its connected to
-
void connect()
- Associate with nothing
-
void connect(FXchar& value)
- Associate with character variable
-
void connect(FXuchar& value)
- Associate with unsigned character variable
-
void connect(FXshort& value)
- Associate with signed short variable
-
void connect(FXushort& value)
- Associate with unsigned short variable
-
void connect(FXint& value)
- Associate with int variable
-
void connect(FXuint& value)
- Associate with unsigned int variable
-
void connect(FXfloat& value)
- Associate with float variable
-
void connect(FXdouble& value)
- Associate with double variable
-
void connect(FXString& value)
- Associate with string variable
Public Methods
-
const FXchar* getClassName() const
-
FXbool isMemberOf(const FXMetaClass* metaclass) const
-
virtual void save(FXStream& store) const
-
virtual 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.
- FXDataTarget(FXObject* tgt=NULL, FXSelector sel=0)
- Associate with nothing
- FXDataTarget(FXchar& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with character variable
- FXDataTarget(FXuchar& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with unsigned character variable
- FXDataTarget(FXshort& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with signed short variable
- FXDataTarget(FXushort& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with unsigned short variable
- FXDataTarget(FXint& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with int variable
- FXDataTarget(FXuint& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with unsigned int variable
- FXDataTarget(FXfloat& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with float variable
- FXDataTarget(FXdouble& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with double variable
- FXDataTarget(FXString& value, FXObject* tgt=NULL, FXSelector sel=0)
- Associate with string variable
- void setTarget(FXObject* t)
- Set the message target object for this data target
- FXObject* getTarget() const
- Get the message target object for this data target, if any
- void setSelector(FXSelector sel)
- Set the message identifier for this data target
- FXSelector getSelector() const
- Get the message identifier for this data target
- FXuint getType() const
- Return type of data its connected to
- void* getData() const
- Return pointer to data its connected to
- void connect()
- Associate with nothing
- void connect(FXchar& value)
- Associate with character variable
- void connect(FXuchar& value)
- Associate with unsigned character variable
- void connect(FXshort& value)
- Associate with signed short variable
- void connect(FXushort& value)
- Associate with unsigned short variable
- void connect(FXint& value)
- Associate with int variable
- void connect(FXuint& value)
- Associate with unsigned int variable
- void connect(FXfloat& value)
- Associate with float variable
- void connect(FXdouble& value)
- Associate with double variable
- void 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++.