SLProject  4.2.000
A platform independent 3D computer graphics framework for desktop OS, Android, iOS and online in web browsers
sm::EventSender Class Reference

#include <EventSender.h>

Public Member Functions

 EventSender (EventHandler &handler)
 
 EventSender ()=delete
 
void sendEvent (Event *event)
 

Private Attributes

EventHandler_handler
 

Detailed Description

Definition at line 10 of file EventSender.h.

Constructor & Destructor Documentation

◆ EventSender() [1/2]

sm::EventSender::EventSender ( EventHandler handler)
inline

Definition at line 13 of file EventSender.h.

14  : _handler(handler)
15  {
16  }
EventHandler & _handler
Definition: EventSender.h:24

◆ EventSender() [2/2]

sm::EventSender::EventSender ( )
delete

Member Function Documentation

◆ sendEvent()

void sm::EventSender::sendEvent ( Event event)
inline

Definition at line 18 of file EventSender.h.

19  {
20  _handler.addEvent(event);
21  }
void addEvent(Event *e)
Definition: EventHandler.h:12

Member Data Documentation

◆ _handler

EventHandler& sm::EventSender::_handler
private

Definition at line 24 of file EventSender.h.


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