Main Page Class Hierarchy Alphabetical List Compound List File List Compound Members
|
Object is the base class for all objects in FOX; in order to receive messages from the user interface, your class must derive from Object. More...
#include <FXObject.h>
Public Member Functions | |
const FXchar * | getClassName () const |
Get class name of some object. | |
FXbool | isMemberOf (const FXMetaClass *metaclass) const |
Check if object is member of metaclass. | |
virtual long | tryHandle (FXObject *sender, FXSelector sel, void *ptr) |
Try handle message safely, catching certain exceptions. | |
virtual long | onDefault (FXObject *, FXSelector, void *) |
Called for unhandled messages. | |
virtual void | save (FXStream &store) const |
Save object to stream. | |
virtual void | load (FXStream &store) |
Load object from stream. | |
virtual | ~FXObject () |
Virtual destructor. | |
Object is the base class for all objects in FOX; in order to receive messages from the user interface, your class must derive from Object.
The Object class also provides serialization facilities, with which you can save and restore the object's state. If you've subclassed from Object, you can save your subclasses' state by overloading the save() and load() functions and use the stream API to serialize its member data.
Copyright © 1997-2022 Jeroen van der Zijp |