55 #include <LLUI_DISPLAY.h>
57 #include "ui_drawing.h"
58 #include "ui_drawing_stub.h"
59 #include "ui_drawing_soft.h"
60 #include "dw_drawing_soft.h"
61 #include "ui_image_drawing.h"
68 #if !defined(LLUI_GC_SUPPORTED_FORMATS) || (LLUI_GC_SUPPORTED_FORMATS <= 1)
76 #define UI_DRAWING_DEFAULT_writePixel UI_DRAWING_writePixel
77 #define UI_DRAWING_DEFAULT_drawLine UI_DRAWING_drawLine
78 #define UI_DRAWING_DEFAULT_drawHorizontalLine UI_DRAWING_drawHorizontalLine
79 #define UI_DRAWING_DEFAULT_drawVerticalLine UI_DRAWING_drawVerticalLine
80 #define UI_DRAWING_DEFAULT_drawRectangle UI_DRAWING_drawRectangle
81 #define UI_DRAWING_DEFAULT_fillRectangle UI_DRAWING_fillRectangle
82 #define UI_DRAWING_DEFAULT_drawRoundedRectangle UI_DRAWING_drawRoundedRectangle
83 #define UI_DRAWING_DEFAULT_fillRoundedRectangle UI_DRAWING_fillRoundedRectangle
84 #define UI_DRAWING_DEFAULT_drawCircleArc UI_DRAWING_drawCircleArc
85 #define UI_DRAWING_DEFAULT_drawEllipseArc UI_DRAWING_drawEllipseArc
86 #define UI_DRAWING_DEFAULT_fillCircleArc UI_DRAWING_fillCircleArc
87 #define UI_DRAWING_DEFAULT_fillEllipseArc UI_DRAWING_fillEllipseArc
88 #define UI_DRAWING_DEFAULT_drawEllipse UI_DRAWING_drawEllipse
89 #define UI_DRAWING_DEFAULT_fillEllipse UI_DRAWING_fillEllipse
90 #define UI_DRAWING_DEFAULT_drawCircle UI_DRAWING_drawCircle
91 #define UI_DRAWING_DEFAULT_fillCircle UI_DRAWING_fillCircle
92 #define UI_DRAWING_DEFAULT_drawImage UI_DRAWING_drawImage
93 #define UI_DRAWING_DEFAULT_copyImage UI_DRAWING_copyImage
94 #define UI_DRAWING_DEFAULT_drawRegion UI_DRAWING_drawRegion
96 #define UI_DRAWING_DEFAULT_drawThickFadedPoint UI_DRAWING_drawThickFadedPoint
97 #define UI_DRAWING_DEFAULT_drawThickFadedLine UI_DRAWING_drawThickFadedLine
98 #define UI_DRAWING_DEFAULT_drawThickFadedCircle UI_DRAWING_drawThickFadedCircle
99 #define UI_DRAWING_DEFAULT_drawThickFadedCircleArc UI_DRAWING_drawThickFadedCircleArc
100 #define UI_DRAWING_DEFAULT_drawThickFadedEllipse UI_DRAWING_drawThickFadedEllipse
101 #define UI_DRAWING_DEFAULT_drawThickLine UI_DRAWING_drawThickLine
102 #define UI_DRAWING_DEFAULT_drawThickCircle UI_DRAWING_drawThickCircle
103 #define UI_DRAWING_DEFAULT_drawThickEllipse UI_DRAWING_drawThickEllipse
104 #define UI_DRAWING_DEFAULT_drawThickCircleArc UI_DRAWING_drawThickCircleArc
105 #define UI_DRAWING_DEFAULT_drawFlippedImage UI_DRAWING_drawFlippedImage
106 #define UI_DRAWING_DEFAULT_drawRotatedImageNearestNeighbor UI_DRAWING_drawRotatedImageNearestNeighbor
107 #define UI_DRAWING_DEFAULT_drawRotatedImageBilinear UI_DRAWING_drawRotatedImageBilinear
108 #define UI_DRAWING_DEFAULT_drawScaledImageNearestNeighbor UI_DRAWING_drawScaledImageNearestNeighbor
109 #define UI_DRAWING_DEFAULT_drawScaledImageBilinear UI_DRAWING_drawScaledImageBilinear
119 #define UI_DRAWING_DEFAULT_writePixel UI_DRAWING_writePixel_0
120 #define UI_DRAWING_DEFAULT_drawLine UI_DRAWING_drawLine_0
121 #define UI_DRAWING_DEFAULT_drawHorizontalLine UI_DRAWING_drawHorizontalLine_0
122 #define UI_DRAWING_DEFAULT_drawVerticalLine UI_DRAWING_drawVerticalLine_0
123 #define UI_DRAWING_DEFAULT_drawRectangle UI_DRAWING_drawRectangle_0
124 #define UI_DRAWING_DEFAULT_fillRectangle UI_DRAWING_fillRectangle_0
125 #define UI_DRAWING_DEFAULT_drawRoundedRectangle UI_DRAWING_drawRoundedRectangle_0
126 #define UI_DRAWING_DEFAULT_fillRoundedRectangle UI_DRAWING_fillRoundedRectangle_0
127 #define UI_DRAWING_DEFAULT_drawCircleArc UI_DRAWING_drawCircleArc_0
128 #define UI_DRAWING_DEFAULT_drawEllipseArc UI_DRAWING_drawEllipseArc_0
129 #define UI_DRAWING_DEFAULT_fillCircleArc UI_DRAWING_fillCircleArc_0
130 #define UI_DRAWING_DEFAULT_fillEllipseArc UI_DRAWING_fillEllipseArc_0
131 #define UI_DRAWING_DEFAULT_drawEllipse UI_DRAWING_drawEllipse_0
132 #define UI_DRAWING_DEFAULT_fillEllipse UI_DRAWING_fillEllipse_0
133 #define UI_DRAWING_DEFAULT_drawCircle UI_DRAWING_drawCircle_0
134 #define UI_DRAWING_DEFAULT_fillCircle UI_DRAWING_fillCircle_0
135 #define UI_DRAWING_DEFAULT_drawImage UI_DRAWING_drawImage_0
136 #define UI_DRAWING_DEFAULT_copyImage UI_DRAWING_copyImage_0
137 #define UI_DRAWING_DEFAULT_drawRegion UI_DRAWING_drawRegion_0
139 #define UI_DRAWING_DEFAULT_drawThickFadedPoint UI_DRAWING_drawThickFadedPoint_0
140 #define UI_DRAWING_DEFAULT_drawThickFadedLine UI_DRAWING_drawThickFadedLine_0
141 #define UI_DRAWING_DEFAULT_drawThickFadedCircle UI_DRAWING_drawThickFadedCircle_0
142 #define UI_DRAWING_DEFAULT_drawThickFadedCircleArc UI_DRAWING_drawThickFadedCircleArc_0
143 #define UI_DRAWING_DEFAULT_drawThickFadedEllipse UI_DRAWING_drawThickFadedEllipse_0
144 #define UI_DRAWING_DEFAULT_drawThickLine UI_DRAWING_drawThickLine_0
145 #define UI_DRAWING_DEFAULT_drawThickCircle UI_DRAWING_drawThickCircle_0
146 #define UI_DRAWING_DEFAULT_drawThickEllipse UI_DRAWING_drawThickEllipse_0
147 #define UI_DRAWING_DEFAULT_drawThickCircleArc UI_DRAWING_drawThickCircleArc_0
148 #define UI_DRAWING_DEFAULT_drawFlippedImage UI_DRAWING_drawFlippedImage_0
149 #define UI_DRAWING_DEFAULT_drawRotatedImageNearestNeighbor UI_DRAWING_drawRotatedImageNearestNeighbor_0
150 #define UI_DRAWING_DEFAULT_drawRotatedImageBilinear UI_DRAWING_drawRotatedImageBilinear_0
151 #define UI_DRAWING_DEFAULT_drawScaledImageNearestNeighbor UI_DRAWING_drawScaledImageNearestNeighbor_0
152 #define UI_DRAWING_DEFAULT_drawScaledImageBilinear UI_DRAWING_drawScaledImageBilinear_0
160 #if defined(LLUI_GC_SUPPORTED_FORMATS) && (LLUI_GC_SUPPORTED_FORMATS > 1)
169 #if (LLUI_GC_SUPPORTED_FORMATS > 3)
170 #error "Increase the number of following functions and update the next tables"
173 extern DRAWING_Status UI_DRAWING_writePixel_0(MICROUI_GraphicsContext *gc, jint x, jint y);
174 extern DRAWING_Status UI_DRAWING_drawLine_0(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
176 extern DRAWING_Status UI_DRAWING_drawHorizontalLine_0(MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y);
177 extern DRAWING_Status UI_DRAWING_drawVerticalLine_0(MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2);
178 extern DRAWING_Status UI_DRAWING_drawRectangle_0(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
179 extern DRAWING_Status UI_DRAWING_fillRectangle_0(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
180 extern DRAWING_Status UI_DRAWING_drawRoundedRectangle_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
181 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight);
182 extern DRAWING_Status UI_DRAWING_fillRoundedRectangle_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
183 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight);
184 extern DRAWING_Status UI_DRAWING_drawCircleArc_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
185 jfloat startAngle, jfloat arcAngle);
186 extern DRAWING_Status UI_DRAWING_drawEllipseArc_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
187 jfloat startAngle, jfloat arcAngle);
188 extern DRAWING_Status UI_DRAWING_fillCircleArc_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
189 jfloat startAngle, jfloat arcAngle);
190 extern DRAWING_Status UI_DRAWING_fillEllipseArc_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
191 jfloat startAngle, jfloat arcAngle);
192 extern DRAWING_Status UI_DRAWING_drawEllipse_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height);
193 extern DRAWING_Status UI_DRAWING_fillEllipse_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height);
194 extern DRAWING_Status UI_DRAWING_drawCircle_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
195 extern DRAWING_Status UI_DRAWING_fillCircle_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
196 extern DRAWING_Status UI_DRAWING_drawImage_0(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
197 jint regionY, jint width, jint height, jint x, jint y, jint alpha);
198 extern DRAWING_Status UI_DRAWING_copyImage_0(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
199 jint regionY, jint width, jint height, jint x, jint y);
200 extern DRAWING_Status UI_DRAWING_drawRegion_0(MICROUI_GraphicsContext *gc, jint regionX, jint regionY, jint width,
201 jint height, jint x, jint y, jint alpha);
202 extern DRAWING_Status UI_DRAWING_drawThickFadedPoint_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint thickness,
204 extern DRAWING_Status UI_DRAWING_drawThickFadedLine_0(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
205 jint endY, jint thickness, jint fade, DRAWING_Cap startCap,
207 extern DRAWING_Status UI_DRAWING_drawThickFadedCircle_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
208 jint thickness, jint fade);
209 extern DRAWING_Status UI_DRAWING_drawThickFadedCircleArc_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
210 jfloat startAngle, jfloat arcAngle, jint thickness,
211 jint fade, DRAWING_Cap start, DRAWING_Cap end);
212 extern DRAWING_Status UI_DRAWING_drawThickFadedEllipse_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
213 jint height, jint thickness, jint fade);
214 extern DRAWING_Status UI_DRAWING_drawThickLine_0(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
215 jint endY, jint thickness);
216 extern DRAWING_Status UI_DRAWING_drawThickCircle_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
218 extern DRAWING_Status UI_DRAWING_drawThickEllipse_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
219 jint height, jint thickness);
220 extern DRAWING_Status UI_DRAWING_drawThickCircleArc_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
221 jfloat startAngle, jfloat arcAngle, jint thickness);
222 extern DRAWING_Status UI_DRAWING_drawFlippedImage_0(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
223 jint regionY, jint width, jint height, jint x, jint y,
224 DRAWING_Flip transformation, jint alpha);
225 extern DRAWING_Status UI_DRAWING_drawRotatedImageNearestNeighbor_0(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
226 jint x, jint y, jint rotationX, jint rotationY,
227 jfloat angle, jint alpha);
228 extern DRAWING_Status UI_DRAWING_drawRotatedImageBilinear_0(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
229 jint y, jint rotationX, jint rotationY, jfloat angle,
231 extern DRAWING_Status UI_DRAWING_drawScaledImageNearestNeighbor_0(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
232 jint x, jint y, jfloat factorX, jfloat factorY,
234 extern DRAWING_Status UI_DRAWING_drawScaledImageBilinear_0(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
235 jint y, jfloat factorX, jfloat factorY, jint alpha);
237 extern uint32_t UI_DRAWING_getNewImageStrideInBytes_1(jbyte image_format, uint32_t width, uint32_t height,
238 uint32_t default_stride);
239 extern void UI_DRAWING_adjustNewImageCharacteristics_1(jbyte image_format, uint32_t width, uint32_t height,
240 uint32_t *data_size, uint32_t *data_alignment);
241 extern void UI_DRAWING_initializeNewImage_1(MICROUI_Image *image);
242 extern void UI_DRAWING_freeImageResources_1(MICROUI_Image *image);
243 extern DRAWING_Status UI_DRAWING_writePixel_1(MICROUI_GraphicsContext *gc, jint x, jint y);
244 extern DRAWING_Status UI_DRAWING_drawLine_1(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
246 extern DRAWING_Status UI_DRAWING_drawHorizontalLine_1(MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y);
247 extern DRAWING_Status UI_DRAWING_drawVerticalLine_1(MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2);
248 extern DRAWING_Status UI_DRAWING_drawRectangle_1(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
249 extern DRAWING_Status UI_DRAWING_fillRectangle_1(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
250 extern DRAWING_Status UI_DRAWING_drawRoundedRectangle_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
251 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight);
252 extern DRAWING_Status UI_DRAWING_fillRoundedRectangle_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
253 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight);
254 extern DRAWING_Status UI_DRAWING_drawCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
255 jfloat startAngle, jfloat arcAngle);
256 extern DRAWING_Status UI_DRAWING_drawEllipseArc_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
257 jfloat startAngle, jfloat arcAngle);
258 extern DRAWING_Status UI_DRAWING_fillCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
259 jfloat startAngle, jfloat arcAngle);
260 extern DRAWING_Status UI_DRAWING_fillEllipseArc_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
261 jfloat startAngle, jfloat arcAngle);
262 extern DRAWING_Status UI_DRAWING_drawEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height);
263 extern DRAWING_Status UI_DRAWING_fillEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height);
264 extern DRAWING_Status UI_DRAWING_drawCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
265 extern DRAWING_Status UI_DRAWING_fillCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
266 extern DRAWING_Status UI_DRAWING_drawImage_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
267 jint regionY, jint width, jint height, jint x, jint y, jint alpha);
268 extern DRAWING_Status UI_DRAWING_copyImage_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
269 jint regionY, jint width, jint height, jint x, jint y);
270 extern DRAWING_Status UI_DRAWING_drawRegion_1(MICROUI_GraphicsContext *gc, jint regionX, jint regionY, jint width,
271 jint height, jint x, jint y, jint alpha);
272 extern DRAWING_Status UI_DRAWING_drawThickFadedPoint_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint thickness,
274 extern DRAWING_Status UI_DRAWING_drawThickFadedLine_1(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
275 jint endY, jint thickness, jint fade, DRAWING_Cap startCap,
277 extern DRAWING_Status UI_DRAWING_drawThickFadedCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
278 jint thickness, jint fade);
279 extern DRAWING_Status UI_DRAWING_drawThickFadedCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
280 jfloat startAngle, jfloat arcAngle, jint thickness,
281 jint fade, DRAWING_Cap start, DRAWING_Cap end);
282 extern DRAWING_Status UI_DRAWING_drawThickFadedEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
283 jint height, jint thickness, jint fade);
284 extern DRAWING_Status UI_DRAWING_drawThickLine_1(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
285 jint endY, jint thickness);
286 extern DRAWING_Status UI_DRAWING_drawThickCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
288 extern DRAWING_Status UI_DRAWING_drawThickEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
289 jint height, jint thickness);
290 extern DRAWING_Status UI_DRAWING_drawThickCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
291 jfloat startAngle, jfloat arcAngle, jint thickness);
292 extern DRAWING_Status UI_DRAWING_drawFlippedImage_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
293 jint regionY, jint width, jint height, jint x, jint y,
294 DRAWING_Flip transformation, jint alpha);
295 extern DRAWING_Status UI_DRAWING_drawRotatedImageNearestNeighbor_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
296 jint x, jint y, jint rotationX, jint rotationY,
297 jfloat angle, jint alpha);
298 extern DRAWING_Status UI_DRAWING_drawRotatedImageBilinear_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
299 jint y, jint rotationX, jint rotationY, jfloat angle,
301 extern DRAWING_Status UI_DRAWING_drawScaledImageNearestNeighbor_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
302 jint x, jint y, jfloat factorX, jfloat factorY,
304 extern DRAWING_Status UI_DRAWING_drawScaledImageBilinear_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
305 jint y, jfloat factorX, jfloat factorY, jint alpha);
307 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
308 extern uint32_t UI_DRAWING_getNewImageStrideInBytes_2(jbyte image_format, uint32_t width, uint32_t height,
309 uint32_t default_stride);
310 extern void UI_DRAWING_adjustNewImageCharacteristics_2(jbyte image_format, uint32_t width, uint32_t height,
311 uint32_t *data_size, uint32_t *data_alignment);
312 extern void UI_DRAWING_initializeNewImage_2(MICROUI_Image *image);
313 extern void UI_DRAWING_freeImageResources_2(MICROUI_Image *image);
314 extern DRAWING_Status UI_DRAWING_writePixel_2(MICROUI_GraphicsContext *gc, jint x, jint y);
315 extern DRAWING_Status UI_DRAWING_drawLine_2(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
317 extern DRAWING_Status UI_DRAWING_drawHorizontalLine_2(MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y);
318 extern DRAWING_Status UI_DRAWING_drawVerticalLine_2(MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2);
319 extern DRAWING_Status UI_DRAWING_drawRectangle_2(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
320 extern DRAWING_Status UI_DRAWING_fillRectangle_2(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
321 extern DRAWING_Status UI_DRAWING_drawRoundedRectangle_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
322 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight);
323 extern DRAWING_Status UI_DRAWING_fillRoundedRectangle_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
324 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight);
325 extern DRAWING_Status UI_DRAWING_drawCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
326 jfloat startAngle, jfloat arcAngle);
327 extern DRAWING_Status UI_DRAWING_drawEllipseArc_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
328 jfloat startAngle, jfloat arcAngle);
329 extern DRAWING_Status UI_DRAWING_fillCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
330 jfloat startAngle, jfloat arcAngle);
331 extern DRAWING_Status UI_DRAWING_fillEllipseArc_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
332 jfloat startAngle, jfloat arcAngle);
333 extern DRAWING_Status UI_DRAWING_drawEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height);
334 extern DRAWING_Status UI_DRAWING_fillEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height);
335 extern DRAWING_Status UI_DRAWING_drawCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
336 extern DRAWING_Status UI_DRAWING_fillCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
337 extern DRAWING_Status UI_DRAWING_drawImage_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
338 jint regionY, jint width, jint height, jint x, jint y, jint alpha);
339 extern DRAWING_Status UI_DRAWING_copyImage_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
340 jint regionY, jint width, jint height, jint x, jint y);
341 extern DRAWING_Status UI_DRAWING_drawRegion_2(MICROUI_GraphicsContext *gc, jint regionX, jint regionY, jint width,
342 jint height, jint x, jint y, jint alpha);
343 extern DRAWING_Status UI_DRAWING_drawThickFadedPoint_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint thickness,
345 extern DRAWING_Status UI_DRAWING_drawThickFadedLine_2(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
346 jint endY, jint thickness, jint fade, DRAWING_Cap startCap,
348 extern DRAWING_Status UI_DRAWING_drawThickFadedCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
349 jint thickness, jint fade);
350 extern DRAWING_Status UI_DRAWING_drawThickFadedCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
351 jfloat startAngle, jfloat arcAngle, jint thickness,
352 jint fade, DRAWING_Cap start, DRAWING_Cap end);
353 extern DRAWING_Status UI_DRAWING_drawThickFadedEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
354 jint height, jint thickness, jint fade);
355 extern DRAWING_Status UI_DRAWING_drawThickLine_2(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
356 jint endY, jint thickness);
357 extern DRAWING_Status UI_DRAWING_drawThickCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
359 extern DRAWING_Status UI_DRAWING_drawThickEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
360 jint height, jint thickness);
361 extern DRAWING_Status UI_DRAWING_drawThickCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
362 jfloat startAngle, jfloat arcAngle, jint thickness);
363 extern DRAWING_Status UI_DRAWING_drawFlippedImage_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
364 jint regionY, jint width, jint height, jint x, jint y,
365 DRAWING_Flip transformation, jint alpha);
366 extern DRAWING_Status UI_DRAWING_drawRotatedImageNearestNeighbor_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
367 jint x, jint y, jint rotationX, jint rotationY,
368 jfloat angle, jint alpha);
369 extern DRAWING_Status UI_DRAWING_drawRotatedImageBilinear_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
370 jint y, jint rotationX, jint rotationY, jfloat angle,
372 extern DRAWING_Status UI_DRAWING_drawScaledImageNearestNeighbor_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
373 jint x, jint y, jfloat factorX, jfloat factorY,
375 extern DRAWING_Status UI_DRAWING_drawScaledImageBilinear_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
376 jint y, jfloat factorX, jfloat factorY, jint alpha);
385 #if defined(LLUI_GC_SUPPORTED_FORMATS) && (LLUI_GC_SUPPORTED_FORMATS > 1)
391 typedef uint32_t (* UI_DRAWING_getNewImageStrideInBytes_t) (jbyte image_format, uint32_t width, uint32_t height,
392 uint32_t default_stride);
393 typedef void (* UI_DRAWING_adjustNewImageCharacteristics_t) (jbyte image_format, uint32_t width, uint32_t height,
394 uint32_t *data_size, uint32_t *data_alignment);
395 typedef void (* UI_DRAWING_initializeNewImage_t) (MICROUI_Image *image);
396 typedef void (* UI_DRAWING_freeImageResources_t) (MICROUI_Image *image);
397 typedef DRAWING_Status (* UI_DRAWING_writePixel_t) (MICROUI_GraphicsContext *gc, jint x, jint y);
398 typedef DRAWING_Status (* UI_DRAWING_drawLine_t) (MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
400 typedef DRAWING_Status (* UI_DRAWING_drawHorizontalLine_t) (MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y);
401 typedef DRAWING_Status (* UI_DRAWING_drawVerticalLine_t) (MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2);
402 typedef DRAWING_Status (* UI_DRAWING_drawRectangle_t) (MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
403 typedef DRAWING_Status (* UI_DRAWING_fillRectangle_t) (MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
404 typedef DRAWING_Status (* UI_DRAWING_drawRoundedRectangle_t) (MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
405 jint height, jint cornerEllipseWidth,
406 jint cornerEllipseHeight);
407 typedef DRAWING_Status (* UI_DRAWING_fillRoundedRectangle_t) (MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
408 jint height, jint cornerEllipseWidth,
409 jint cornerEllipseHeight);
410 typedef DRAWING_Status (* UI_DRAWING_drawCircleArc_t) (MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
411 jfloat startAngle, jfloat arcAngle);
412 typedef DRAWING_Status (* UI_DRAWING_drawEllipseArc_t) (MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
413 jint height, jfloat startAngle, jfloat arcAngle);
414 typedef DRAWING_Status (* UI_DRAWING_fillCircleArc_t) (MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
415 jfloat startAngle, jfloat arcAngle);
416 typedef DRAWING_Status (* UI_DRAWING_fillEllipseArc_t) (MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
417 jint height, jfloat startAngle, jfloat arcAngle);
418 typedef DRAWING_Status (* UI_DRAWING_drawEllipse_t) (MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
420 typedef DRAWING_Status (* UI_DRAWING_fillEllipse_t) (MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
422 typedef DRAWING_Status (* UI_DRAWING_drawCircle_t) (MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
423 typedef DRAWING_Status (* UI_DRAWING_fillCircle_t) (MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
424 typedef DRAWING_Status (* UI_DRAWING_drawImage_t) (MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
425 jint regionY, jint width, jint height, jint x, jint y, jint alpha);
426 typedef DRAWING_Status (* UI_DRAWING_copyImage_t) (MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
427 jint regionY, jint width, jint height, jint x, jint y);
428 typedef DRAWING_Status (* UI_DRAWING_drawRegion_t) (MICROUI_GraphicsContext *gc, jint regionX, jint regionY, jint width,
429 jint height, jint x, jint y, jint alpha);
430 typedef DRAWING_Status (* UI_DRAWING_drawThickFadedPoint_t) (MICROUI_GraphicsContext *gc, jint x, jint y,
431 jint thickness, jint fade);
432 typedef DRAWING_Status (* UI_DRAWING_drawThickFadedLine_t) (MICROUI_GraphicsContext *gc, jint startX, jint startY,
433 jint endX, jint endY, jint thickness, jint fade,
434 DRAWING_Cap startCap, DRAWING_Cap endCap);
435 typedef DRAWING_Status (* UI_DRAWING_drawThickFadedCircle_t) (MICROUI_GraphicsContext *gc, jint x, jint y,
436 jint diameter, jint thickness, jint fade);
437 typedef DRAWING_Status (* UI_DRAWING_drawThickFadedCircleArc_t) (MICROUI_GraphicsContext *gc, jint x, jint y,
438 jint diameter, jfloat startAngle, jfloat arcAngle,
439 jint thickness, jint fade, DRAWING_Cap start,
441 typedef DRAWING_Status (* UI_DRAWING_drawThickFadedEllipse_t) (MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
442 jint height, jint thickness, jint fade);
443 typedef DRAWING_Status (* UI_DRAWING_drawThickLine_t) (MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
444 jint endY, jint thickness);
445 typedef DRAWING_Status (* UI_DRAWING_drawThickCircle_t) (MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
447 typedef DRAWING_Status (* UI_DRAWING_drawThickEllipse_t) (MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
448 jint height, jint thickness);
449 typedef DRAWING_Status (* UI_DRAWING_drawThickCircleArc_t) (MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
450 jfloat startAngle, jfloat arcAngle, jint thickness);
451 typedef DRAWING_Status (* UI_DRAWING_drawFlippedImage_t) (MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
452 jint regionY, jint width, jint height, jint x, jint y,
453 DRAWING_Flip transformation, jint alpha);
454 typedef DRAWING_Status (* UI_DRAWING_drawRotatedImageNearestNeighbor_t) (MICROUI_GraphicsContext *gc,
455 MICROUI_Image *img, jint x, jint y,
456 jint rotationX, jint rotationY, jfloat angle,
458 typedef DRAWING_Status (* UI_DRAWING_drawRotatedImageBilinear_t) (MICROUI_GraphicsContext *gc, MICROUI_Image *img,
459 jint x, jint y, jint rotationX, jint rotationY,
460 jfloat angle, jint alpha);
461 typedef DRAWING_Status (* UI_DRAWING_drawScaledImageNearestNeighbor_t) (MICROUI_GraphicsContext *gc, MICROUI_Image *img,
462 jint x, jint y, jfloat factorX, jfloat factorY,
464 typedef DRAWING_Status (* UI_DRAWING_drawScaledImageBilinear_t) (MICROUI_GraphicsContext *gc, MICROUI_Image *img,
465 jint x, jint y, jfloat factorX, jfloat factorY,
474 #if defined(LLUI_GC_SUPPORTED_FORMATS) && (LLUI_GC_SUPPORTED_FORMATS > 1)
476 static const UI_DRAWING_getNewImageStrideInBytes_t UI_DRAWER_getNewImageStrideInBytes[] = {
477 &UI_DRAWING_getNewImageStrideInBytes,
478 &UI_DRAWING_getNewImageStrideInBytes_1,
479 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
480 &UI_DRAWING_getNewImageStrideInBytes_2,
484 static const UI_DRAWING_adjustNewImageCharacteristics_t UI_DRAWER_adjustNewImageCharacteristics[] = {
485 &UI_DRAWING_adjustNewImageCharacteristics,
486 &UI_DRAWING_adjustNewImageCharacteristics_1,
487 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
488 &UI_DRAWING_adjustNewImageCharacteristics_2,
492 static const UI_DRAWING_initializeNewImage_t UI_DRAWER_initializeNewImage[] = {
493 &UI_DRAWING_initializeNewImage,
494 &UI_DRAWING_initializeNewImage_1,
495 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
496 &UI_DRAWING_initializeNewImage_2,
500 static const UI_DRAWING_freeImageResources_t UI_DRAWER_freeImageResources[] = {
501 &UI_DRAWING_freeImageResources,
502 &UI_DRAWING_freeImageResources_1,
503 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
504 &UI_DRAWING_freeImageResources_2,
508 static const UI_DRAWING_writePixel_t UI_DRAWER_writePixel[] = {
509 &UI_DRAWING_writePixel_0,
510 &UI_DRAWING_writePixel_1,
511 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
512 &UI_DRAWING_writePixel_2,
516 static const UI_DRAWING_drawLine_t UI_DRAWER_drawLine[] = {
517 &UI_DRAWING_drawLine_0,
518 &UI_DRAWING_drawLine_1,
519 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
520 &UI_DRAWING_drawLine_2,
524 static const UI_DRAWING_drawHorizontalLine_t UI_DRAWER_drawHorizontalLine[] = {
525 &UI_DRAWING_drawHorizontalLine_0,
526 &UI_DRAWING_drawHorizontalLine_1,
527 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
528 &UI_DRAWING_drawHorizontalLine_2,
532 static const UI_DRAWING_drawVerticalLine_t UI_DRAWER_drawVerticalLine[] = {
533 &UI_DRAWING_drawVerticalLine_0,
534 &UI_DRAWING_drawVerticalLine_1,
535 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
536 &UI_DRAWING_drawVerticalLine_2,
540 static const UI_DRAWING_drawRectangle_t UI_DRAWER_drawRectangle[] = {
541 &UI_DRAWING_drawRectangle_0,
542 &UI_DRAWING_drawRectangle_1,
543 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
544 &UI_DRAWING_drawRectangle_2,
548 static const UI_DRAWING_fillRectangle_t UI_DRAWER_fillRectangle[] = {
549 &UI_DRAWING_fillRectangle_0,
550 &UI_DRAWING_fillRectangle_1,
551 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
552 &UI_DRAWING_fillRectangle_2,
556 static const UI_DRAWING_drawRoundedRectangle_t UI_DRAWER_drawRoundedRectangle[] = {
557 &UI_DRAWING_drawRoundedRectangle_0,
558 &UI_DRAWING_drawRoundedRectangle_1,
559 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
560 &UI_DRAWING_drawRoundedRectangle_2,
564 static const UI_DRAWING_fillRoundedRectangle_t UI_DRAWER_fillRoundedRectangle[] = {
565 &UI_DRAWING_fillRoundedRectangle_0,
566 &UI_DRAWING_fillRoundedRectangle_1,
567 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
568 &UI_DRAWING_fillRoundedRectangle_2,
572 static const UI_DRAWING_drawCircleArc_t UI_DRAWER_drawCircleArc[] = {
573 &UI_DRAWING_drawCircleArc_0,
574 &UI_DRAWING_drawCircleArc_1,
575 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
576 &UI_DRAWING_drawCircleArc_2,
580 static const UI_DRAWING_drawEllipseArc_t UI_DRAWER_drawEllipseArc[] = {
581 &UI_DRAWING_drawEllipseArc_0,
582 &UI_DRAWING_drawEllipseArc_1,
583 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
584 &UI_DRAWING_drawEllipseArc_2,
588 static const UI_DRAWING_fillCircleArc_t UI_DRAWER_fillCircleArc[] = {
589 &UI_DRAWING_fillCircleArc_0,
590 &UI_DRAWING_fillCircleArc_1,
591 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
592 &UI_DRAWING_fillCircleArc_2,
596 static const UI_DRAWING_fillEllipseArc_t UI_DRAWER_fillEllipseArc[] = {
597 &UI_DRAWING_fillEllipseArc_0,
598 &UI_DRAWING_fillEllipseArc_1,
599 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
600 &UI_DRAWING_fillEllipseArc_2,
604 static const UI_DRAWING_drawEllipse_t UI_DRAWER_drawEllipse[] = {
605 &UI_DRAWING_drawEllipse_0,
606 &UI_DRAWING_drawEllipse_1,
607 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
608 &UI_DRAWING_drawEllipse_2,
612 static const UI_DRAWING_fillEllipse_t UI_DRAWER_fillEllipse[] = {
613 &UI_DRAWING_fillEllipse_0,
614 &UI_DRAWING_fillEllipse_1,
615 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
616 &UI_DRAWING_fillEllipse_2,
620 static const UI_DRAWING_drawCircle_t UI_DRAWER_drawCircle[] = {
621 &UI_DRAWING_drawCircle_0,
622 &UI_DRAWING_drawCircle_1,
623 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
624 &UI_DRAWING_drawCircle_2,
628 static const UI_DRAWING_fillCircle_t UI_DRAWER_fillCircle[] = {
629 &UI_DRAWING_fillCircle_0,
630 &UI_DRAWING_fillCircle_1,
631 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
632 &UI_DRAWING_fillCircle_2,
636 static const UI_DRAWING_drawImage_t UI_DRAWER_drawImage[] = {
637 &UI_DRAWING_drawImage_0,
638 &UI_DRAWING_drawImage_1,
639 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
640 &UI_DRAWING_drawImage_2,
644 static const UI_DRAWING_copyImage_t UI_DRAWER_copyImage[] = {
645 &UI_DRAWING_copyImage_0,
646 &UI_DRAWING_copyImage_1,
647 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
648 &UI_DRAWING_copyImage_2,
652 static const UI_DRAWING_drawRegion_t UI_DRAWER_drawRegion[] = {
653 &UI_DRAWING_drawRegion_0,
654 &UI_DRAWING_drawRegion_1,
655 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
656 &UI_DRAWING_drawRegion_2,
660 static const UI_DRAWING_drawThickFadedPoint_t UI_DRAWER_drawThickFadedPoint[] = {
661 &UI_DRAWING_drawThickFadedPoint_0,
662 &UI_DRAWING_drawThickFadedPoint_1,
663 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
664 &UI_DRAWING_drawThickFadedPoint_2,
668 static const UI_DRAWING_drawThickFadedLine_t UI_DRAWER_drawThickFadedLine[] = {
669 &UI_DRAWING_drawThickFadedLine_0,
670 &UI_DRAWING_drawThickFadedLine_1,
671 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
672 &UI_DRAWING_drawThickFadedLine_2,
676 static const UI_DRAWING_drawThickFadedCircle_t UI_DRAWER_drawThickFadedCircle[] = {
677 &UI_DRAWING_drawThickFadedCircle_0,
678 &UI_DRAWING_drawThickFadedCircle_1,
679 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
680 &UI_DRAWING_drawThickFadedCircle_2,
684 static const UI_DRAWING_drawThickFadedCircleArc_t UI_DRAWER_drawThickFadedCircleArc[] = {
685 &UI_DRAWING_drawThickFadedCircleArc_0,
686 &UI_DRAWING_drawThickFadedCircleArc_1,
687 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
688 &UI_DRAWING_drawThickFadedCircleArc_2,
692 static const UI_DRAWING_drawThickFadedEllipse_t UI_DRAWER_drawThickFadedEllipse[] = {
693 &UI_DRAWING_drawThickFadedEllipse_0,
694 &UI_DRAWING_drawThickFadedEllipse_1,
695 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
696 &UI_DRAWING_drawThickFadedEllipse_2,
700 static const UI_DRAWING_drawThickLine_t UI_DRAWER_drawThickLine[] = {
701 &UI_DRAWING_drawThickLine_0,
702 &UI_DRAWING_drawThickLine_1,
703 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
704 &UI_DRAWING_drawThickLine_2,
708 static const UI_DRAWING_drawThickCircle_t UI_DRAWER_drawThickCircle[] = {
709 &UI_DRAWING_drawThickCircle_0,
710 &UI_DRAWING_drawThickCircle_1,
711 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
712 &UI_DRAWING_drawThickCircle_2,
716 static const UI_DRAWING_drawThickEllipse_t UI_DRAWER_drawThickEllipse[] = {
717 &UI_DRAWING_drawThickEllipse_0,
718 &UI_DRAWING_drawThickEllipse_1,
719 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
720 &UI_DRAWING_drawThickEllipse_2,
724 static const UI_DRAWING_drawThickCircleArc_t UI_DRAWER_drawThickCircleArc[] = {
725 &UI_DRAWING_drawThickCircleArc_0,
726 &UI_DRAWING_drawThickCircleArc_1,
727 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
728 &UI_DRAWING_drawThickCircleArc_2,
732 static const UI_DRAWING_drawFlippedImage_t UI_DRAWER_drawFlippedImage[] = {
733 &UI_DRAWING_drawFlippedImage_0,
734 &UI_DRAWING_drawFlippedImage_1,
735 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
736 &UI_DRAWING_drawFlippedImage_2,
740 static const UI_DRAWING_drawRotatedImageNearestNeighbor_t UI_DRAWER_drawRotatedImageNearestNeighbor[] = {
741 &UI_DRAWING_drawRotatedImageNearestNeighbor_0,
742 &UI_DRAWING_drawRotatedImageNearestNeighbor_1,
743 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
744 &UI_DRAWING_drawRotatedImageNearestNeighbor_2,
748 static const UI_DRAWING_drawRotatedImageBilinear_t UI_DRAWER_drawRotatedImageBilinear[] = {
749 &UI_DRAWING_drawRotatedImageBilinear_0,
750 &UI_DRAWING_drawRotatedImageBilinear_1,
751 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
752 &UI_DRAWING_drawRotatedImageBilinear_2,
756 static const UI_DRAWING_drawScaledImageNearestNeighbor_t UI_DRAWER_drawScaledImageNearestNeighbor[] = {
757 &UI_DRAWING_drawScaledImageNearestNeighbor_0,
758 &UI_DRAWING_drawScaledImageNearestNeighbor_1,
759 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
760 &UI_DRAWING_drawScaledImageNearestNeighbor_2,
764 static const UI_DRAWING_drawScaledImageBilinear_t UI_DRAWER_drawScaledImageBilinear[] = {
765 &UI_DRAWING_drawScaledImageBilinear_0,
766 &UI_DRAWING_drawScaledImageBilinear_1,
767 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
768 &UI_DRAWING_drawScaledImageBilinear_2,
779 #if !defined(LLUI_GC_SUPPORTED_FORMATS) || (LLUI_GC_SUPPORTED_FORMATS <= 1)
787 int32_t LLUI_DISPLAY_IMPL_getDrawerIdentifier(jbyte image_format) {
788 return LLUI_DISPLAY_isDisplayFormat(image_format) ? 0 : -1 ;
792 uint32_t LLUI_DISPLAY_IMPL_getNewImageStrideInBytes(jbyte image_format, uint32_t width, uint32_t height,
793 uint32_t default_stride) {
795 return UI_DRAWING_getNewImageStrideInBytes(image_format, width, height, default_stride);
799 void LLUI_DISPLAY_IMPL_adjustNewImageCharacteristics(jbyte image_format, uint32_t width, uint32_t height,
800 uint32_t *data_size, uint32_t *data_alignment) {
802 UI_DRAWING_adjustNewImageCharacteristics(image_format, width, height, data_size, data_alignment);
806 void LLUI_DISPLAY_IMPL_initializeNewImage(MICROUI_Image *image) {
808 UI_DRAWING_initializeNewImage(image);
812 void LLUI_DISPLAY_IMPL_freeImageResources(MICROUI_Image *image) {
814 UI_DRAWING_freeImageResources(image);
829 int32_t LLUI_DISPLAY_IMPL_getDrawerIdentifier(jbyte image_format) {
832 if (LLUI_DISPLAY_isDisplayFormat(image_format)) {
834 }
else if (UI_DRAWING_is_drawer_1(image_format)) {
836 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
837 }
else if (UI_DRAWING_is_drawer_2(image_format)) {
866 uint32_t LLUI_DISPLAY_IMPL_getNewImageStrideInBytes(jbyte image_format, uint32_t width, uint32_t height,
867 uint32_t default_stride) {
868 int32_t drawer = LLUI_DISPLAY_IMPL_getDrawerIdentifier(image_format);
869 drawer = (drawer >= 0) ? drawer : 0;
870 return (*UI_DRAWER_getNewImageStrideInBytes[drawer])(image_format, width, height, default_stride);
875 void LLUI_DISPLAY_IMPL_adjustNewImageCharacteristics(jbyte image_format, uint32_t width, uint32_t height,
876 uint32_t *data_size, uint32_t *data_alignment) {
877 int32_t drawer = LLUI_DISPLAY_IMPL_getDrawerIdentifier(image_format);
878 drawer = (drawer >= 0) ? drawer : 0;
879 (*UI_DRAWER_adjustNewImageCharacteristics[drawer])(image_format, width, height, data_size, data_alignment);
884 void LLUI_DISPLAY_IMPL_initializeNewImage(MICROUI_Image *image) {
885 int32_t drawer = LLUI_DISPLAY_IMPL_getDrawerIdentifier(image->format);
886 drawer = (drawer >= 0) ? drawer : 0;
887 (*UI_DRAWER_initializeNewImage[drawer])(image);
892 void LLUI_DISPLAY_IMPL_freeImageResources(MICROUI_Image *image) {
893 int32_t drawer = LLUI_DISPLAY_IMPL_getDrawerIdentifier(image->format);
894 drawer = (drawer >= 0) ? drawer : 0;
895 (*UI_DRAWER_freeImageResources[drawer])(image);
906 BSP_DECLARE_WEAK_FCNT uint32_t UI_DRAWING_getNewImageStrideInBytes(jbyte image_format, uint32_t width, uint32_t height,
907 uint32_t default_stride) {
912 return default_stride;
916 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_adjustNewImageCharacteristics(jbyte image_format, uint32_t width, uint32_t height,
917 uint32_t *data_size, uint32_t *data_alignment) {
922 (void)data_alignment;
927 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_initializeNewImage(MICROUI_Image *image) {
933 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_freeImageResources(MICROUI_Image *image) {
944 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_writePixel(MICROUI_GraphicsContext *gc, jint x, jint y) {
945 return UI_DRAWING_SOFT_writePixel(gc, x, y);
949 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawLine(MICROUI_GraphicsContext *gc, jint startX, jint startY,
950 jint endX, jint endY) {
951 return UI_DRAWING_SOFT_drawLine(gc, startX, startY, endX, endY);
955 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawHorizontalLine(MICROUI_GraphicsContext *gc, jint x1,
957 return UI_DRAWING_SOFT_drawHorizontalLine(gc, x1, x2, y);
961 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawVerticalLine(MICROUI_GraphicsContext *gc, jint x, jint y1,
963 return UI_DRAWING_SOFT_drawVerticalLine(gc, x, y1, y2);
967 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1,
969 return UI_DRAWING_SOFT_drawRectangle(gc, x1, y1, x2, y2);
973 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_fillRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1,
975 return UI_DRAWING_SOFT_fillRectangle(gc, x1, y1, x2, y2);
979 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawRoundedRectangle(MICROUI_GraphicsContext *gc, jint x,
980 jint y, jint width, jint height,
981 jint cornerEllipseWidth,
982 jint cornerEllipseHeight) {
983 return UI_DRAWING_SOFT_drawRoundedRectangle(gc, x, y, width, height, cornerEllipseWidth, cornerEllipseHeight);
987 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_fillRoundedRectangle(MICROUI_GraphicsContext *gc, jint x,
988 jint y, jint width, jint height,
989 jint cornerEllipseWidth,
990 jint cornerEllipseHeight) {
991 return UI_DRAWING_SOFT_fillRoundedRectangle(gc, x, y, width, height, cornerEllipseWidth, cornerEllipseHeight);
995 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y,
996 jint diameter, jfloat startAngle,
998 return UI_DRAWING_SOFT_drawCircleArc(gc, x, y, diameter, startAngle, arcAngle);
1002 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y,
1003 jint width, jint height, jfloat startAngle,
1005 return UI_DRAWING_SOFT_drawEllipseArc(gc, x, y, width, height, startAngle, arcAngle);
1009 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_fillCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y,
1010 jint diameter, jfloat startAngle,
1012 return UI_DRAWING_SOFT_fillCircleArc(gc, x, y, diameter, startAngle, arcAngle);
1016 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_fillEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y,
1017 jint width, jint height, jfloat startAngle,
1019 return UI_DRAWING_SOFT_fillEllipseArc(gc, x, y, width, height, startAngle, arcAngle);
1023 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawEllipse(MICROUI_GraphicsContext *gc, jint x, jint y,
1024 jint width, jint height) {
1025 return UI_DRAWING_SOFT_drawEllipse(gc, x, y, width, height);
1029 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_fillEllipse(MICROUI_GraphicsContext *gc, jint x, jint y,
1030 jint width, jint height) {
1031 return UI_DRAWING_SOFT_fillEllipse(gc, x, y, width, height);
1035 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawCircle(MICROUI_GraphicsContext *gc, jint x, jint y,
1037 return UI_DRAWING_SOFT_drawCircle(gc, x, y, diameter);
1041 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_fillCircle(MICROUI_GraphicsContext *gc, jint x, jint y,
1043 return UI_DRAWING_SOFT_fillCircle(gc, x, y, diameter);
1047 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
1048 jint regionX, jint regionY, jint width, jint height,
1049 jint x, jint y, jint alpha) {
1050 #if !defined(LLUI_IMAGE_CUSTOM_FORMATS)
1051 return UI_DRAWING_SOFT_drawImage(gc, img, regionX, regionY, width, height, x, y, alpha);
1053 return UI_IMAGE_DRAWING_draw(gc, img, regionX, regionY, width, height, x, y, alpha);
1058 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_copyImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
1059 jint regionX, jint regionY, jint width, jint height,
1061 #if !defined(LLUI_IMAGE_CUSTOM_FORMATS)
1062 return UI_DRAWING_SOFT_copyImage(gc, img, regionX, regionY, width, height, x, y);
1064 return UI_IMAGE_DRAWING_copy(gc, img, regionX, regionY, width, height, x, y);
1069 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawRegion(MICROUI_GraphicsContext *gc, jint regionX,
1070 jint regionY, jint width, jint height, jint x,
1071 jint y, jint alpha) {
1072 #if !defined(LLUI_IMAGE_CUSTOM_FORMATS)
1073 return UI_DRAWING_SOFT_drawRegion(gc, regionX, regionY, width, height, x, y, alpha);
1075 return UI_IMAGE_DRAWING_drawRegion(gc, regionX, regionY, width, height, x, y, alpha);
1080 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickFadedPoint(MICROUI_GraphicsContext *gc, jint x, jint y,
1081 jint thickness, jint fade) {
1082 return DW_DRAWING_SOFT_drawThickFadedPoint(gc, x, y, thickness, fade);
1086 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickFadedLine(MICROUI_GraphicsContext *gc, jint startX,
1087 jint startY, jint endX, jint endY,
1088 jint thickness, jint fade,
1089 DRAWING_Cap startCap, DRAWING_Cap endCap) {
1090 return DW_DRAWING_SOFT_drawThickFadedLine(gc, startX, startY, endX, endY, thickness, fade, startCap, endCap);
1094 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickFadedCircle(MICROUI_GraphicsContext *gc, jint x,
1095 jint y, jint diameter, jint thickness,
1097 return DW_DRAWING_SOFT_drawThickFadedCircle(gc, x, y, diameter, thickness, fade);
1101 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickFadedCircleArc(MICROUI_GraphicsContext *gc, jint x,
1102 jint y, jint diameter,
1103 jfloat startAngle, jfloat arcAngle,
1104 jint thickness, jint fade,
1105 DRAWING_Cap start, DRAWING_Cap end) {
1106 return DW_DRAWING_SOFT_drawThickFadedCircleArc(gc, x, y, diameter, startAngle, arcAngle, thickness, fade, start,
1111 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickFadedEllipse(MICROUI_GraphicsContext *gc, jint x,
1112 jint y, jint width, jint height,
1113 jint thickness, jint fade) {
1114 return DW_DRAWING_SOFT_drawThickFadedEllipse(gc, x, y, width, height, thickness, fade);
1118 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickLine(MICROUI_GraphicsContext *gc, jint startX,
1119 jint startY, jint endX, jint endY,
1121 return DW_DRAWING_SOFT_drawThickLine(gc, startX, startY, endX, endY, thickness);
1125 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickCircle(MICROUI_GraphicsContext *gc, jint x, jint y,
1126 jint diameter, jint thickness) {
1127 return DW_DRAWING_SOFT_drawThickCircle(gc, x, y, diameter, thickness);
1131 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickEllipse(MICROUI_GraphicsContext *gc, jint x, jint y,
1132 jint width, jint height, jint thickness) {
1133 return DW_DRAWING_SOFT_drawThickEllipse(gc, x, y, width, height, thickness);
1137 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y,
1138 jint diameter, jfloat startAngle,
1139 jfloat arcAngle, jint thickness) {
1140 return DW_DRAWING_SOFT_drawThickCircleArc(gc, x, y, diameter, startAngle, arcAngle, thickness);
1144 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawFlippedImage(MICROUI_GraphicsContext *gc,
1145 MICROUI_Image *img, jint regionX, jint regionY,
1146 jint width, jint height, jint x, jint y,
1147 DRAWING_Flip transformation, jint alpha) {
1148 #if !defined(LLUI_IMAGE_CUSTOM_FORMATS)
1149 return DW_DRAWING_SOFT_drawFlippedImage(gc, img, regionX, regionY, width, height, x, y, transformation, alpha);
1151 return UI_IMAGE_DRAWING_drawFlipped(gc, img, regionX, regionY, width, height, x, y, transformation, alpha);
1156 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawRotatedImageNearestNeighbor(MICROUI_GraphicsContext *gc,
1157 MICROUI_Image *img, jint x,
1158 jint y, jint rotationX,
1159 jint rotationY, jfloat angle,
1161 #if !defined(LLUI_IMAGE_CUSTOM_FORMATS)
1162 return DW_DRAWING_SOFT_drawRotatedImageNearestNeighbor(gc, img, x, y, rotationX, rotationY, angle, alpha);
1164 return UI_IMAGE_DRAWING_drawRotatedNearestNeighbor(gc, img, x, y, rotationX, rotationY, angle, alpha);
1169 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawRotatedImageBilinear(MICROUI_GraphicsContext *gc,
1170 MICROUI_Image *img, jint x, jint y,
1171 jint rotationX, jint rotationY,
1172 jfloat angle, jint alpha) {
1173 #if !defined(LLUI_IMAGE_CUSTOM_FORMATS)
1174 return DW_DRAWING_SOFT_drawRotatedImageBilinear(gc, img, x, y, rotationX, rotationY, angle, alpha);
1176 return UI_IMAGE_DRAWING_drawRotatedBilinear(gc, img, x, y, rotationX, rotationY, angle, alpha);
1181 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawScaledImageNearestNeighbor(MICROUI_GraphicsContext *gc,
1182 MICROUI_Image *img, jint x,
1183 jint y, jfloat factorX,
1184 jfloat factorY, jint alpha) {
1185 #if !defined(LLUI_IMAGE_CUSTOM_FORMATS)
1186 return DW_DRAWING_SOFT_drawScaledImageNearestNeighbor(gc, img, x, y, factorX, factorY, alpha);
1188 return UI_IMAGE_DRAWING_drawScaledNearestNeighbor(gc, img, x, y, factorX, factorY, alpha);
1193 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawScaledImageBilinear(MICROUI_GraphicsContext *gc,
1194 MICROUI_Image *img, jint x, jint y,
1195 jfloat factorX, jfloat factorY,
1197 #if !defined(LLUI_IMAGE_CUSTOM_FORMATS)
1198 return DW_DRAWING_SOFT_drawScaledImageBilinear(gc, img, x, y, factorX, factorY, alpha);
1200 return UI_IMAGE_DRAWING_drawScaledBilinear(gc, img, x, y, factorX, factorY, alpha);
1204 #if defined(LLUI_GC_SUPPORTED_FORMATS) && (LLUI_GC_SUPPORTED_FORMATS > 1)
1217 DRAWING_Status UI_DRAWING_writePixel(MICROUI_GraphicsContext *gc, jint x, jint y) {
1218 return (*UI_DRAWER_writePixel[gc->drawer])(gc, x, y);
1222 DRAWING_Status UI_DRAWING_drawLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX, jint endY) {
1223 return (*UI_DRAWER_drawLine[gc->drawer])(gc, startX, startY, endX, endY);
1227 DRAWING_Status UI_DRAWING_drawHorizontalLine(MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y) {
1228 return (*UI_DRAWER_drawHorizontalLine[gc->drawer])(gc, x1, x2, y);
1232 DRAWING_Status UI_DRAWING_drawVerticalLine(MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2) {
1233 return (*UI_DRAWER_drawVerticalLine[gc->drawer])(gc, x, y1, y2);
1237 DRAWING_Status UI_DRAWING_drawRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2) {
1238 return (*UI_DRAWER_drawRectangle[gc->drawer])(gc, x1, y1, x2, y2);
1242 DRAWING_Status UI_DRAWING_fillRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2) {
1243 return (*UI_DRAWER_fillRectangle[gc->drawer])(gc, x1, y1, x2, y2);
1247 DRAWING_Status UI_DRAWING_drawRoundedRectangle(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
1248 jint cornerEllipseWidth, jint cornerEllipseHeight) {
1249 return (*UI_DRAWER_drawRoundedRectangle[gc->drawer])(gc, x, y, width, height, cornerEllipseWidth,
1250 cornerEllipseHeight);
1254 DRAWING_Status UI_DRAWING_fillRoundedRectangle(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
1255 jint cornerEllipseWidth, jint cornerEllipseHeight) {
1256 return (*UI_DRAWER_fillRoundedRectangle[gc->drawer])(gc, x, y, width, height, cornerEllipseWidth,
1257 cornerEllipseHeight);
1261 DRAWING_Status UI_DRAWING_drawCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter, jfloat startAngle,
1263 return (*UI_DRAWER_drawCircleArc[gc->drawer])(gc, x, y, diameter, startAngle, arcAngle);
1267 DRAWING_Status UI_DRAWING_drawEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
1268 jfloat startAngle, jfloat arcAngle) {
1269 return (*UI_DRAWER_drawEllipseArc[gc->drawer])(gc, x, y, width, height, startAngle, arcAngle);
1273 DRAWING_Status UI_DRAWING_fillCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter, jfloat startAngle,
1275 return (*UI_DRAWER_fillCircleArc[gc->drawer])(gc, x, y, diameter, startAngle, arcAngle);
1279 DRAWING_Status UI_DRAWING_fillEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
1280 jfloat startAngle, jfloat arcAngle) {
1281 return (*UI_DRAWER_fillEllipseArc[gc->drawer])(gc, x, y, width, height, startAngle, arcAngle);
1285 DRAWING_Status UI_DRAWING_drawEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height) {
1286 return (*UI_DRAWER_drawEllipse[gc->drawer])(gc, x, y, width, height);
1290 DRAWING_Status UI_DRAWING_fillEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height) {
1291 return (*UI_DRAWER_fillEllipse[gc->drawer])(gc, x, y, width, height);
1295 DRAWING_Status UI_DRAWING_drawCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter) {
1296 return (*UI_DRAWER_drawCircle[gc->drawer])(gc, x, y, diameter);
1300 DRAWING_Status UI_DRAWING_fillCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter) {
1301 return (*UI_DRAWER_fillCircle[gc->drawer])(gc, x, y, diameter);
1305 DRAWING_Status UI_DRAWING_drawImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY,
1306 jint width, jint height, jint x, jint y, jint alpha) {
1307 return (*UI_DRAWER_drawImage[gc->drawer])(gc, img, regionX, regionY, width, height, x, y, alpha);
1311 DRAWING_Status UI_DRAWING_copyImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY,
1312 jint width, jint height, jint x, jint y) {
1313 return (*UI_DRAWER_copyImage[gc->drawer])(gc, img, regionX, regionY, width, height, x, y);
1317 DRAWING_Status UI_DRAWING_drawRegion(MICROUI_GraphicsContext *gc, jint regionX, jint regionY, jint width, jint height,
1318 jint x, jint y, jint alpha) {
1319 return (*UI_DRAWER_drawRegion[gc->drawer])(gc, regionX, regionY, width, height, x, y, alpha);
1323 DRAWING_Status UI_DRAWING_drawThickFadedPoint(MICROUI_GraphicsContext *gc, jint x, jint y, jint thickness, jint fade) {
1324 return (*UI_DRAWER_drawThickFadedPoint[gc->drawer])(gc, x, y, thickness, fade);
1328 DRAWING_Status UI_DRAWING_drawThickFadedLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
1329 jint endY, jint thickness, jint fade, DRAWING_Cap startCap,
1330 DRAWING_Cap endCap) {
1331 return (*UI_DRAWER_drawThickFadedLine[gc->drawer])(gc, startX, startY, endX, endY, thickness, fade, startCap,
1336 DRAWING_Status UI_DRAWING_drawThickFadedCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
1337 jint thickness, jint fade) {
1338 return (*UI_DRAWER_drawThickFadedCircle[gc->drawer])(gc, x, y, diameter, thickness, fade);
1342 DRAWING_Status UI_DRAWING_drawThickFadedCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
1343 jfloat startAngle, jfloat arcAngle, jint thickness, jint fade,
1344 DRAWING_Cap start, DRAWING_Cap end) {
1345 return (*UI_DRAWER_drawThickFadedCircleArc[gc->drawer])(gc, x, y, diameter, startAngle, arcAngle, thickness, fade,
1350 DRAWING_Status UI_DRAWING_drawThickFadedEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
1351 jint thickness, jint fade) {
1352 return (*UI_DRAWER_drawThickFadedEllipse[gc->drawer])(gc, x, y, width, height, thickness, fade);
1356 DRAWING_Status UI_DRAWING_drawThickLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX, jint endY,
1358 return (*UI_DRAWER_drawThickLine[gc->drawer])(gc, startX, startY, endX, endY, thickness);
1362 DRAWING_Status UI_DRAWING_drawThickCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter, jint thickness) {
1363 return (*UI_DRAWER_drawThickCircle[gc->drawer])(gc, x, y, diameter, thickness);
1367 DRAWING_Status UI_DRAWING_drawThickEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
1369 return (*UI_DRAWER_drawThickEllipse[gc->drawer])(gc, x, y, width, height, thickness);
1373 DRAWING_Status UI_DRAWING_drawThickCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
1374 jfloat startAngle, jfloat arcAngle, jint thickness) {
1375 return (*UI_DRAWER_drawThickCircleArc[gc->drawer])(gc, x, y, diameter, startAngle, arcAngle, thickness);
1379 DRAWING_Status UI_DRAWING_drawFlippedImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY,
1380 jint width, jint height, jint x, jint y, DRAWING_Flip transformation,
1382 return (*UI_DRAWER_drawFlippedImage[gc->drawer])(gc, img, regionX, regionY, width, height, x, y, transformation,
1387 DRAWING_Status UI_DRAWING_drawRotatedImageNearestNeighbor(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
1388 jint y, jint rotationX, jint rotationY, jfloat angle,
1390 return (*UI_DRAWER_drawRotatedImageNearestNeighbor[gc->drawer])(gc, img, x, y, rotationX, rotationY, angle, alpha);
1394 DRAWING_Status UI_DRAWING_drawRotatedImageBilinear(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y,
1395 jint rotationX, jint rotationY, jfloat angle, jint alpha) {
1396 return (*UI_DRAWER_drawRotatedImageBilinear[gc->drawer])(gc, img, x, y, rotationX, rotationY, angle, alpha);
1400 DRAWING_Status UI_DRAWING_drawScaledImageNearestNeighbor(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
1401 jint y, jfloat factorX, jfloat factorY, jint alpha) {
1402 return (*UI_DRAWER_drawScaledImageNearestNeighbor[gc->drawer])(gc, img, x, y, factorX, factorY, alpha);
1406 DRAWING_Status UI_DRAWING_drawScaledImageBilinear(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y,
1407 jfloat factorX, jfloat factorY, jint alpha) {
1408 return (*UI_DRAWER_drawScaledImageBilinear[gc->drawer])(gc, img, x, y, factorX, factorY, alpha);
1424 BSP_DECLARE_WEAK_FCNT
bool UI_DRAWING_is_drawer_1(jbyte image_format) {
1431 BSP_DECLARE_WEAK_FCNT uint32_t UI_DRAWING_getNewImageStrideInBytes_1(jbyte image_format, uint32_t width,
1432 uint32_t height, uint32_t default_stride) {
1438 return default_stride;
1442 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_adjustNewImageCharacteristics_1(jbyte image_format, uint32_t width,
1443 uint32_t height, uint32_t *data_size,
1444 uint32_t *data_alignment) {
1449 (void)data_alignment;
1455 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_initializeNewImage_1(MICROUI_Image *image) {
1461 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_freeImageResources_1(MICROUI_Image *image) {
1467 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_writePixel_1(MICROUI_GraphicsContext *gc, jint x, jint y) {
1468 return UI_DRAWING_STUB_writePixel(gc, x, y);
1472 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawLine_1(MICROUI_GraphicsContext *gc, jint startX, jint startY,
1473 jint endX, jint endY) {
1474 return UI_DRAWING_STUB_drawLine(gc, startX, startY, endX, endY);
1478 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawHorizontalLine_1(MICROUI_GraphicsContext *gc, jint x1, jint x2,
1480 return UI_DRAWING_STUB_drawHorizontalLine(gc, x1, x2, y);
1484 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawVerticalLine_1(MICROUI_GraphicsContext *gc, jint x, jint y1,
1486 return UI_DRAWING_STUB_drawVerticalLine(gc, x, y1, y2);
1490 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRectangle_1(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2,
1492 return UI_DRAWING_STUB_drawRectangle(gc, x1, y1, x2, y2);
1496 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillRectangle_1(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2,
1498 return UI_DRAWING_STUB_fillRectangle(gc, x1, y1, x2, y2);
1502 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRoundedRectangle_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1503 jint width, jint height, jint cornerEllipseWidth,
1504 jint cornerEllipseHeight) {
1505 return UI_DRAWING_STUB_drawRoundedRectangle(gc, x, y, width, height, cornerEllipseWidth, cornerEllipseHeight);
1509 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillRoundedRectangle_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1510 jint width, jint height, jint cornerEllipseWidth,
1511 jint cornerEllipseHeight) {
1512 return UI_DRAWING_STUB_fillRoundedRectangle(gc, x, y, width, height, cornerEllipseWidth, cornerEllipseHeight);
1516 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1517 jint diameter, jfloat startAngle, jfloat arcAngle) {
1518 return UI_DRAWING_STUB_drawCircleArc(gc, x, y, diameter, startAngle, arcAngle);
1522 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawEllipseArc_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1523 jint width, jint height, jfloat startAngle,
1525 return UI_DRAWING_STUB_drawEllipseArc(gc, x, y, width, height, startAngle, arcAngle);
1529 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1530 jint diameter, jfloat startAngle, jfloat arcAngle) {
1531 return UI_DRAWING_STUB_fillCircleArc(gc, x, y, diameter, startAngle, arcAngle);
1535 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillEllipseArc_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1536 jint width, jint height, jfloat startAngle,
1538 return UI_DRAWING_STUB_fillEllipseArc(gc, x, y, width, height, startAngle, arcAngle);
1542 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
1544 return UI_DRAWING_STUB_drawEllipse(gc, x, y, width, height);
1548 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
1550 return UI_DRAWING_STUB_fillEllipse(gc, x, y, width, height);
1554 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1556 return UI_DRAWING_STUB_drawCircle(gc, x, y, diameter);
1560 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1562 return UI_DRAWING_STUB_fillCircle(gc, x, y, diameter);
1566 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawImage_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
1567 jint regionX, jint regionY, jint width, jint height, jint x,
1568 jint y, jint alpha) {
1569 return UI_IMAGE_DRAWING_draw(gc, img, regionX, regionY, width, height, x, y, alpha);
1573 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_copyImage_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
1574 jint regionX, jint regionY, jint width, jint height, jint x,
1576 return UI_IMAGE_DRAWING_copy(gc, img, regionX, regionY, width, height, x, y);
1580 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRegion_1(MICROUI_GraphicsContext *gc, jint regionX, jint regionY,
1581 jint width, jint height, jint x, jint y, jint alpha) {
1582 return UI_IMAGE_DRAWING_drawRegion(gc, regionX, regionY, width, height, x, y, alpha);
1586 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedPoint_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1587 jint thickness, jint fade) {
1588 return UI_DRAWING_STUB_drawThickFadedPoint(gc, x, y, thickness, fade);
1592 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedLine_1(MICROUI_GraphicsContext *gc, jint startX,
1593 jint startY, jint endX, jint endY, jint thickness,
1594 jint fade, DRAWING_Cap startCap,
1595 DRAWING_Cap endCap) {
1596 return UI_DRAWING_STUB_drawThickFadedLine(gc, startX, startY, endX, endY, thickness, fade, startCap, endCap);
1600 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1601 jint diameter, jint thickness, jint fade) {
1602 return UI_DRAWING_STUB_drawThickFadedCircle(gc, x, y, diameter, thickness, fade);
1606 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1607 jint diameter, jfloat startAngle,
1608 jfloat arcAngle, jint thickness, jint fade,
1609 DRAWING_Cap start, DRAWING_Cap end) {
1610 return UI_DRAWING_STUB_drawThickFadedCircleArc(gc, x, y, diameter, startAngle, arcAngle, thickness, fade, start,
1615 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1616 jint width, jint height, jint thickness,
1618 return UI_DRAWING_STUB_drawThickFadedEllipse(gc, x, y, width, height, thickness, fade);
1622 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickLine_1(MICROUI_GraphicsContext *gc, jint startX, jint startY,
1623 jint endX, jint endY, jint thickness) {
1624 return UI_DRAWING_STUB_drawThickLine(gc, startX, startY, endX, endY, thickness);
1628 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1629 jint diameter, jint thickness) {
1630 return UI_DRAWING_STUB_drawThickCircle(gc, x, y, diameter, thickness);
1634 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1635 jint width, jint height, jint thickness) {
1636 return UI_DRAWING_STUB_drawThickEllipse(gc, x, y, width, height, thickness);
1640 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1641 jint diameter, jfloat startAngle, jfloat arcAngle,
1643 return UI_DRAWING_STUB_drawThickCircleArc(gc, x, y, diameter, startAngle, arcAngle, thickness);
1647 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawFlippedImage_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
1648 jint regionX, jint regionY, jint width, jint height,
1649 jint x, jint y, DRAWING_Flip transformation,
1651 return UI_IMAGE_DRAWING_drawFlipped(gc, img, regionX, regionY, width, height, x, y, transformation, alpha);
1655 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRotatedImageNearestNeighbor_1(MICROUI_GraphicsContext *gc,
1656 MICROUI_Image *img, jint x, jint y,
1657 jint rotationX, jint rotationY,
1658 jfloat angle, jint alpha) {
1659 return UI_IMAGE_DRAWING_drawRotatedNearestNeighbor(gc, img, x, y, rotationX, rotationY, angle, alpha);
1663 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRotatedImageBilinear_1(MICROUI_GraphicsContext *gc,
1664 MICROUI_Image *img, jint x, jint y,
1665 jint rotationX, jint rotationY, jfloat angle,
1667 return UI_IMAGE_DRAWING_drawRotatedBilinear(gc, img, x, y, rotationX, rotationY, angle, alpha);
1671 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawScaledImageNearestNeighbor_1(MICROUI_GraphicsContext *gc,
1672 MICROUI_Image *img, jint x, jint y,
1673 jfloat factorX, jfloat factorY,
1675 return UI_IMAGE_DRAWING_drawScaledNearestNeighbor(gc, img, x, y, factorX, factorY, alpha);
1679 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawScaledImageBilinear_1(MICROUI_GraphicsContext *gc,
1680 MICROUI_Image *img, jint x, jint y,
1681 jfloat factorX, jfloat factorY, jint alpha) {
1682 return UI_IMAGE_DRAWING_drawScaledBilinear(gc, img, x, y, factorX, factorY, alpha);
1685 #if (LLUI_GC_SUPPORTED_FORMATS > 2)
1700 BSP_DECLARE_WEAK_FCNT
bool UI_DRAWING_is_drawer_2(jbyte image_format) {
1707 BSP_DECLARE_WEAK_FCNT uint32_t UI_DRAWING_getNewImageStrideInBytes_2(jbyte image_format, uint32_t width,
1708 uint32_t height, uint32_t default_stride) {
1714 return default_stride;
1718 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_adjustNewImageCharacteristics_2(jbyte image_format, uint32_t width,
1719 uint32_t height, uint32_t *data_size,
1720 uint32_t *data_alignment) {
1725 (void)data_alignment;
1731 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_initializeNewImage_2(MICROUI_Image *image) {
1737 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_freeImageResources_2(MICROUI_Image *image) {
1743 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_writePixel_2(MICROUI_GraphicsContext *gc, jint x, jint y) {
1744 return UI_DRAWING_STUB_writePixel(gc, x, y);
1748 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawLine_2(MICROUI_GraphicsContext *gc, jint startX, jint startY,
1749 jint endX, jint endY) {
1750 return UI_DRAWING_STUB_drawLine(gc, startX, startY, endX, endY);
1754 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawHorizontalLine_2(MICROUI_GraphicsContext *gc, jint x1, jint x2,
1756 return UI_DRAWING_STUB_drawHorizontalLine(gc, x1, x2, y);
1760 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawVerticalLine_2(MICROUI_GraphicsContext *gc, jint x, jint y1,
1762 return UI_DRAWING_STUB_drawVerticalLine(gc, x, y1, y2);
1766 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRectangle_2(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2,
1768 return UI_DRAWING_STUB_drawRectangle(gc, x1, y1, x2, y2);
1772 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillRectangle_2(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2,
1774 return UI_DRAWING_STUB_fillRectangle(gc, x1, y1, x2, y2);
1778 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRoundedRectangle_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1779 jint width, jint height, jint cornerEllipseWidth,
1780 jint cornerEllipseHeight) {
1781 return UI_DRAWING_STUB_drawRoundedRectangle(gc, x, y, width, height, cornerEllipseWidth, cornerEllipseHeight);
1785 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillRoundedRectangle_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1786 jint width, jint height, jint cornerEllipseWidth,
1787 jint cornerEllipseHeight) {
1788 return UI_DRAWING_STUB_fillRoundedRectangle(gc, x, y, width, height, cornerEllipseWidth, cornerEllipseHeight);
1792 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1793 jint diameter, jfloat startAngle, jfloat arcAngle) {
1794 return UI_DRAWING_STUB_drawCircleArc(gc, x, y, diameter, startAngle, arcAngle);
1798 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawEllipseArc_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1799 jint width, jint height, jfloat startAngle,
1801 return UI_DRAWING_STUB_drawEllipseArc(gc, x, y, width, height, startAngle, arcAngle);
1805 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1806 jint diameter, jfloat startAngle, jfloat arcAngle) {
1807 return UI_DRAWING_STUB_fillCircleArc(gc, x, y, diameter, startAngle, arcAngle);
1811 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillEllipseArc_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1812 jint width, jint height, jfloat startAngle,
1814 return UI_DRAWING_STUB_fillEllipseArc(gc, x, y, width, height, startAngle, arcAngle);
1818 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
1820 return UI_DRAWING_STUB_drawEllipse(gc, x, y, width, height);
1824 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
1826 return UI_DRAWING_STUB_fillEllipse(gc, x, y, width, height);
1830 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1832 return UI_DRAWING_STUB_drawCircle(gc, x, y, diameter);
1836 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1838 return UI_DRAWING_STUB_fillCircle(gc, x, y, diameter);
1842 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawImage_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
1843 jint regionX, jint regionY, jint width, jint height, jint x,
1844 jint y, jint alpha) {
1845 return UI_IMAGE_DRAWING_draw(gc, img, regionX, regionY, width, height, x, y, alpha);
1849 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_copyImage_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
1850 jint regionX, jint regionY, jint width, jint height, jint x,
1852 return UI_IMAGE_DRAWING_copy(gc, img, regionX, regionY, width, height, x, y);
1856 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRegion_2(MICROUI_GraphicsContext *gc, jint regionX, jint regionY,
1857 jint width, jint height, jint x, jint y, jint alpha) {
1858 return UI_IMAGE_DRAWING_drawRegion(gc, regionX, regionY, width, height, x, y, alpha);
1862 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedPoint_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1863 jint thickness, jint fade) {
1864 return UI_DRAWING_STUB_drawThickFadedPoint(gc, x, y, thickness, fade);
1868 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedLine_2(MICROUI_GraphicsContext *gc, jint startX,
1869 jint startY, jint endX, jint endY, jint thickness,
1870 jint fade, DRAWING_Cap startCap,
1871 DRAWING_Cap endCap) {
1872 return UI_DRAWING_STUB_drawThickFadedLine(gc, startX, startY, endX, endY, thickness, fade, startCap, endCap);
1876 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1877 jint diameter, jint thickness, jint fade) {
1878 return UI_DRAWING_STUB_drawThickFadedCircle(gc, x, y, diameter, thickness, fade);
1882 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1883 jint diameter, jfloat startAngle,
1884 jfloat arcAngle, jint thickness, jint fade,
1885 DRAWING_Cap start, DRAWING_Cap end) {
1886 return UI_DRAWING_STUB_drawThickFadedCircleArc(gc, x, y, diameter, startAngle, arcAngle, thickness, fade, start,
1891 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1892 jint width, jint height, jint thickness,
1894 return UI_DRAWING_STUB_drawThickFadedEllipse(gc, x, y, width, height, thickness, fade);
1898 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickLine_2(MICROUI_GraphicsContext *gc, jint startX, jint startY,
1899 jint endX, jint endY, jint thickness) {
1900 return UI_DRAWING_STUB_drawThickLine(gc, startX, startY, endX, endY, thickness);
1904 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1905 jint diameter, jint thickness) {
1906 return UI_DRAWING_STUB_drawThickCircle(gc, x, y, diameter, thickness);
1910 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1911 jint width, jint height, jint thickness) {
1912 return UI_DRAWING_STUB_drawThickEllipse(gc, x, y, width, height, thickness);
1916 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y,
1917 jint diameter, jfloat startAngle, jfloat arcAngle,
1919 return UI_DRAWING_STUB_drawThickCircleArc(gc, x, y, diameter, startAngle, arcAngle, thickness);
1923 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawFlippedImage_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
1924 jint regionX, jint regionY, jint width, jint height,
1925 jint x, jint y, DRAWING_Flip transformation,
1927 return UI_IMAGE_DRAWING_drawFlipped(gc, img, regionX, regionY, width, height, x, y, transformation, alpha);
1931 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRotatedImageNearestNeighbor_2(MICROUI_GraphicsContext *gc,
1932 MICROUI_Image *img, jint x, jint y,
1933 jint rotationX, jint rotationY,
1934 jfloat angle, jint alpha) {
1935 return UI_IMAGE_DRAWING_drawRotatedNearestNeighbor(gc, img, x, y, rotationX, rotationY, angle, alpha);
1939 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRotatedImageBilinear_2(MICROUI_GraphicsContext *gc,
1940 MICROUI_Image *img, jint x, jint y,
1941 jint rotationX, jint rotationY, jfloat angle,
1943 return UI_IMAGE_DRAWING_drawRotatedBilinear(gc, img, x, y, rotationX, rotationY, angle, alpha);
1947 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawScaledImageNearestNeighbor_2(MICROUI_GraphicsContext *gc,
1948 MICROUI_Image *img, jint x, jint y,
1949 jfloat factorX, jfloat factorY,
1951 return UI_IMAGE_DRAWING_drawScaledNearestNeighbor(gc, img, x, y, factorX, factorY, alpha);
1955 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawScaledImageBilinear_2(MICROUI_GraphicsContext *gc,
1956 MICROUI_Image *img, jint x, jint y,
1957 jfloat factorX, jfloat factorY, jint alpha) {
1958 return UI_IMAGE_DRAWING_drawScaledBilinear(gc, img, x, y, factorX, factorY, alpha);