µGFX  2.9
version 2.9
gfx_options.h
Go to the documentation of this file.
1 /*
2  * This file is subject to the terms of the GFX License. If a copy of
3  * the license was not distributed with this file, you can obtain one at:
4  *
5  * http://ugfx.io/license.html
6  */
7 
8 /**
9  * @file gfx_options.h
10  * @brief GFX system options.
11  *
12  * @addtogroup GFX
13  * @{
14  */
15 
16 /**
17  * @name GFX sub-systems that can be turned on
18  * @{
19  */
20  /**
21  * @brief GFX Driver API
22  * @details Defaults to GFXON
23  * @note Not much useful can be done without a driver
24  */
25  #ifndef GFX_USE_GDRIVER
26  #define GFX_USE_GDRIVER GFXON
27  #endif
28  /**
29  * @brief GFX Graphics Display Basic API
30  * @details Defaults to GFXOFF
31  * @note Also add the specific hardware driver to your makefile.
32  * Eg. include $(GFXLIB)/drivers/gdisp/Nokia6610/driver.mk
33  */
34  #ifndef GFX_USE_GDISP
35  #define GFX_USE_GDISP GFXOFF
36  #endif
37  /**
38  * @brief GFX Graphics Windowing API
39  * @details Defaults to GFXOFF
40  * @details Extends the GDISP API to add the concept of graphic windows.
41  * @note Also supports high-level "window" objects such as console windows,
42  * buttons, graphing etc
43  */
44  #ifndef GFX_USE_GWIN
45  #define GFX_USE_GWIN GFXOFF
46  #endif
47  /**
48  * @brief GFX Event API
49  * @details Defaults to GFXOFF
50  * @details Defines the concept of a "Source" that can send "Events" to "Listeners".
51  */
52  #ifndef GFX_USE_GEVENT
53  #define GFX_USE_GEVENT GFXOFF
54  #endif
55  /**
56  * @brief GFX Timer API
57  * @details Defaults to GFXOFF
58  * @details Provides thread context timers - both one-shot and periodic.
59  */
60  #ifndef GFX_USE_GTIMER
61  #define GFX_USE_GTIMER GFXOFF
62  #endif
63  /**
64  * @brief GFX Queue API
65  * @details Defaults to GFXOFF
66  * @details Provides queue management.
67  */
68  #ifndef GFX_USE_GQUEUE
69  #define GFX_USE_GQUEUE GFXOFF
70  #endif
71  /**
72  * @brief GFX Input Device API
73  * @details Defaults to GFXOFF
74  * @note Also add the specific hardware drivers to your makefile.
75  * Eg.
76  * include $(GFXLIB)/drivers/ginput/toggle/Pal/driver.mk
77  * and...
78  * include $(GFXLIB)/drivers/ginput/touch/MCU/driver.mk
79  */
80  #ifndef GFX_USE_GINPUT
81  #define GFX_USE_GINPUT GFXOFF
82  #endif
83  /**
84  * @brief GFX Generic Periodic ADC API
85  * @details Defaults to GFXOFF
86  */
87  #ifndef GFX_USE_GADC
88  #define GFX_USE_GADC GFXOFF
89  #endif
90  /**
91  * @brief GFX Audio API
92  * @details Defaults to GFXOFF
93  * @note Also add the specific hardware drivers to your makefile.
94  * Eg.
95  * include $(GFXLIB)/drivers/gaudio/GADC/driver.mk
96  */
97  #ifndef GFX_USE_GAUDIO
98  #define GFX_USE_GAUDIO GFXOFF
99  #endif
100  /**
101  * @brief GFX Miscellaneous Routines API
102  * @details Defaults to GFXOFF
103  * @note Turning this on without turning on any GMISC_NEED_xxx macros will result
104  * in no extra code being compiled in. GMISC is made up from the sum of its
105  * parts.
106  */
107  #ifndef GFX_USE_GMISC
108  #define GFX_USE_GMISC GFXOFF
109  #endif
110  /**
111  * @brief GFX File API
112  * @details Defaults to GFXOFF
113  */
114  #ifndef GFX_USE_GFILE
115  #define GFX_USE_GFILE GFXOFF
116  #endif
117  /**
118  * @brief GFX Translation Support API
119  * @details Defaults to GFXOFF
120  */
121  #ifndef GFX_USE_GTRANS
122  #define GFX_USE_GTRANS GFXOFF
123  #endif
124 /** @} */
125 
126 /**
127  * @name GFX compatibility options
128  * @{
129  */
130  /**
131  * @brief Include the uGFX V2.x Old Colors
132  * @details Defaults to GFXON
133  * @pre Requires GFX_COMPAT_V2 to be GFXON
134  * @note The old color definitions (particularly Red, Green & Blue) can
135  * cause symbol conflicts with many platforms eg Win32, STM32 HAL etc.
136  * Although officially these symbols are part of the V2.x API, this
137  * option allows them to be turned off even when the rest of the V2.x
138  * API is turned on.
139  */
140  #ifndef GFX_COMPAT_OLDCOLORS
141  #define GFX_COMPAT_OLDCOLORS GFXON
142  #endif
143 /** @} */
144 
145 /** @} */