microui  14.2.0
microui
ui_configuration.h
Go to the documentation of this file.
1 /*
2  * Copyright 2024 MicroEJ Corp. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be found with this software.
4  */
5 
6 #ifndef UI_CONFIGURATION_H
7 #define UI_CONFIGURATION_H
8 
9 #ifdef __cplusplus
10 extern "C" {
11 #endif
12 
20 #error \
21  "This header must be customized with VEE Port specific configuration. Remove this #error when done. This file is not modified when a new version of the CCO is installed."
22 
32 #define UI_CONFIGURATION_VERSION (1)
33 
34 // -----------------------------------------------------------------------------
35 // MicroUI's Allocator Options
36 // -----------------------------------------------------------------------------
37 
43 #define UI_FEATURE_ALLOCATOR_BESTFIT (1u)
44 
45 // -----------------------------------------------------------------------------
46 // Display Buffer Refresh Strategy Options
47 // -----------------------------------------------------------------------------
48 
53 #define UI_FEATURE_BRS_LEGACY (0u)
54 
65 #define UI_FEATURE_BRS_SINGLE (1u)
66 
90 #define UI_FEATURE_BRS_PREDRAW (2u)
91 
92 // -----------------------------------------------------------------------------
93 // MicroUI's Features Implementation
94 // -----------------------------------------------------------------------------
95 
99 #ifndef UI_DEBUG_PRINT
100 #define UI_DEBUG_PRINT (void)printf
101 #endif
102 
103 /*
104  * @brief Defines the number of rectangles that collections can contain.
105  */
106 #ifndef UI_RECT_COLLECTION_MAX_LENGTH
107 #define UI_RECT_COLLECTION_MAX_LENGTH (8u)
108 #endif
109 
119 //#define UI_FEATURE_ALLOCATOR UI_FEATURE_ALLOCATOR_BESTFIT
120 
127 //#define UI_FEATURE_EVENT_DECODER
128 
129 #if defined(UI_FEATURE_EVENT_DECODER)
130 
131 // header file created by MicroEJ Platform builder.
132 #include "microui_constants.h"
133 
145 #ifndef UI_EVENTDECODER_EVENTGEN_COMMAND
146 #define UI_EVENTDECODER_EVENTGEN_COMMAND MICROUI_EVENTGEN_COMMANDS
147 #endif
148 
160 #ifndef UI_EVENTDECODER_EVENTGEN_BUTTONS
161 #define UI_EVENTDECODER_EVENTGEN_BUTTONS MICROUI_EVENTGEN_BUTTONS
162 #endif
163 
175 #ifndef UI_EVENTDECODER_EVENTGEN_TOUCH
176 #define UI_EVENTDECODER_EVENTGEN_TOUCH MICROUI_EVENTGEN_TOUCH
177 #endif
178 
179 #endif // UI_FEATURE_EVENT_DECODER
180 
189 #ifndef UI_FEATURE_BRS
190 #define UI_FEATURE_BRS (UI_FEATURE_BRS_PREDRAW)
191 #endif
192 
204 #ifndef UI_FEATURE_BRS_DRAWING_BUFFER_COUNT
205 #define UI_FEATURE_BRS_DRAWING_BUFFER_COUNT (2u)
206 #endif
207 
227 //#define UI_FEATURE_BRS_FLUSH_SINGLE_RECTANGLE
228 
235 #ifndef UI_GC_SUPPORTED_FORMATS
236 #define UI_GC_SUPPORTED_FORMATS (1u)
237 #endif
238 
244 //#define UI_FEATURE_IMAGE_CUSTOM_FORMATS
245 
251 //#define UI_FEATURE_FONT_CUSTOM_FORMATS
252 
253 // --------------------------------------------------------------------------------
254 // EOF
255 // --------------------------------------------------------------------------------
256 
257 #ifdef __cplusplus
258 }
259 #endif
260 
261 #endif // UI_CONFIGURATION_H