Go to the documentation of this file.
11#ifndef TCMENU_MENUTOUCHSCREENENCODER_H
12#define TCMENU_MENUTOUCHSCREENENCODER_H
14#include "PlatformDetermination.h"
15#include <IoAbstraction.h>
17#include <AnalogDeviceAbstraction.h>
18#include <ResistiveTouchScreen.h>
27 class TouchNotification {
33 iotouch::TouchState touchState;
35 TouchNotification(
const Coord& rawCoords, iotouch::TouchState touchState)
36 : pEntry(
nullptr), cursorPosition(rawCoords), itemSize(0, 0), withinItem(
false), touchState(touchState) {}
39 : pEntry(ent), cursorPosition(local), itemSize(localSize), withinItem(
true), touchState(touchState) {}
45 const Coord &getCursorPosition()
const {
46 return cursorPosition;
49 const Coord &getItemSize()
const {
53 bool isWithinItem()
const {
57 iotouch::TouchState getTouchState()
const {
95 iotouch::TouchState currentState;
110 const iotouch::TouchOrientationSettings& rotation);
112 void sendEvent(
float locationX,
float locationY,
float touchPressure, iotouch::TouchState touched)
override;
113 iotouch::TouchState getLastTouchState()
const {
return currentState; }
114 float getLastX()
const {
return lastX; }
115 float getLastY()
const {
return lastY; }
116 Coord getLastScreenCoord() {
return lastCoord; }
Contains the base functionality for all graphical renderers.
Definition BaseGraphicalRenderer.h:131
Definition BaseGraphicalRenderer.h:60
Definition MenuTouchScreenEncoder.h:27
Definition MenuTouchScreenEncoder.h:62
Definition DrawingPrimitives.h:149