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 List of all members.

Public Member Functions

virtual long onDefault (FXObject *, FXSelector, void *)
 FXDelegator (FXObject *target=NULL)
FXObjectgetDelegate () const
void setDelegate (FXObject *target)
virtual ~FXDelegator ()

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.


Constructor & Destructor Documentation

FX::FXDelegator::FXDelegator FXObject target = NULL  )  [inline]
 

Construct a delegator.

virtual FX::FXDelegator::~FXDelegator  )  [inline, virtual]
 

Always trash during detroy.


Member Function Documentation

virtual long FX::FXDelegator::onDefault FXObject ,
FXSelector  ,
void * 
[virtual]
 

Called for unhandled messages.

Reimplemented from FX::FXObject.

FXObject* FX::FXDelegator::getDelegate  )  const [inline]
 

Return delegate object.

void FX::FXDelegator::setDelegate FXObject target  )  [inline]
 

Change delegate object.

Copyright © 1997-2005 Jeroen van der Zijp