GL Studio C++ Runtime API
CallbackMethodCallerBase Class Referenceabstract

#include <callback_caller_base.h>

Inheritance diagram for CallbackMethodCallerBase:
CallbackAttributeNotifier< T > CallbackMethodCallerTemplate< T, O >

Public Member Functions

virtual int Call (DisplayObject *, DisplayEvent *)
 
virtual void CallType2 (DisplayEvent *, void *=NULL)
 
virtual void CallType3 ()
 Allows for a very simple callback, with no additional data passed. More...
 
virtual CallbackMethodCallerBaseDuplicate () const
 
virtual void SetContainer (DisplayObject *container)=0
 

Detailed Description

CallbackMethodCallerBase will be derived by any class desiring to use it. It allows for calling bound methods for specific objects

Member Function Documentation

◆ Call()

virtual int Call ( DisplayObject ,
DisplayEvent  
)
inlinevirtual

This is for mouse and keyboard events.

Returns
1 if event is handled, 0 otherwise.

Reimplemented in CallbackAttributeNotifier< T >, and CallbackMethodCallerTemplate< T, O >.

◆ CallType2()

virtual void CallType2 ( DisplayEvent ,
void *  = NULL 
)
inlinevirtual

This is used mostly for user events. The callbackData is generally passed in when this object is created.

Reimplemented in CallbackAttributeNotifier< T >, and CallbackMethodCallerTemplate< T, O >.

◆ CallType3()

virtual void CallType3 ( )
inlinevirtual

Allows for a very simple callback, with no additional data passed.

Reimplemented in CallbackMethodCallerTemplate< T, O >, and CallbackAttributeNotifier< T >.

◆ Duplicate()

virtual CallbackMethodCallerBase * Duplicate ( ) const
inlinevirtual
Returns
A pointer to an exact copy of this callback object.

Reimplemented in CallbackMethodCallerTemplate< T, O >, and CallbackAttributeNotifier< T >.

◆ SetContainer()

virtual void SetContainer ( DisplayObject container)
pure virtual

Assign a new object to be the target of this callback.

Parameters
containerThe new target object.

Implemented in CallbackMethodCallerTemplate< T, O >, and CallbackAttributeNotifier< T >.


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