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

FX::FXObject Class Reference

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>

Inheritance diagram for FX::FXObject:
FX::FXAccelTable FX::FXApp FX::FXCommand FX::FXDataTarget FX::FXDebugTarget FX::FXDelegator FX::FXDirWatch FX::FXDocument FX::FXFileAssociations FX::FXFoldingItem FX::FXGLObject FX::FXHeaderItem FX::FXIconCache FX::FXIconItem FX::FXIconSource FX::FXId FX::FXListItem FX::FXMessageChannel FX::FXRecentFiles FX::FXTableItem FX::FXTextCodec FX::FXTranslator FX::FXTreeItem

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.
 

Detailed Description

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.


The documentation for this class was generated from the following file:

Copyright © 1997-2022 Jeroen van der Zijp