TouchCPLib  1.0.0
A touch-enabled GUI interface based on SDL and libTS. It provides a simple desktop-free UI for your embedded Raspberry projects.
TouchEventDispatcher.h
Go to the documentation of this file.
1 #pragma once
2 
13 #include <vector>
14 #include <algorithm>
15 
17 #include "GraphicsScene.h"
18 #include "SceneManager.h"
19 
25 {
26 public:
27  TouchEventDispatcher(SceneManager &sceneManager);
28  void dispatchTouchEvent(int x, int y);
29 
30 private:
31  SceneManager &sceneManager;
32 };
The GraphicsScene base class.
A class that takes care of dispatching the touch events to the right objects of the displayed scene...
Definition: TouchEventDispatcher.h:24
TouchEventDispatcher(SceneManager &sceneManager)
Definition: TouchEventDispatcher.cpp:3
The scene manager controls which scene is currently displayed, in addition to enumerating the scenes ...
Definition: SceneManager.h:22
void dispatchTouchEvent(int x, int y)
Definition: TouchEventDispatcher.cpp:8