GUIslice  0.16.0
Embedded GUI in C
GUIslice_drv.h
Go to the documentation of this file.
1 #ifndef _GUISLICE_DRV_H_
2 #define _GUISLICE_DRV_H_
3 
4 // =======================================================================
5 // GUIslice library (generic driver layer include)
6 // - Calvin Hass
7 // - https://www.impulseadventure.com/elec/guislice-gui.html
8 // - https://github.com/ImpulseAdventure/GUIslice
9 // =======================================================================
10 //
11 // The MIT License
12 //
13 // Copyright 2016-2020 Calvin Hass
14 //
15 // Permission is hereby granted, free of charge, to any person obtaining a copy
16 // of this software and associated documentation files (the "Software"), to deal
17 // in the Software without restriction, including without limitation the rights
18 // to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
19 // copies of the Software, and to permit persons to whom the Software is
20 // furnished to do so, subject to the following conditions:
21 //
22 // The above copyright notice and this permission notice shall be included in
23 // all copies or substantial portions of the Software.
24 //
25 // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
26 // IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
27 // FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
28 // AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
29 // LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
30 // OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
31 // THE SOFTWARE.
32 //
33 // =======================================================================
34 
35 
36 // =======================================================================
37 // Generic Driver Layer
38 // =======================================================================
39 
40 #ifdef __cplusplus
41 extern "C" {
42 #endif // __cplusplus
43 
44 #if defined(DRV_DISP_SDL1)
45  #include "GUIslice_drv_sdl.h"
46 #elif defined(DRV_DISP_SDL2)
47  #include "GUIslice_drv_sdl.h"
48 #elif defined(DRV_DISP_ADAGFX) || defined(DRV_DISP_ADAGFX_AS)
49  #include "GUIslice_drv_adagfx.h"
50 #elif defined(DRV_DISP_TFT_ESPI)
51  #include "GUIslice_drv_tft_espi.h"
52 #elif defined(DRV_DISP_M5STACK)
53  #include "GUIslice_drv_m5stack.h"
54 #elif defined(DRV_DISP_UTFT)
55  #include "GUIslice_drv_utft.h"
56 #else
57  #error No driver specified (DRV_DISP_*). Ensure a config is selected in GUIslice_config.h
58 #endif
59 
60 
61 
62 #ifdef __cplusplus
63 }
64 #endif // __cplusplus
65 #endif // _GUISLICE_DRV_H_
66 
GUIslice library (driver layer for UTFT)
GUIslice library (driver layer for TFT-eSPI)
GUIslice library (driver layer for LINUX / SDL)
GUIslice library (driver layer for Adafruit-GFX)
GUIslice library (driver layer for M5stack)