Blender V4.3
GHOST_CallbackEventConsumer Class Reference

#include <GHOST_CallbackEventConsumer.hh>

Inherits GHOST_IEventConsumer.

Public Member Functions

 GHOST_CallbackEventConsumer (GHOST_EventCallbackProcPtr eventCallback, GHOST_TUserDataPtr userData)
 
 ~GHOST_CallbackEventConsumer ()
 
bool processEvent (const GHOST_IEvent *event)
 
- Public Member Functions inherited from GHOST_IEventConsumer
virtual ~GHOST_IEventConsumer ()
 

Protected Attributes

GHOST_EventCallbackProcPtr m_eventCallback
 
GHOST_TUserDataPtr m_userData
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ GHOST_CallbackEventConsumer()

GHOST_CallbackEventConsumer::GHOST_CallbackEventConsumer ( GHOST_EventCallbackProcPtr eventCallback,
GHOST_TUserDataPtr userData )

Constructor.

Parameters
eventCallbackThe call-back routine invoked.
userDataThe 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 m_eventCallback, and m_userData.

◆ ~GHOST_CallbackEventConsumer()

GHOST_CallbackEventConsumer::~GHOST_CallbackEventConsumer ( )
inline

Destructor.

Definition at line 32 of file GHOST_CallbackEventConsumer.hh.

Member Function Documentation

◆ processEvent()

bool GHOST_CallbackEventConsumer::processEvent ( const GHOST_IEvent * event)
virtual

This method is called by an event producer when an event is available.

Parameters
eventThe event that can be handled or ignored.
Returns
Indication as to whether the event was handled.

Implements GHOST_IEventConsumer.

Definition at line 24 of file GHOST_CallbackEventConsumer.cc.

References m_eventCallback, and m_userData.

Member Data Documentation

◆ m_eventCallback

GHOST_EventCallbackProcPtr GHOST_CallbackEventConsumer::m_eventCallback
protected

The call-back routine invoked.

Definition at line 43 of file GHOST_CallbackEventConsumer.hh.

Referenced by GHOST_CallbackEventConsumer(), and processEvent().

◆ m_userData

GHOST_TUserDataPtr GHOST_CallbackEventConsumer::m_userData
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().


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