|
Blender V5.0
|
#include <GHOST_CallbackEventConsumer.hh>
Inherits GHOST_IEventConsumer.
Public Member Functions | |
| GHOST_CallbackEventConsumer (GHOST_EventCallbackProcPtr eventCallback, GHOST_TUserDataPtr user_data) | |
| ~GHOST_CallbackEventConsumer () override=default | |
| bool | processEvent (const GHOST_IEvent *event) override |
| Public Member Functions inherited from GHOST_IEventConsumer | |
| virtual | ~GHOST_IEventConsumer ()=default |
Protected Attributes | |
| GHOST_EventCallbackProcPtr | event_callback_ |
| GHOST_TUserDataPtr | user_data_ |
Event consumer that will forward events to a call-back routine. Especially useful for the C-API.
Definition at line 19 of file GHOST_CallbackEventConsumer.hh.
| GHOST_CallbackEventConsumer::GHOST_CallbackEventConsumer | ( | GHOST_EventCallbackProcPtr | eventCallback, |
| GHOST_TUserDataPtr | user_data ) |
Constructor.
| eventCallback | The call-back routine invoked. |
| user_data | The data passed back through the call-back routine. |
Copyright (C) 2001 NaN Technologies B.V.
Definition at line 17 of file GHOST_CallbackEventConsumer.cc.
References event_callback_, and user_data_.
|
overridedefault |
Destructor.
|
overridevirtual |
This method is called by an event producer when an event is available.
| event | The event that can be handled or ignored. |
Implements GHOST_IEventConsumer.
Definition at line 24 of file GHOST_CallbackEventConsumer.cc.
References event_callback_, and user_data_.
|
protected |
The call-back routine invoked.
Definition at line 43 of file GHOST_CallbackEventConsumer.hh.
Referenced by GHOST_CallbackEventConsumer(), and processEvent().
|
protected |
The data passed back through the call-back routine.
Definition at line 45 of file GHOST_CallbackEventConsumer.hh.
Referenced by GHOST_CallbackEventConsumer(), and processEvent().