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

FX::FXDelegator Class Reference

A delegator forwards messages to a delegate object. More...

#include <FXDelegator.h>

Inheritance diagram for FX::FXDelegator:
FX::FXObject

Public Member Functions

virtual long onDefault (FXObject *, FXSelector, void *)
 Called for unhandled messages.
 
 FXDelegator (FXObject *target=nullptr)
 Construct a delegator.
 
FXObjectgetDelegate () const
 Return delegate object.
 
void setDelegate (FXObject *target)
 Change delegate object.
 
virtual ~FXDelegator ()
 Always trash during detroy.
 
- Public Member Functions inherited from FX::FXObject
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 void save (FXStream &store) const
 Save object to stream.
 
virtual void load (FXStream &store)
 Load object from stream.
 
virtual ~FXObject ()
 Virtual destructor.
 

Protected Attributes

FXObjectdelegate
 

Detailed Description

A delegator forwards messages to a delegate object.

Delegators are used when you need to multiplex messages toward any number of target objects. For example, many controls may be connected to FXDelegator, instead of directly to the document object. Changing the delegate in FXDelegator will then reconnect the controls with their new target.


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

Copyright © 1997-2022 Jeroen van der Zijp