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.
Point.h
Go to the documentation of this file.
1 #pragma once
2 
13 #include <SDL2/SDL.h>
14 #include <stdint.h>
15 
16 struct Point
17 {
18  int x, y;
19 
20  operator SDL_Point() const
21  {
22  return {
23  x, y};
24  }
25 };
26 
27 template <typename T>
28 struct PointT
29 {
30  T x, y;
31 };
int x
Definition: Point.h:18
int y
Definition: Point.h:18
Definition: Point.h:28
Definition: Point.h:16
T y
Definition: Point.h:30