Blender  V3.3
Public Member Functions | List of all members
GHOST_IEventConsumer Class Referenceabstract

#include <GHOST_IEventConsumer.h>

Inheritance diagram for GHOST_IEventConsumer:
Application GHOST_CallbackEventConsumer GHOST_EventPrinter

Public Member Functions

virtual ~GHOST_IEventConsumer ()
 
virtual bool processEvent (GHOST_IEvent *event)=0
 

Detailed Description

Interface class for objects interested in receiving events. Objects interested in events should inherit this class and implement the processEvent() method. They should then be registered with the system that they want to receive events. The system will call the processEvent() method for every installed event consumer to pass events.

See also
GHOST_ISystem::addEventConsumer

Definition at line 21 of file GHOST_IEventConsumer.h.

Constructor & Destructor Documentation

◆ ~GHOST_IEventConsumer()

virtual GHOST_IEventConsumer::~GHOST_IEventConsumer ( )
inlinevirtual

Destructor.

Definition at line 26 of file GHOST_IEventConsumer.h.

Member Function Documentation

◆ processEvent()

virtual bool GHOST_IEventConsumer::processEvent ( GHOST_IEvent event)
pure virtual

This method is called by the system when it has events to dispatch.

See also
GHOST_ISystem::dispatchEvents
Parameters
eventThe event that can be handled or ignored.
Returns
Indication as to whether the event was handled.

Implemented in Application, GHOST_EventPrinter, and GHOST_CallbackEventConsumer.


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