openMSX
Public Member Functions | Protected Member Functions | List of all members
openmsx::EventListener Class Referenceabstract

#include <EventListener.hh>

Inheritance diagram for openmsx::EventListener:
Inheritance graph
[legend]

Public Member Functions

 EventListener (const EventListener &)=delete
 
 EventListener (EventListener &&)=delete
 
EventListeneroperator= (const EventListener &)=delete
 
EventListeneroperator= (EventListener &&)=delete
 
virtual bool signalEvent (const Event &event)=0
 This method gets called when an event you are subscribed to occurs.
 

Protected Member Functions

 EventListener ()=default
 
 ~EventListener ()=default
 

Detailed Description

Definition at line 8 of file EventListener.hh.

Constructor & Destructor Documentation

◆ EventListener() [1/3]

openmsx::EventListener::EventListener ( const EventListener )
delete

◆ EventListener() [2/3]

openmsx::EventListener::EventListener ( EventListener &&  )
delete

◆ EventListener() [3/3]

openmsx::EventListener::EventListener ( )
protecteddefault

◆ ~EventListener()

openmsx::EventListener::~EventListener ( )
protecteddefault

Member Function Documentation

◆ operator=() [1/2]

EventListener & openmsx::EventListener::operator= ( const EventListener )
delete

◆ operator=() [2/2]

EventListener & openmsx::EventListener::operator= ( EventListener &&  )
delete

◆ signalEvent()

virtual bool openmsx::EventListener::signalEvent ( const Event event)
pure virtual

This method gets called when an event you are subscribed to occurs.

Returns
Return true when this event must be blocked from listeners with a (strictly) lower priority.

Implemented in openmsx::VisibleSurface.


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