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.
Color.h
Go to the documentation of this file.
1 #pragma once
2 
13 #include <SDL2/SDL.h>
14 #include <stdint.h>
15 
16 struct Color
17 {
18  uint8_t r, g, b, a;
19 
20  operator SDL_Color() const
21  {
22  return SDL_Color{
23  r, g, b, a};
24  }
25 };
uint8_t a
Definition: Color.h:18
Definition: Color.h:16
uint8_t r
Definition: Color.h:18
uint8_t b
Definition: Color.h:18
uint8_t g
Definition: Color.h:18