| GL Studio C++ Runtime API

Public Member Functions | List of all members
CallbackMethodCallerBase Class Referenceabstract

`#include <callback_caller_base.h>`

Inheritance diagram for CallbackMethodCallerBase:

## 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 CallbackMethodCallerBase * | Duplicate () 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 * |
| ) |  |
| inline virtual

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`
| ) |  |
| inline virtual

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 | ( |  | ) |
| inline virtual

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

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

## ◆ Duplicate()

virtual CallbackMethodCallerBase * Duplicate | ( |  | ) | const
| inline virtual

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

  container | The new target object.

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

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

- callback_caller_base.h