57 #include <LLUI_DISPLAY.h>
59 #include "ui_drawing.h"
60 #include "ui_drawing_stub.h"
61 #include "ui_drawing_soft.h"
62 #include "dw_drawing_soft.h"
63 #include "ui_image_drawing.h"
64 #include "ui_font_drawing.h"
72 #if !defined(UI_GC_SUPPORTED_FORMATS) || (UI_GC_SUPPORTED_FORMATS <= 1)
80 #define UI_DRAWING_DEFAULT_writePixel UI_DRAWING_writePixel
81 #define UI_DRAWING_DEFAULT_drawLine UI_DRAWING_drawLine
82 #define UI_DRAWING_DEFAULT_drawHorizontalLine UI_DRAWING_drawHorizontalLine
83 #define UI_DRAWING_DEFAULT_drawVerticalLine UI_DRAWING_drawVerticalLine
84 #define UI_DRAWING_DEFAULT_drawRectangle UI_DRAWING_drawRectangle
85 #define UI_DRAWING_DEFAULT_fillRectangle UI_DRAWING_fillRectangle
86 #define UI_DRAWING_DEFAULT_drawRoundedRectangle UI_DRAWING_drawRoundedRectangle
87 #define UI_DRAWING_DEFAULT_fillRoundedRectangle UI_DRAWING_fillRoundedRectangle
88 #define UI_DRAWING_DEFAULT_drawCircleArc UI_DRAWING_drawCircleArc
89 #define UI_DRAWING_DEFAULT_drawEllipseArc UI_DRAWING_drawEllipseArc
90 #define UI_DRAWING_DEFAULT_fillCircleArc UI_DRAWING_fillCircleArc
91 #define UI_DRAWING_DEFAULT_fillEllipseArc UI_DRAWING_fillEllipseArc
92 #define UI_DRAWING_DEFAULT_drawEllipse UI_DRAWING_drawEllipse
93 #define UI_DRAWING_DEFAULT_fillEllipse UI_DRAWING_fillEllipse
94 #define UI_DRAWING_DEFAULT_drawCircle UI_DRAWING_drawCircle
95 #define UI_DRAWING_DEFAULT_fillCircle UI_DRAWING_fillCircle
96 #define UI_DRAWING_DEFAULT_drawString UI_DRAWING_drawString
97 #define UI_DRAWING_DEFAULT_drawRenderableString UI_DRAWING_drawRenderableString
98 #define UI_DRAWING_DEFAULT_drawImage UI_DRAWING_drawImage
99 #define UI_DRAWING_DEFAULT_copyImage UI_DRAWING_copyImage
100 #define UI_DRAWING_DEFAULT_drawRegion UI_DRAWING_drawRegion
102 #define UI_DRAWING_DEFAULT_drawThickFadedPoint UI_DRAWING_drawThickFadedPoint
103 #define UI_DRAWING_DEFAULT_drawThickFadedLine UI_DRAWING_drawThickFadedLine
104 #define UI_DRAWING_DEFAULT_drawThickFadedCircle UI_DRAWING_drawThickFadedCircle
105 #define UI_DRAWING_DEFAULT_drawThickFadedCircleArc UI_DRAWING_drawThickFadedCircleArc
106 #define UI_DRAWING_DEFAULT_drawThickFadedEllipse UI_DRAWING_drawThickFadedEllipse
107 #define UI_DRAWING_DEFAULT_drawThickLine UI_DRAWING_drawThickLine
108 #define UI_DRAWING_DEFAULT_drawThickCircle UI_DRAWING_drawThickCircle
109 #define UI_DRAWING_DEFAULT_drawThickEllipse UI_DRAWING_drawThickEllipse
110 #define UI_DRAWING_DEFAULT_drawThickCircleArc UI_DRAWING_drawThickCircleArc
111 #define UI_DRAWING_DEFAULT_drawFlippedImage UI_DRAWING_drawFlippedImage
112 #define UI_DRAWING_DEFAULT_drawRotatedImageNearestNeighbor UI_DRAWING_drawRotatedImageNearestNeighbor
113 #define UI_DRAWING_DEFAULT_drawRotatedImageBilinear UI_DRAWING_drawRotatedImageBilinear
114 #define UI_DRAWING_DEFAULT_drawScaledImageNearestNeighbor UI_DRAWING_drawScaledImageNearestNeighbor
115 #define UI_DRAWING_DEFAULT_drawScaledImageBilinear UI_DRAWING_drawScaledImageBilinear
116 #define UI_DRAWING_DEFAULT_drawScaledStringBilinear UI_DRAWING_drawScaledStringBilinear
117 #define UI_DRAWING_DEFAULT_drawScaledRenderableStringBilinear UI_DRAWING_drawScaledRenderableStringBilinear
118 #define UI_DRAWING_DEFAULT_drawCharWithRotationBilinear UI_DRAWING_drawCharWithRotationBilinear
119 #define UI_DRAWING_DEFAULT_drawCharWithRotationNearestNeighbor UI_DRAWING_drawCharWithRotationNearestNeighbor
129 #define UI_DRAWING_DEFAULT_writePixel UI_DRAWING_writePixel_0
130 #define UI_DRAWING_DEFAULT_drawLine UI_DRAWING_drawLine_0
131 #define UI_DRAWING_DEFAULT_drawHorizontalLine UI_DRAWING_drawHorizontalLine_0
132 #define UI_DRAWING_DEFAULT_drawVerticalLine UI_DRAWING_drawVerticalLine_0
133 #define UI_DRAWING_DEFAULT_drawRectangle UI_DRAWING_drawRectangle_0
134 #define UI_DRAWING_DEFAULT_fillRectangle UI_DRAWING_fillRectangle_0
135 #define UI_DRAWING_DEFAULT_drawRoundedRectangle UI_DRAWING_drawRoundedRectangle_0
136 #define UI_DRAWING_DEFAULT_fillRoundedRectangle UI_DRAWING_fillRoundedRectangle_0
137 #define UI_DRAWING_DEFAULT_drawCircleArc UI_DRAWING_drawCircleArc_0
138 #define UI_DRAWING_DEFAULT_drawEllipseArc UI_DRAWING_drawEllipseArc_0
139 #define UI_DRAWING_DEFAULT_fillCircleArc UI_DRAWING_fillCircleArc_0
140 #define UI_DRAWING_DEFAULT_fillEllipseArc UI_DRAWING_fillEllipseArc_0
141 #define UI_DRAWING_DEFAULT_drawEllipse UI_DRAWING_drawEllipse_0
142 #define UI_DRAWING_DEFAULT_fillEllipse UI_DRAWING_fillEllipse_0
143 #define UI_DRAWING_DEFAULT_drawCircle UI_DRAWING_drawCircle_0
144 #define UI_DRAWING_DEFAULT_fillCircle UI_DRAWING_fillCircle_0
145 #define UI_DRAWING_DEFAULT_drawString UI_DRAWING_drawString_0
146 #define UI_DRAWING_DEFAULT_drawRenderableString UI_DRAWING_drawRenderableString_0
147 #define UI_DRAWING_DEFAULT_drawImage UI_DRAWING_drawImage_0
148 #define UI_DRAWING_DEFAULT_copyImage UI_DRAWING_copyImage_0
149 #define UI_DRAWING_DEFAULT_drawRegion UI_DRAWING_drawRegion_0
151 #define UI_DRAWING_DEFAULT_drawThickFadedPoint UI_DRAWING_drawThickFadedPoint_0
152 #define UI_DRAWING_DEFAULT_drawThickFadedLine UI_DRAWING_drawThickFadedLine_0
153 #define UI_DRAWING_DEFAULT_drawThickFadedCircle UI_DRAWING_drawThickFadedCircle_0
154 #define UI_DRAWING_DEFAULT_drawThickFadedCircleArc UI_DRAWING_drawThickFadedCircleArc_0
155 #define UI_DRAWING_DEFAULT_drawThickFadedEllipse UI_DRAWING_drawThickFadedEllipse_0
156 #define UI_DRAWING_DEFAULT_drawThickLine UI_DRAWING_drawThickLine_0
157 #define UI_DRAWING_DEFAULT_drawThickCircle UI_DRAWING_drawThickCircle_0
158 #define UI_DRAWING_DEFAULT_drawThickEllipse UI_DRAWING_drawThickEllipse_0
159 #define UI_DRAWING_DEFAULT_drawThickCircleArc UI_DRAWING_drawThickCircleArc_0
160 #define UI_DRAWING_DEFAULT_drawFlippedImage UI_DRAWING_drawFlippedImage_0
161 #define UI_DRAWING_DEFAULT_drawRotatedImageNearestNeighbor UI_DRAWING_drawRotatedImageNearestNeighbor_0
162 #define UI_DRAWING_DEFAULT_drawRotatedImageBilinear UI_DRAWING_drawRotatedImageBilinear_0
163 #define UI_DRAWING_DEFAULT_drawScaledImageNearestNeighbor UI_DRAWING_drawScaledImageNearestNeighbor_0
164 #define UI_DRAWING_DEFAULT_drawScaledImageBilinear UI_DRAWING_drawScaledImageBilinear_0
165 #define UI_DRAWING_DEFAULT_drawScaledStringBilinear UI_DRAWING_drawScaledStringBilinear_0
166 #define UI_DRAWING_DEFAULT_drawScaledRenderableStringBilinear UI_DRAWING_drawScaledRenderableStringBilinear_0
167 #define UI_DRAWING_DEFAULT_drawCharWithRotationBilinear UI_DRAWING_drawCharWithRotationBilinear_0
168 #define UI_DRAWING_DEFAULT_drawCharWithRotationNearestNeighbor UI_DRAWING_drawCharWithRotationNearestNeighbor_0
176 #if defined(UI_GC_SUPPORTED_FORMATS) && (UI_GC_SUPPORTED_FORMATS > 1)
185 #if (UI_GC_SUPPORTED_FORMATS > 3)
186 #error "Increase the number of following functions and update the next tables"
189 extern DRAWING_Status UI_DRAWING_writePixel_0(MICROUI_GraphicsContext *gc, jint x, jint y);
190 extern DRAWING_Status UI_DRAWING_drawLine_0(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
192 extern DRAWING_Status UI_DRAWING_drawHorizontalLine_0(MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y);
193 extern DRAWING_Status UI_DRAWING_drawVerticalLine_0(MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2);
194 extern DRAWING_Status UI_DRAWING_drawRectangle_0(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
195 extern DRAWING_Status UI_DRAWING_fillRectangle_0(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
196 extern DRAWING_Status UI_DRAWING_drawRoundedRectangle_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
197 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight);
198 extern DRAWING_Status UI_DRAWING_fillRoundedRectangle_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
199 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight);
200 extern DRAWING_Status UI_DRAWING_drawCircleArc_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
201 jfloat startAngle, jfloat arcAngle);
202 extern DRAWING_Status UI_DRAWING_drawEllipseArc_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
203 jfloat startAngle, jfloat arcAngle);
204 extern DRAWING_Status UI_DRAWING_fillCircleArc_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
205 jfloat startAngle, jfloat arcAngle);
206 extern DRAWING_Status UI_DRAWING_fillEllipseArc_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
207 jfloat startAngle, jfloat arcAngle);
208 extern DRAWING_Status UI_DRAWING_drawEllipse_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height);
209 extern DRAWING_Status UI_DRAWING_fillEllipse_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height);
210 extern DRAWING_Status UI_DRAWING_drawCircle_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
211 extern DRAWING_Status UI_DRAWING_fillCircle_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
212 extern DRAWING_Status UI_DRAWING_drawString_0(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
213 MICROUI_Font *font, jint x, jint y);
214 extern DRAWING_Status UI_DRAWING_drawRenderableString_0(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
215 MICROUI_Font *font, jint width,
216 MICROUI_RenderableString *renderableString, jint x, jint y);
217 extern DRAWING_Status UI_DRAWING_drawImage_0(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
218 jint regionY, jint width, jint height, jint x, jint y, jint alpha);
219 extern DRAWING_Status UI_DRAWING_copyImage_0(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
220 jint regionY, jint width, jint height, jint x, jint y);
221 extern DRAWING_Status UI_DRAWING_drawRegion_0(MICROUI_GraphicsContext *gc, jint regionX, jint regionY, jint width,
222 jint height, jint x, jint y, jint alpha);
223 extern DRAWING_Status UI_DRAWING_drawThickFadedPoint_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint thickness,
225 extern DRAWING_Status UI_DRAWING_drawThickFadedLine_0(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
226 jint endY, jint thickness, jint fade, DRAWING_Cap startCap,
228 extern DRAWING_Status UI_DRAWING_drawThickFadedCircle_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
229 jint thickness, jint fade);
230 extern DRAWING_Status UI_DRAWING_drawThickFadedCircleArc_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
231 jfloat startAngle, jfloat arcAngle, jint thickness,
232 jint fade, DRAWING_Cap start, DRAWING_Cap end);
233 extern DRAWING_Status UI_DRAWING_drawThickFadedEllipse_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
234 jint height, jint thickness, jint fade);
235 extern DRAWING_Status UI_DRAWING_drawThickLine_0(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
236 jint endY, jint thickness);
237 extern DRAWING_Status UI_DRAWING_drawThickCircle_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
239 extern DRAWING_Status UI_DRAWING_drawThickEllipse_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
240 jint height, jint thickness);
241 extern DRAWING_Status UI_DRAWING_drawThickCircleArc_0(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
242 jfloat startAngle, jfloat arcAngle, jint thickness);
243 extern DRAWING_Status UI_DRAWING_drawFlippedImage_0(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
244 jint regionY, jint width, jint height, jint x, jint y,
245 DRAWING_Flip transformation, jint alpha);
246 extern DRAWING_Status UI_DRAWING_drawRotatedImageNearestNeighbor_0(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
247 jint x, jint y, jint rotationX, jint rotationY,
248 jfloat angle, jint alpha);
249 extern DRAWING_Status UI_DRAWING_drawRotatedImageBilinear_0(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
250 jint y, jint rotationX, jint rotationY, jfloat angle,
252 extern DRAWING_Status UI_DRAWING_drawScaledImageNearestNeighbor_0(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
253 jint x, jint y, jfloat factorX, jfloat factorY,
255 extern DRAWING_Status UI_DRAWING_drawScaledImageBilinear_0(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
256 jint y, jfloat factorX, jfloat factorY, jint alpha);
257 extern DRAWING_Status UI_DRAWING_drawScaledStringBilinear_0(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
258 MICROUI_Font *font, jint x, jint y, jfloat xRatio,
260 extern DRAWING_Status UI_DRAWING_drawScaledRenderableStringBilinear_0(MICROUI_GraphicsContext *gc, jchar *chars,
261 jint length, MICROUI_Font *font, jint width,
262 MICROUI_RenderableString *renderableString,
263 jint x, jint y, jfloat xRatio, jfloat yRatio);
264 extern DRAWING_Status UI_DRAWING_drawCharWithRotationBilinear_0(MICROUI_GraphicsContext *gc, jchar c,
265 MICROUI_Font *font, jint x, jint y, jint xRotation,
266 jint yRotation, jfloat angle, jint alpha);
267 extern DRAWING_Status UI_DRAWING_drawCharWithRotationNearestNeighbor_0(MICROUI_GraphicsContext *gc, jchar c,
268 MICROUI_Font *font, jint x, jint y,
269 jint xRotation, jint yRotation, jfloat angle,
272 extern uint32_t UI_DRAWING_getNewImageStrideInBytes_1(jbyte image_format, uint32_t width, uint32_t height,
273 uint32_t default_stride);
274 extern void UI_DRAWING_adjustNewImageCharacteristics_1(jbyte image_format, uint32_t width, uint32_t height,
275 uint32_t *data_size, uint32_t *data_alignment);
276 extern void UI_DRAWING_initializeNewImage_1(MICROUI_Image *image);
277 extern void UI_DRAWING_freeImageResources_1(MICROUI_Image *image);
278 extern DRAWING_Status UI_DRAWING_writePixel_1(MICROUI_GraphicsContext *gc, jint x, jint y);
279 extern DRAWING_Status UI_DRAWING_drawLine_1(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
281 extern DRAWING_Status UI_DRAWING_drawHorizontalLine_1(MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y);
282 extern DRAWING_Status UI_DRAWING_drawVerticalLine_1(MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2);
283 extern DRAWING_Status UI_DRAWING_drawRectangle_1(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
284 extern DRAWING_Status UI_DRAWING_fillRectangle_1(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
285 extern DRAWING_Status UI_DRAWING_drawRoundedRectangle_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
286 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight);
287 extern DRAWING_Status UI_DRAWING_fillRoundedRectangle_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
288 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight);
289 extern DRAWING_Status UI_DRAWING_drawCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
290 jfloat startAngle, jfloat arcAngle);
291 extern DRAWING_Status UI_DRAWING_drawEllipseArc_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
292 jfloat startAngle, jfloat arcAngle);
293 extern DRAWING_Status UI_DRAWING_fillCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
294 jfloat startAngle, jfloat arcAngle);
295 extern DRAWING_Status UI_DRAWING_fillEllipseArc_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
296 jfloat startAngle, jfloat arcAngle);
297 extern DRAWING_Status UI_DRAWING_drawEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height);
298 extern DRAWING_Status UI_DRAWING_fillEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height);
299 extern DRAWING_Status UI_DRAWING_drawCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
300 extern DRAWING_Status UI_DRAWING_fillCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
301 extern DRAWING_Status UI_DRAWING_drawString_1(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
302 MICROUI_Font *font, jint x, jint y);
303 extern DRAWING_Status UI_DRAWING_drawRenderableString_1(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
304 MICROUI_Font *font, jint width,
305 MICROUI_RenderableString *renderableString, jint x, jint y);
306 extern DRAWING_Status UI_DRAWING_drawImage_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
307 jint regionY, jint width, jint height, jint x, jint y, jint alpha);
308 extern DRAWING_Status UI_DRAWING_copyImage_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
309 jint regionY, jint width, jint height, jint x, jint y);
310 extern DRAWING_Status UI_DRAWING_drawRegion_1(MICROUI_GraphicsContext *gc, jint regionX, jint regionY, jint width,
311 jint height, jint x, jint y, jint alpha);
312 extern DRAWING_Status UI_DRAWING_drawThickFadedPoint_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint thickness,
314 extern DRAWING_Status UI_DRAWING_drawThickFadedLine_1(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
315 jint endY, jint thickness, jint fade, DRAWING_Cap startCap,
317 extern DRAWING_Status UI_DRAWING_drawThickFadedCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
318 jint thickness, jint fade);
319 extern DRAWING_Status UI_DRAWING_drawThickFadedCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
320 jfloat startAngle, jfloat arcAngle, jint thickness,
321 jint fade, DRAWING_Cap start, DRAWING_Cap end);
322 extern DRAWING_Status UI_DRAWING_drawThickFadedEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
323 jint height, jint thickness, jint fade);
324 extern DRAWING_Status UI_DRAWING_drawThickLine_1(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
325 jint endY, jint thickness);
326 extern DRAWING_Status UI_DRAWING_drawThickCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
328 extern DRAWING_Status UI_DRAWING_drawThickEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
329 jint height, jint thickness);
330 extern DRAWING_Status UI_DRAWING_drawThickCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
331 jfloat startAngle, jfloat arcAngle, jint thickness);
332 extern DRAWING_Status UI_DRAWING_drawFlippedImage_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
333 jint regionY, jint width, jint height, jint x, jint y,
334 DRAWING_Flip transformation, jint alpha);
335 extern DRAWING_Status UI_DRAWING_drawRotatedImageNearestNeighbor_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
336 jint x, jint y, jint rotationX, jint rotationY,
337 jfloat angle, jint alpha);
338 extern DRAWING_Status UI_DRAWING_drawRotatedImageBilinear_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
339 jint y, jint rotationX, jint rotationY, jfloat angle,
341 extern DRAWING_Status UI_DRAWING_drawScaledImageNearestNeighbor_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
342 jint x, jint y, jfloat factorX, jfloat factorY,
344 extern DRAWING_Status UI_DRAWING_drawScaledImageBilinear_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
345 jint y, jfloat factorX, jfloat factorY, jint alpha);
346 extern DRAWING_Status UI_DRAWING_drawScaledStringBilinear_1(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
347 MICROUI_Font *font, jint x, jint y, jfloat xRatio,
349 extern DRAWING_Status UI_DRAWING_drawScaledRenderableStringBilinear_1(MICROUI_GraphicsContext *gc, jchar *chars,
350 jint length, MICROUI_Font *font, jint width,
351 MICROUI_RenderableString *renderableString,
352 jint x, jint y, jfloat xRatio, jfloat yRatio);
353 extern DRAWING_Status UI_DRAWING_drawCharWithRotationBilinear_1(MICROUI_GraphicsContext *gc, jchar c,
354 MICROUI_Font *font, jint x, jint y, jint xRotation,
355 jint yRotation, jfloat angle, jint alpha);
356 extern DRAWING_Status UI_DRAWING_drawCharWithRotationNearestNeighbor_1(MICROUI_GraphicsContext *gc, jchar c,
357 MICROUI_Font *font, jint x, jint y,
358 jint xRotation, jint yRotation, jfloat angle,
361 #if (UI_GC_SUPPORTED_FORMATS > 2)
362 extern uint32_t UI_DRAWING_getNewImageStrideInBytes_2(jbyte image_format, uint32_t width, uint32_t height,
363 uint32_t default_stride);
364 extern void UI_DRAWING_adjustNewImageCharacteristics_2(jbyte image_format, uint32_t width, uint32_t height,
365 uint32_t *data_size, uint32_t *data_alignment);
366 extern void UI_DRAWING_initializeNewImage_2(MICROUI_Image *image);
367 extern void UI_DRAWING_freeImageResources_2(MICROUI_Image *image);
368 extern DRAWING_Status UI_DRAWING_writePixel_2(MICROUI_GraphicsContext *gc, jint x, jint y);
369 extern DRAWING_Status UI_DRAWING_drawLine_2(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
371 extern DRAWING_Status UI_DRAWING_drawHorizontalLine_2(MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y);
372 extern DRAWING_Status UI_DRAWING_drawVerticalLine_2(MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2);
373 extern DRAWING_Status UI_DRAWING_drawRectangle_2(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
374 extern DRAWING_Status UI_DRAWING_fillRectangle_2(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
375 extern DRAWING_Status UI_DRAWING_drawRoundedRectangle_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
376 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight);
377 extern DRAWING_Status UI_DRAWING_fillRoundedRectangle_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
378 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight);
379 extern DRAWING_Status UI_DRAWING_drawCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
380 jfloat startAngle, jfloat arcAngle);
381 extern DRAWING_Status UI_DRAWING_drawEllipseArc_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
382 jfloat startAngle, jfloat arcAngle);
383 extern DRAWING_Status UI_DRAWING_fillCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
384 jfloat startAngle, jfloat arcAngle);
385 extern DRAWING_Status UI_DRAWING_fillEllipseArc_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
386 jfloat startAngle, jfloat arcAngle);
387 extern DRAWING_Status UI_DRAWING_drawEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height);
388 extern DRAWING_Status UI_DRAWING_fillEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height);
389 extern DRAWING_Status UI_DRAWING_drawCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
390 extern DRAWING_Status UI_DRAWING_fillCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
391 extern DRAWING_Status UI_DRAWING_drawString_2(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
392 MICROUI_Font *font, jint x, jint y);
393 extern DRAWING_Status UI_DRAWING_drawRenderableString_2(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
394 MICROUI_Font *font, jint width,
395 MICROUI_RenderableString *renderableString, jint x, jint y);
396 extern DRAWING_Status UI_DRAWING_drawImage_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
397 jint regionY, jint width, jint height, jint x, jint y, jint alpha);
398 extern DRAWING_Status UI_DRAWING_copyImage_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
399 jint regionY, jint width, jint height, jint x, jint y);
400 extern DRAWING_Status UI_DRAWING_drawRegion_2(MICROUI_GraphicsContext *gc, jint regionX, jint regionY, jint width,
401 jint height, jint x, jint y, jint alpha);
402 extern DRAWING_Status UI_DRAWING_drawThickFadedPoint_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint thickness,
404 extern DRAWING_Status UI_DRAWING_drawThickFadedLine_2(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
405 jint endY, jint thickness, jint fade, DRAWING_Cap startCap,
407 extern DRAWING_Status UI_DRAWING_drawThickFadedCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
408 jint thickness, jint fade);
409 extern DRAWING_Status UI_DRAWING_drawThickFadedCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
410 jfloat startAngle, jfloat arcAngle, jint thickness,
411 jint fade, DRAWING_Cap start, DRAWING_Cap end);
412 extern DRAWING_Status UI_DRAWING_drawThickFadedEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
413 jint height, jint thickness, jint fade);
414 extern DRAWING_Status UI_DRAWING_drawThickLine_2(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
415 jint endY, jint thickness);
416 extern DRAWING_Status UI_DRAWING_drawThickCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
418 extern DRAWING_Status UI_DRAWING_drawThickEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
419 jint height, jint thickness);
420 extern DRAWING_Status UI_DRAWING_drawThickCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
421 jfloat startAngle, jfloat arcAngle, jint thickness);
422 extern DRAWING_Status UI_DRAWING_drawFlippedImage_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
423 jint regionY, jint width, jint height, jint x, jint y,
424 DRAWING_Flip transformation, jint alpha);
425 extern DRAWING_Status UI_DRAWING_drawRotatedImageNearestNeighbor_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
426 jint x, jint y, jint rotationX, jint rotationY,
427 jfloat angle, jint alpha);
428 extern DRAWING_Status UI_DRAWING_drawRotatedImageBilinear_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
429 jint y, jint rotationX, jint rotationY, jfloat angle,
431 extern DRAWING_Status UI_DRAWING_drawScaledImageNearestNeighbor_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
432 jint x, jint y, jfloat factorX, jfloat factorY,
434 extern DRAWING_Status UI_DRAWING_drawScaledImageBilinear_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
435 jint y, jfloat factorX, jfloat factorY, jint alpha);
436 extern DRAWING_Status UI_DRAWING_drawScaledStringBilinear_2(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
437 MICROUI_Font *font, jint x, jint y, jfloat xRatio,
439 extern DRAWING_Status UI_DRAWING_drawScaledRenderableStringBilinear_2(MICROUI_GraphicsContext *gc, jchar *chars,
440 jint length, MICROUI_Font *font, jint width,
441 MICROUI_RenderableString *renderableString,
442 jint x, jint y, jfloat xRatio, jfloat yRatio);
443 extern DRAWING_Status UI_DRAWING_drawCharWithRotationBilinear_2(MICROUI_GraphicsContext *gc, jchar c,
444 MICROUI_Font *font, jint x, jint y, jint xRotation,
445 jint yRotation, jfloat angle, jint alpha);
446 extern DRAWING_Status UI_DRAWING_drawCharWithRotationNearestNeighbor_2(MICROUI_GraphicsContext *gc, jchar c,
447 MICROUI_Font *font, jint x, jint y,
448 jint xRotation, jint yRotation, jfloat angle,
459 #if defined(UI_GC_SUPPORTED_FORMATS) && (UI_GC_SUPPORTED_FORMATS > 1)
465 typedef uint32_t (*UI_DRAWING_getNewImageStrideInBytes_t)(jbyte image_format, uint32_t width, uint32_t height,
466 uint32_t default_stride);
467 typedef void (*UI_DRAWING_adjustNewImageCharacteristics_t)(jbyte image_format, uint32_t width, uint32_t height,
468 uint32_t *data_size, uint32_t *data_alignment);
469 typedef void (*UI_DRAWING_initializeNewImage_t)(MICROUI_Image *image);
470 typedef void (*UI_DRAWING_freeImageResources_t)(MICROUI_Image *image);
471 typedef DRAWING_Status (*UI_DRAWING_writePixel_t)(MICROUI_GraphicsContext *gc, jint x, jint y);
472 typedef DRAWING_Status (*UI_DRAWING_drawLine_t)(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
474 typedef DRAWING_Status (*UI_DRAWING_drawHorizontalLine_t)(MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y);
475 typedef DRAWING_Status (*UI_DRAWING_drawVerticalLine_t)(MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2);
476 typedef DRAWING_Status (*UI_DRAWING_drawRectangle_t)(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
477 typedef DRAWING_Status (*UI_DRAWING_fillRectangle_t)(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2);
478 typedef DRAWING_Status (*UI_DRAWING_drawRoundedRectangle_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
479 jint height, jint cornerEllipseWidth,
480 jint cornerEllipseHeight);
481 typedef DRAWING_Status (*UI_DRAWING_fillRoundedRectangle_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
482 jint height, jint cornerEllipseWidth,
483 jint cornerEllipseHeight);
484 typedef DRAWING_Status (*UI_DRAWING_drawCircleArc_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
485 jfloat startAngle, jfloat arcAngle);
486 typedef DRAWING_Status (*UI_DRAWING_drawEllipseArc_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
487 jint height, jfloat startAngle, jfloat arcAngle);
488 typedef DRAWING_Status (*UI_DRAWING_fillCircleArc_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
489 jfloat startAngle, jfloat arcAngle);
490 typedef DRAWING_Status (*UI_DRAWING_fillEllipseArc_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
491 jint height, jfloat startAngle, jfloat arcAngle);
492 typedef DRAWING_Status (*UI_DRAWING_drawEllipse_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
494 typedef DRAWING_Status (*UI_DRAWING_fillEllipse_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
496 typedef DRAWING_Status (*UI_DRAWING_drawCircle_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
497 typedef DRAWING_Status (*UI_DRAWING_fillCircle_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter);
498 typedef DRAWING_Status (*UI_DRAWING_drawImage_t)(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
499 jint regionY, jint width, jint height, jint x, jint y, jint alpha);
500 typedef DRAWING_Status (*UI_DRAWING_copyImage_t)(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
501 jint regionY, jint width, jint height, jint x, jint y);
502 typedef DRAWING_Status (*UI_DRAWING_drawRegion_t)(MICROUI_GraphicsContext *gc, jint regionX, jint regionY, jint width,
503 jint height, jint x, jint y, jint alpha);
504 typedef DRAWING_Status (*UI_DRAWING_drawString_t)(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
505 MICROUI_Font *font, jint x, jint y);
506 typedef DRAWING_Status (*UI_DRAWING_drawRenderableString_t)(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
507 MICROUI_Font *font, jint width,
508 MICROUI_RenderableString *renderableString, jint x, jint y);
509 typedef DRAWING_Status (*UI_DRAWING_drawThickFadedPoint_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint thickness,
511 typedef DRAWING_Status (*UI_DRAWING_drawThickFadedLine_t)(MICROUI_GraphicsContext *gc, jint startX, jint startY,
512 jint endX, jint endY, jint thickness, jint fade,
513 DRAWING_Cap startCap, DRAWING_Cap endCap);
514 typedef DRAWING_Status (*UI_DRAWING_drawThickFadedCircle_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
515 jint thickness, jint fade);
516 typedef DRAWING_Status (*UI_DRAWING_drawThickFadedCircleArc_t)(MICROUI_GraphicsContext *gc, jint x, jint y,
517 jint diameter, jfloat startAngle, jfloat arcAngle,
518 jint thickness, jint fade, DRAWING_Cap start,
520 typedef DRAWING_Status (*UI_DRAWING_drawThickFadedEllipse_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
521 jint height, jint thickness, jint fade);
522 typedef DRAWING_Status (*UI_DRAWING_drawThickLine_t)(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
523 jint endY, jint thickness);
524 typedef DRAWING_Status (*UI_DRAWING_drawThickCircle_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
526 typedef DRAWING_Status (*UI_DRAWING_drawThickEllipse_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
527 jint height, jint thickness);
528 typedef DRAWING_Status (*UI_DRAWING_drawThickCircleArc_t)(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
529 jfloat startAngle, jfloat arcAngle, jint thickness);
530 typedef DRAWING_Status (*UI_DRAWING_drawFlippedImage_t)(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
531 jint regionY, jint width, jint height, jint x, jint y,
532 DRAWING_Flip transformation, jint alpha);
533 typedef DRAWING_Status (*UI_DRAWING_drawRotatedImageNearestNeighbor_t)(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
534 jint x, jint y, jint rotationX, jint rotationY,
535 jfloat angle, jint alpha);
536 typedef DRAWING_Status (*UI_DRAWING_drawRotatedImageBilinear_t)(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
537 jint y, jint rotationX, jint rotationY, jfloat angle,
539 typedef DRAWING_Status (*UI_DRAWING_drawScaledImageNearestNeighbor_t)(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
540 jint x, jint y, jfloat factorX, jfloat factorY,
542 typedef DRAWING_Status (*UI_DRAWING_drawScaledImageBilinear_t)(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
543 jint y, jfloat factorX, jfloat factorY, jint alpha);
544 typedef DRAWING_Status (*UI_DRAWING_drawScaledStringBilinear_t)(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
545 MICROUI_Font *font, jint x, jint y, jfloat xRatio,
547 typedef DRAWING_Status (*UI_DRAWING_drawScaledRenderableStringBilinear_t)(MICROUI_GraphicsContext *gc, jchar *chars,
548 jint length, MICROUI_Font *font, jint width,
549 MICROUI_RenderableString *renderableString,
550 jint x, jint y, jfloat xRatio, jfloat yRatio);
551 typedef DRAWING_Status (*UI_DRAWING_drawCharWithRotationBilinear_t)(MICROUI_GraphicsContext *gc, jchar c,
552 MICROUI_Font *font, jint x, jint y, jint xRotation,
553 jint yRotation, jfloat angle, jint alpha);
554 typedef DRAWING_Status (*UI_DRAWING_drawCharWithRotationNearestNeighbor_t)(MICROUI_GraphicsContext *gc, jchar c,
555 MICROUI_Font *font, jint x, jint y,
556 jint xRotation, jint yRotation, jfloat angle,
565 #if defined(UI_GC_SUPPORTED_FORMATS) && (UI_GC_SUPPORTED_FORMATS > 1)
567 static const UI_DRAWING_getNewImageStrideInBytes_t UI_DRAWER_getNewImageStrideInBytes[] = {
568 &UI_DRAWING_getNewImageStrideInBytes,
569 &UI_DRAWING_getNewImageStrideInBytes_1,
570 #if (UI_GC_SUPPORTED_FORMATS > 2)
571 &UI_DRAWING_getNewImageStrideInBytes_2,
575 static const UI_DRAWING_adjustNewImageCharacteristics_t UI_DRAWER_adjustNewImageCharacteristics[] = {
576 &UI_DRAWING_adjustNewImageCharacteristics,
577 &UI_DRAWING_adjustNewImageCharacteristics_1,
578 #if (UI_GC_SUPPORTED_FORMATS > 2)
579 &UI_DRAWING_adjustNewImageCharacteristics_2,
583 static const UI_DRAWING_initializeNewImage_t UI_DRAWER_initializeNewImage[] = {
584 &UI_DRAWING_initializeNewImage,
585 &UI_DRAWING_initializeNewImage_1,
586 #if (UI_GC_SUPPORTED_FORMATS > 2)
587 &UI_DRAWING_initializeNewImage_2,
591 static const UI_DRAWING_freeImageResources_t UI_DRAWER_freeImageResources[] = {
592 &UI_DRAWING_freeImageResources,
593 &UI_DRAWING_freeImageResources_1,
594 #if (UI_GC_SUPPORTED_FORMATS > 2)
595 &UI_DRAWING_freeImageResources_2,
599 static const UI_DRAWING_writePixel_t UI_DRAWER_writePixel[] = {
600 &UI_DRAWING_writePixel_0,
601 &UI_DRAWING_writePixel_1,
602 #if (UI_GC_SUPPORTED_FORMATS > 2)
603 &UI_DRAWING_writePixel_2,
607 static const UI_DRAWING_drawLine_t UI_DRAWER_drawLine[] = {
608 &UI_DRAWING_drawLine_0,
609 &UI_DRAWING_drawLine_1,
610 #if (UI_GC_SUPPORTED_FORMATS > 2)
611 &UI_DRAWING_drawLine_2,
615 static const UI_DRAWING_drawHorizontalLine_t UI_DRAWER_drawHorizontalLine[] = {
616 &UI_DRAWING_drawHorizontalLine_0,
617 &UI_DRAWING_drawHorizontalLine_1,
618 #if (UI_GC_SUPPORTED_FORMATS > 2)
619 &UI_DRAWING_drawHorizontalLine_2,
623 static const UI_DRAWING_drawVerticalLine_t UI_DRAWER_drawVerticalLine[] = {
624 &UI_DRAWING_drawVerticalLine_0,
625 &UI_DRAWING_drawVerticalLine_1,
626 #if (UI_GC_SUPPORTED_FORMATS > 2)
627 &UI_DRAWING_drawVerticalLine_2,
631 static const UI_DRAWING_drawRectangle_t UI_DRAWER_drawRectangle[] = {
632 &UI_DRAWING_drawRectangle_0,
633 &UI_DRAWING_drawRectangle_1,
634 #if (UI_GC_SUPPORTED_FORMATS > 2)
635 &UI_DRAWING_drawRectangle_2,
639 static const UI_DRAWING_fillRectangle_t UI_DRAWER_fillRectangle[] = {
640 &UI_DRAWING_fillRectangle_0,
641 &UI_DRAWING_fillRectangle_1,
642 #if (UI_GC_SUPPORTED_FORMATS > 2)
643 &UI_DRAWING_fillRectangle_2,
647 static const UI_DRAWING_drawRoundedRectangle_t UI_DRAWER_drawRoundedRectangle[] = {
648 &UI_DRAWING_drawRoundedRectangle_0,
649 &UI_DRAWING_drawRoundedRectangle_1,
650 #if (UI_GC_SUPPORTED_FORMATS > 2)
651 &UI_DRAWING_drawRoundedRectangle_2,
655 static const UI_DRAWING_fillRoundedRectangle_t UI_DRAWER_fillRoundedRectangle[] = {
656 &UI_DRAWING_fillRoundedRectangle_0,
657 &UI_DRAWING_fillRoundedRectangle_1,
658 #if (UI_GC_SUPPORTED_FORMATS > 2)
659 &UI_DRAWING_fillRoundedRectangle_2,
663 static const UI_DRAWING_drawCircleArc_t UI_DRAWER_drawCircleArc[] = {
664 &UI_DRAWING_drawCircleArc_0,
665 &UI_DRAWING_drawCircleArc_1,
666 #if (UI_GC_SUPPORTED_FORMATS > 2)
667 &UI_DRAWING_drawCircleArc_2,
671 static const UI_DRAWING_drawEllipseArc_t UI_DRAWER_drawEllipseArc[] = {
672 &UI_DRAWING_drawEllipseArc_0,
673 &UI_DRAWING_drawEllipseArc_1,
674 #if (UI_GC_SUPPORTED_FORMATS > 2)
675 &UI_DRAWING_drawEllipseArc_2,
679 static const UI_DRAWING_fillCircleArc_t UI_DRAWER_fillCircleArc[] = {
680 &UI_DRAWING_fillCircleArc_0,
681 &UI_DRAWING_fillCircleArc_1,
682 #if (UI_GC_SUPPORTED_FORMATS > 2)
683 &UI_DRAWING_fillCircleArc_2,
687 static const UI_DRAWING_fillEllipseArc_t UI_DRAWER_fillEllipseArc[] = {
688 &UI_DRAWING_fillEllipseArc_0,
689 &UI_DRAWING_fillEllipseArc_1,
690 #if (UI_GC_SUPPORTED_FORMATS > 2)
691 &UI_DRAWING_fillEllipseArc_2,
695 static const UI_DRAWING_drawEllipse_t UI_DRAWER_drawEllipse[] = {
696 &UI_DRAWING_drawEllipse_0,
697 &UI_DRAWING_drawEllipse_1,
698 #if (UI_GC_SUPPORTED_FORMATS > 2)
699 &UI_DRAWING_drawEllipse_2,
703 static const UI_DRAWING_fillEllipse_t UI_DRAWER_fillEllipse[] = {
704 &UI_DRAWING_fillEllipse_0,
705 &UI_DRAWING_fillEllipse_1,
706 #if (UI_GC_SUPPORTED_FORMATS > 2)
707 &UI_DRAWING_fillEllipse_2,
711 static const UI_DRAWING_drawCircle_t UI_DRAWER_drawCircle[] = {
712 &UI_DRAWING_drawCircle_0,
713 &UI_DRAWING_drawCircle_1,
714 #if (UI_GC_SUPPORTED_FORMATS > 2)
715 &UI_DRAWING_drawCircle_2,
719 static const UI_DRAWING_fillCircle_t UI_DRAWER_fillCircle[] = {
720 &UI_DRAWING_fillCircle_0,
721 &UI_DRAWING_fillCircle_1,
722 #if (UI_GC_SUPPORTED_FORMATS > 2)
723 &UI_DRAWING_fillCircle_2,
727 static const UI_DRAWING_drawImage_t UI_DRAWER_drawImage[] = {
728 &UI_DRAWING_drawImage_0,
729 &UI_DRAWING_drawImage_1,
730 #if (UI_GC_SUPPORTED_FORMATS > 2)
731 &UI_DRAWING_drawImage_2,
735 static const UI_DRAWING_copyImage_t UI_DRAWER_copyImage[] = {
736 &UI_DRAWING_copyImage_0,
737 &UI_DRAWING_copyImage_1,
738 #if (UI_GC_SUPPORTED_FORMATS > 2)
739 &UI_DRAWING_copyImage_2,
743 static const UI_DRAWING_drawRegion_t UI_DRAWER_drawRegion[] = {
744 &UI_DRAWING_drawRegion_0,
745 &UI_DRAWING_drawRegion_1,
746 #if (UI_GC_SUPPORTED_FORMATS > 2)
747 &UI_DRAWING_drawRegion_2,
751 static const UI_DRAWING_drawString_t UI_DRAWER_drawString[] = {
752 UI_DRAWING_drawString_0,
753 UI_DRAWING_drawString_1,
754 #if (UI_GC_SUPPORTED_FORMATS > 2)
755 UI_DRAWING_drawString_2,
759 static const UI_DRAWING_drawRenderableString_t UI_DRAWER_drawRenderableString[] = {
760 UI_DRAWING_drawRenderableString_0,
761 UI_DRAWING_drawRenderableString_1,
762 #if (UI_GC_SUPPORTED_FORMATS > 2)
763 UI_DRAWING_drawRenderableString_2,
767 static const UI_DRAWING_drawThickFadedPoint_t UI_DRAWER_drawThickFadedPoint[] = {
768 &UI_DRAWING_drawThickFadedPoint_0,
769 &UI_DRAWING_drawThickFadedPoint_1,
770 #if (UI_GC_SUPPORTED_FORMATS > 2)
771 &UI_DRAWING_drawThickFadedPoint_2,
775 static const UI_DRAWING_drawThickFadedLine_t UI_DRAWER_drawThickFadedLine[] = {
776 &UI_DRAWING_drawThickFadedLine_0,
777 &UI_DRAWING_drawThickFadedLine_1,
778 #if (UI_GC_SUPPORTED_FORMATS > 2)
779 &UI_DRAWING_drawThickFadedLine_2,
783 static const UI_DRAWING_drawThickFadedCircle_t UI_DRAWER_drawThickFadedCircle[] = {
784 &UI_DRAWING_drawThickFadedCircle_0,
785 &UI_DRAWING_drawThickFadedCircle_1,
786 #if (UI_GC_SUPPORTED_FORMATS > 2)
787 &UI_DRAWING_drawThickFadedCircle_2,
791 static const UI_DRAWING_drawThickFadedCircleArc_t UI_DRAWER_drawThickFadedCircleArc[] = {
792 &UI_DRAWING_drawThickFadedCircleArc_0,
793 &UI_DRAWING_drawThickFadedCircleArc_1,
794 #if (UI_GC_SUPPORTED_FORMATS > 2)
795 &UI_DRAWING_drawThickFadedCircleArc_2,
799 static const UI_DRAWING_drawThickFadedEllipse_t UI_DRAWER_drawThickFadedEllipse[] = {
800 &UI_DRAWING_drawThickFadedEllipse_0,
801 &UI_DRAWING_drawThickFadedEllipse_1,
802 #if (UI_GC_SUPPORTED_FORMATS > 2)
803 &UI_DRAWING_drawThickFadedEllipse_2,
807 static const UI_DRAWING_drawThickLine_t UI_DRAWER_drawThickLine[] = {
808 &UI_DRAWING_drawThickLine_0,
809 &UI_DRAWING_drawThickLine_1,
810 #if (UI_GC_SUPPORTED_FORMATS > 2)
811 &UI_DRAWING_drawThickLine_2,
815 static const UI_DRAWING_drawThickCircle_t UI_DRAWER_drawThickCircle[] = {
816 &UI_DRAWING_drawThickCircle_0,
817 &UI_DRAWING_drawThickCircle_1,
818 #if (UI_GC_SUPPORTED_FORMATS > 2)
819 &UI_DRAWING_drawThickCircle_2,
823 static const UI_DRAWING_drawThickEllipse_t UI_DRAWER_drawThickEllipse[] = {
824 &UI_DRAWING_drawThickEllipse_0,
825 &UI_DRAWING_drawThickEllipse_1,
826 #if (UI_GC_SUPPORTED_FORMATS > 2)
827 &UI_DRAWING_drawThickEllipse_2,
831 static const UI_DRAWING_drawThickCircleArc_t UI_DRAWER_drawThickCircleArc[] = {
832 &UI_DRAWING_drawThickCircleArc_0,
833 &UI_DRAWING_drawThickCircleArc_1,
834 #if (UI_GC_SUPPORTED_FORMATS > 2)
835 &UI_DRAWING_drawThickCircleArc_2,
839 static const UI_DRAWING_drawFlippedImage_t UI_DRAWER_drawFlippedImage[] = {
840 &UI_DRAWING_drawFlippedImage_0,
841 &UI_DRAWING_drawFlippedImage_1,
842 #if (UI_GC_SUPPORTED_FORMATS > 2)
843 &UI_DRAWING_drawFlippedImage_2,
847 static const UI_DRAWING_drawRotatedImageNearestNeighbor_t UI_DRAWER_drawRotatedImageNearestNeighbor[] = {
848 &UI_DRAWING_drawRotatedImageNearestNeighbor_0,
849 &UI_DRAWING_drawRotatedImageNearestNeighbor_1,
850 #if (UI_GC_SUPPORTED_FORMATS > 2)
851 &UI_DRAWING_drawRotatedImageNearestNeighbor_2,
855 static const UI_DRAWING_drawRotatedImageBilinear_t UI_DRAWER_drawRotatedImageBilinear[] = {
856 &UI_DRAWING_drawRotatedImageBilinear_0,
857 &UI_DRAWING_drawRotatedImageBilinear_1,
858 #if (UI_GC_SUPPORTED_FORMATS > 2)
859 &UI_DRAWING_drawRotatedImageBilinear_2,
863 static const UI_DRAWING_drawScaledImageNearestNeighbor_t UI_DRAWER_drawScaledImageNearestNeighbor[] = {
864 &UI_DRAWING_drawScaledImageNearestNeighbor_0,
865 &UI_DRAWING_drawScaledImageNearestNeighbor_1,
866 #if (UI_GC_SUPPORTED_FORMATS > 2)
867 &UI_DRAWING_drawScaledImageNearestNeighbor_2,
871 static const UI_DRAWING_drawScaledImageBilinear_t UI_DRAWER_drawScaledImageBilinear[] = {
872 &UI_DRAWING_drawScaledImageBilinear_0,
873 &UI_DRAWING_drawScaledImageBilinear_1,
874 #if (UI_GC_SUPPORTED_FORMATS > 2)
875 &UI_DRAWING_drawScaledImageBilinear_2,
879 static const UI_DRAWING_drawScaledStringBilinear_t UI_DRAWER_drawScaledStringBilinear[] = {
880 UI_DRAWING_drawScaledStringBilinear_0,
881 UI_DRAWING_drawScaledStringBilinear_1,
882 #if (UI_GC_SUPPORTED_FORMATS > 2)
883 UI_DRAWING_drawScaledStringBilinear_2,
887 static const UI_DRAWING_drawScaledRenderableStringBilinear_t UI_DRAWER_drawScaledRenderableStringBilinear[] = {
888 UI_DRAWING_drawScaledRenderableStringBilinear_0,
889 UI_DRAWING_drawScaledRenderableStringBilinear_1,
890 #if (UI_GC_SUPPORTED_FORMATS > 2)
891 UI_DRAWING_drawScaledRenderableStringBilinear_2,
895 static const UI_DRAWING_drawCharWithRotationBilinear_t UI_DRAWER_drawCharWithRotationBilinear[] = {
896 UI_DRAWING_drawCharWithRotationBilinear_0,
897 UI_DRAWING_drawCharWithRotationBilinear_1,
898 #if (UI_GC_SUPPORTED_FORMATS > 2)
899 UI_DRAWING_drawCharWithRotationBilinear_2,
903 static const UI_DRAWING_drawCharWithRotationNearestNeighbor_t UI_DRAWER_drawCharWithRotationNearestNeighbor[] = {
904 UI_DRAWING_drawCharWithRotationNearestNeighbor_0,
905 UI_DRAWING_drawCharWithRotationNearestNeighbor_1,
906 #if (UI_GC_SUPPORTED_FORMATS > 2)
907 UI_DRAWING_drawCharWithRotationNearestNeighbor_2,
918 #if !defined(UI_GC_SUPPORTED_FORMATS) || (UI_GC_SUPPORTED_FORMATS <= 1)
926 int32_t LLUI_DISPLAY_IMPL_getDrawerIdentifier(jbyte image_format) {
927 return LLUI_DISPLAY_isDisplayFormat(image_format) ? 0 : -1 ;
931 uint32_t LLUI_DISPLAY_IMPL_getNewImageStrideInBytes(jbyte image_format, uint32_t width, uint32_t height,
932 uint32_t default_stride) {
934 return UI_DRAWING_getNewImageStrideInBytes(image_format, width, height, default_stride);
938 void LLUI_DISPLAY_IMPL_adjustNewImageCharacteristics(jbyte image_format, uint32_t width, uint32_t height,
939 uint32_t *data_size, uint32_t *data_alignment) {
941 UI_DRAWING_adjustNewImageCharacteristics(image_format, width, height, data_size, data_alignment);
945 void LLUI_DISPLAY_IMPL_initializeNewImage(MICROUI_Image *image) {
947 UI_DRAWING_initializeNewImage(image);
951 void LLUI_DISPLAY_IMPL_freeImageResources(MICROUI_Image *image) {
953 UI_DRAWING_freeImageResources(image);
968 int32_t LLUI_DISPLAY_IMPL_getDrawerIdentifier(jbyte image_format) {
971 if (LLUI_DISPLAY_isDisplayFormat(image_format)) {
973 }
else if (UI_DRAWING_is_drawer_1(image_format)) {
975 #if (UI_GC_SUPPORTED_FORMATS > 2)
976 }
else if (UI_DRAWING_is_drawer_2(image_format)) {
1005 uint32_t LLUI_DISPLAY_IMPL_getNewImageStrideInBytes(jbyte image_format, uint32_t width, uint32_t height,
1006 uint32_t default_stride) {
1007 int32_t drawer = LLUI_DISPLAY_IMPL_getDrawerIdentifier(image_format);
1008 drawer = (drawer >= 0) ? drawer : 0;
1009 return (*UI_DRAWER_getNewImageStrideInBytes[drawer])(image_format, width, height, default_stride);
1014 void LLUI_DISPLAY_IMPL_adjustNewImageCharacteristics(jbyte image_format, uint32_t width, uint32_t height,
1015 uint32_t *data_size, uint32_t *data_alignment) {
1016 int32_t drawer = LLUI_DISPLAY_IMPL_getDrawerIdentifier(image_format);
1017 drawer = (drawer >= 0) ? drawer : 0;
1018 (*UI_DRAWER_adjustNewImageCharacteristics[drawer])(image_format, width, height, data_size, data_alignment);
1023 void LLUI_DISPLAY_IMPL_initializeNewImage(MICROUI_Image *image) {
1024 int32_t drawer = LLUI_DISPLAY_IMPL_getDrawerIdentifier(image->format);
1025 drawer = (drawer >= 0) ? drawer : 0;
1026 (*UI_DRAWER_initializeNewImage[drawer])(image);
1031 void LLUI_DISPLAY_IMPL_freeImageResources(MICROUI_Image *image) {
1032 int32_t drawer = LLUI_DISPLAY_IMPL_getDrawerIdentifier(image->format);
1033 drawer = (drawer >= 0) ? drawer : 0;
1034 (*UI_DRAWER_freeImageResources[drawer])(image);
1045 BSP_DECLARE_WEAK_FCNT uint32_t UI_DRAWING_getNewImageStrideInBytes(jbyte image_format, uint32_t width, uint32_t height,
1046 uint32_t default_stride) {
1051 return default_stride;
1055 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_adjustNewImageCharacteristics(jbyte image_format, uint32_t width, uint32_t height,
1056 uint32_t *data_size, uint32_t *data_alignment) {
1061 (void)data_alignment;
1066 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_initializeNewImage(MICROUI_Image *image) {
1072 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_freeImageResources(MICROUI_Image *image) {
1078 BSP_DECLARE_WEAK_FCNT jint UI_DRAWING_stringWidth(jchar *chars, jint length, MICROUI_Font *font) {
1079 #if !defined(UI_FEATURE_FONT_CUSTOM_FORMATS)
1080 assert(!LLUI_DISPLAY_isCustomFormat(font->format));
1081 return UI_DRAWING_SOFT_stringWidth(chars, length, font);
1083 return UI_FONT_DRAWING_stringWidth(chars, length, font);
1088 BSP_DECLARE_WEAK_FCNT jint UI_DRAWING_initializeRenderableStringSNIContext(jchar *chars, jint length,
1090 MICROUI_RenderableString *renderableString) {
1091 #if !defined(UI_FEATURE_FONT_CUSTOM_FORMATS)
1092 assert(!LLUI_DISPLAY_isCustomFormat(font->format));
1093 return UI_DRAWING_SOFT_initializeRenderableStringSNIContext(chars, length, font, renderableString);
1095 return UI_FONT_DRAWING_initializeRenderableStringSNIContext(chars, length, font, renderableString);
1105 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_writePixel(MICROUI_GraphicsContext *gc, jint x, jint y) {
1106 return UI_DRAWING_SOFT_writePixel(gc, x, y);
1110 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawLine(MICROUI_GraphicsContext *gc, jint startX, jint startY,
1111 jint endX, jint endY) {
1112 return UI_DRAWING_SOFT_drawLine(gc, startX, startY, endX, endY);
1116 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawHorizontalLine(MICROUI_GraphicsContext *gc, jint x1,
1118 return UI_DRAWING_SOFT_drawHorizontalLine(gc, x1, x2, y);
1122 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawVerticalLine(MICROUI_GraphicsContext *gc, jint x, jint y1,
1124 return UI_DRAWING_SOFT_drawVerticalLine(gc, x, y1, y2);
1128 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1,
1130 return UI_DRAWING_SOFT_drawRectangle(gc, x1, y1, x2, y2);
1134 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_fillRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1,
1136 return UI_DRAWING_SOFT_fillRectangle(gc, x1, y1, x2, y2);
1140 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawRoundedRectangle(MICROUI_GraphicsContext *gc, jint x,
1141 jint y, jint width, jint height,
1142 jint cornerEllipseWidth,
1143 jint cornerEllipseHeight) {
1144 return UI_DRAWING_SOFT_drawRoundedRectangle(gc, x, y, width, height, cornerEllipseWidth, cornerEllipseHeight);
1148 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_fillRoundedRectangle(MICROUI_GraphicsContext *gc, jint x,
1149 jint y, jint width, jint height,
1150 jint cornerEllipseWidth,
1151 jint cornerEllipseHeight) {
1152 return UI_DRAWING_SOFT_fillRoundedRectangle(gc, x, y, width, height, cornerEllipseWidth, cornerEllipseHeight);
1156 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y,
1157 jint diameter, jfloat startAngle,
1159 return UI_DRAWING_SOFT_drawCircleArc(gc, x, y, diameter, startAngle, arcAngle);
1163 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y,
1164 jint width, jint height, jfloat startAngle,
1166 return UI_DRAWING_SOFT_drawEllipseArc(gc, x, y, width, height, startAngle, arcAngle);
1170 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_fillCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y,
1171 jint diameter, jfloat startAngle,
1173 return UI_DRAWING_SOFT_fillCircleArc(gc, x, y, diameter, startAngle, arcAngle);
1177 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_fillEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y,
1178 jint width, jint height, jfloat startAngle,
1180 return UI_DRAWING_SOFT_fillEllipseArc(gc, x, y, width, height, startAngle, arcAngle);
1184 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawEllipse(MICROUI_GraphicsContext *gc, jint x, jint y,
1185 jint width, jint height) {
1186 return UI_DRAWING_SOFT_drawEllipse(gc, x, y, width, height);
1190 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_fillEllipse(MICROUI_GraphicsContext *gc, jint x, jint y,
1191 jint width, jint height) {
1192 return UI_DRAWING_SOFT_fillEllipse(gc, x, y, width, height);
1196 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawCircle(MICROUI_GraphicsContext *gc, jint x, jint y,
1198 return UI_DRAWING_SOFT_drawCircle(gc, x, y, diameter);
1202 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_fillCircle(MICROUI_GraphicsContext *gc, jint x, jint y,
1204 return UI_DRAWING_SOFT_fillCircle(gc, x, y, diameter);
1208 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
1209 jint regionX, jint regionY, jint width, jint height,
1210 jint x, jint y, jint alpha) {
1211 #if !defined(UI_FEATURE_IMAGE_CUSTOM_FORMATS)
1212 return UI_DRAWING_SOFT_drawImage(gc, img, regionX, regionY, width, height, x, y, alpha);
1214 return UI_IMAGE_DRAWING_draw(gc, img, regionX, regionY, width, height, x, y, alpha);
1219 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_copyImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
1220 jint regionX, jint regionY, jint width, jint height,
1222 #if !defined(UI_FEATURE_IMAGE_CUSTOM_FORMATS)
1223 return UI_DRAWING_SOFT_copyImage(gc, img, regionX, regionY, width, height, x, y);
1225 return UI_IMAGE_DRAWING_copy(gc, img, regionX, regionY, width, height, x, y);
1230 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawRegion(MICROUI_GraphicsContext *gc, jint regionX,
1231 jint regionY, jint width, jint height, jint x,
1232 jint y, jint alpha) {
1233 #if !defined(UI_FEATURE_IMAGE_CUSTOM_FORMATS)
1234 return UI_DRAWING_SOFT_drawRegion(gc, regionX, regionY, width, height, x, y, alpha);
1236 return UI_IMAGE_DRAWING_drawRegion(gc, regionX, regionY, width, height, x, y, alpha);
1241 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawString(MICROUI_GraphicsContext *gc, jchar *chars,
1242 jint length, MICROUI_Font *font, jint x, jint y) {
1243 #if !defined(UI_FEATURE_FONT_CUSTOM_FORMATS)
1244 assert(!LLUI_DISPLAY_isCustomFormat(font->format));
1245 return UI_DRAWING_SOFT_drawString(gc, chars, length, font, x, y);
1247 return UI_FONT_DRAWING_drawString(gc, chars, length, font, x, y);
1252 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawRenderableString(MICROUI_GraphicsContext *gc, jchar *chars,
1253 jint length, MICROUI_Font *font,
1255 MICROUI_RenderableString *renderableString,
1257 #if !defined(UI_FEATURE_FONT_CUSTOM_FORMATS)
1258 assert(!LLUI_DISPLAY_isCustomFormat(font->format));
1259 return UI_DRAWING_SOFT_drawRenderableString(gc, chars, length, font, width, renderableString, x, y);
1261 return UI_FONT_DRAWING_drawRenderableString(gc, chars, length, font, width, renderableString, x, y);
1266 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickFadedPoint(MICROUI_GraphicsContext *gc, jint x, jint y,
1267 jint thickness, jint fade) {
1268 return DW_DRAWING_SOFT_drawThickFadedPoint(gc, x, y, thickness, fade);
1272 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickFadedLine(MICROUI_GraphicsContext *gc, jint startX,
1273 jint startY, jint endX, jint endY,
1274 jint thickness, jint fade,
1275 DRAWING_Cap startCap, DRAWING_Cap endCap) {
1276 return DW_DRAWING_SOFT_drawThickFadedLine(gc, startX, startY, endX, endY, thickness, fade, startCap, endCap);
1280 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickFadedCircle(MICROUI_GraphicsContext *gc, jint x,
1281 jint y, jint diameter, jint thickness,
1283 return DW_DRAWING_SOFT_drawThickFadedCircle(gc, x, y, diameter, thickness, fade);
1287 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickFadedCircleArc(MICROUI_GraphicsContext *gc, jint x,
1288 jint y, jint diameter,
1289 jfloat startAngle, jfloat arcAngle,
1290 jint thickness, jint fade,
1291 DRAWING_Cap start, DRAWING_Cap end) {
1292 return DW_DRAWING_SOFT_drawThickFadedCircleArc(gc, x, y, diameter, startAngle, arcAngle, thickness, fade, start,
1297 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickFadedEllipse(MICROUI_GraphicsContext *gc, jint x,
1298 jint y, jint width, jint height,
1299 jint thickness, jint fade) {
1300 return DW_DRAWING_SOFT_drawThickFadedEllipse(gc, x, y, width, height, thickness, fade);
1304 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickLine(MICROUI_GraphicsContext *gc, jint startX,
1305 jint startY, jint endX, jint endY,
1307 return DW_DRAWING_SOFT_drawThickLine(gc, startX, startY, endX, endY, thickness);
1311 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickCircle(MICROUI_GraphicsContext *gc, jint x, jint y,
1312 jint diameter, jint thickness) {
1313 return DW_DRAWING_SOFT_drawThickCircle(gc, x, y, diameter, thickness);
1317 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickEllipse(MICROUI_GraphicsContext *gc, jint x, jint y,
1318 jint width, jint height, jint thickness) {
1319 return DW_DRAWING_SOFT_drawThickEllipse(gc, x, y, width, height, thickness);
1323 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawThickCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y,
1324 jint diameter, jfloat startAngle,
1325 jfloat arcAngle, jint thickness) {
1326 return DW_DRAWING_SOFT_drawThickCircleArc(gc, x, y, diameter, startAngle, arcAngle, thickness);
1330 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawFlippedImage(MICROUI_GraphicsContext *gc,
1331 MICROUI_Image *img, jint regionX, jint regionY,
1332 jint width, jint height, jint x, jint y,
1333 DRAWING_Flip transformation, jint alpha) {
1334 #if !defined(UI_FEATURE_IMAGE_CUSTOM_FORMATS)
1335 return DW_DRAWING_SOFT_drawFlippedImage(gc, img, regionX, regionY, width, height, x, y, transformation, alpha);
1337 return UI_IMAGE_DRAWING_drawFlipped(gc, img, regionX, regionY, width, height, x, y, transformation, alpha);
1342 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawRotatedImageNearestNeighbor(MICROUI_GraphicsContext *gc,
1343 MICROUI_Image *img, jint x,
1344 jint y, jint rotationX,
1345 jint rotationY, jfloat angle,
1347 #if !defined(UI_FEATURE_IMAGE_CUSTOM_FORMATS)
1348 return DW_DRAWING_SOFT_drawRotatedImageNearestNeighbor(gc, img, x, y, rotationX, rotationY, angle, alpha);
1350 return UI_IMAGE_DRAWING_drawRotatedNearestNeighbor(gc, img, x, y, rotationX, rotationY, angle, alpha);
1355 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawRotatedImageBilinear(MICROUI_GraphicsContext *gc,
1356 MICROUI_Image *img, jint x, jint y,
1357 jint rotationX, jint rotationY,
1358 jfloat angle, jint alpha) {
1359 #if !defined(UI_FEATURE_IMAGE_CUSTOM_FORMATS)
1360 return DW_DRAWING_SOFT_drawRotatedImageBilinear(gc, img, x, y, rotationX, rotationY, angle, alpha);
1362 return UI_IMAGE_DRAWING_drawRotatedBilinear(gc, img, x, y, rotationX, rotationY, angle, alpha);
1367 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawScaledImageNearestNeighbor(MICROUI_GraphicsContext *gc,
1368 MICROUI_Image *img, jint x,
1369 jint y, jfloat factorX,
1370 jfloat factorY, jint alpha) {
1371 #if !defined(UI_FEATURE_IMAGE_CUSTOM_FORMATS)
1372 return DW_DRAWING_SOFT_drawScaledImageNearestNeighbor(gc, img, x, y, factorX, factorY, alpha);
1374 return UI_IMAGE_DRAWING_drawScaledNearestNeighbor(gc, img, x, y, factorX, factorY, alpha);
1379 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawScaledImageBilinear(MICROUI_GraphicsContext *gc,
1380 MICROUI_Image *img, jint x, jint y,
1381 jfloat factorX, jfloat factorY,
1383 #if !defined(UI_FEATURE_IMAGE_CUSTOM_FORMATS)
1384 return DW_DRAWING_SOFT_drawScaledImageBilinear(gc, img, x, y, factorX, factorY, alpha);
1386 return UI_IMAGE_DRAWING_drawScaledBilinear(gc, img, x, y, factorX, factorY, alpha);
1390 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawScaledStringBilinear(MICROUI_GraphicsContext *gc,
1391 jchar *chars, jint length,
1392 MICROUI_Font *font, jint x, jint y,
1393 jfloat xRatio, jfloat yRatio) {
1394 #if !defined(UI_FEATURE_FONT_CUSTOM_FORMATS)
1395 assert(!LLUI_DISPLAY_isCustomFormat(font->format));
1396 return DW_DRAWING_SOFT_drawScaledStringBilinear(gc, chars, length, font, x, y, xRatio, yRatio);
1398 return UI_FONT_DRAWING_drawScaledStringBilinear(gc, chars, length, font, x, y, xRatio, yRatio);
1402 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawScaledRenderableStringBilinear(MICROUI_GraphicsContext *gc,
1403 jchar *chars, jint length,
1406 MICROUI_RenderableString *
1407 renderableString, jint x,
1408 jint y, jfloat xRatio,
1410 #if !defined(UI_FEATURE_FONT_CUSTOM_FORMATS)
1411 assert(!LLUI_DISPLAY_isCustomFormat(font->format));
1412 return DW_DRAWING_SOFT_drawScaledRenderableStringBilinear(gc, chars, length, font, width, renderableString, x, y,
1415 return UI_FONT_DRAWING_drawScaledRenderableStringBilinear(gc, chars, length, font, width, renderableString, x, y,
1420 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawCharWithRotationBilinear(MICROUI_GraphicsContext *gc,
1421 jchar c, MICROUI_Font *font,
1422 jint x,
int y, jint xRotation,
1423 jint yRotation, jfloat angle,
1425 #if !defined(UI_FEATURE_FONT_CUSTOM_FORMATS)
1426 assert(!LLUI_DISPLAY_isCustomFormat(font->format));
1427 return DW_DRAWING_SOFT_drawCharWithRotationBilinear(gc, c, font, x, y, xRotation, yRotation, angle, alpha);
1429 return UI_FONT_DRAWING_drawCharWithRotationBilinear(gc, c, font, x, y, xRotation, yRotation, angle, alpha);
1433 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_DEFAULT_drawCharWithRotationNearestNeighbor(MICROUI_GraphicsContext *gc,
1434 jchar c, MICROUI_Font *font,
1438 jfloat angle, jint alpha) {
1439 #if !defined(UI_FEATURE_FONT_CUSTOM_FORMATS)
1440 assert(!LLUI_DISPLAY_isCustomFormat(font->format));
1441 return DW_DRAWING_SOFT_drawCharWithRotationNearestNeighbor(gc, c, font, x, y, xRotation, yRotation, angle, alpha);
1443 return UI_FONT_DRAWING_drawCharWithRotationNearestNeighbor(gc, c, font, x, y, xRotation, yRotation, angle, alpha);
1447 #if defined(UI_GC_SUPPORTED_FORMATS) && (UI_GC_SUPPORTED_FORMATS > 1)
1460 DRAWING_Status UI_DRAWING_writePixel(MICROUI_GraphicsContext *gc, jint x, jint y) {
1461 return (*UI_DRAWER_writePixel[gc->drawer])(gc, x, y);
1465 DRAWING_Status UI_DRAWING_drawLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX, jint endY) {
1466 return (*UI_DRAWER_drawLine[gc->drawer])(gc, startX, startY, endX, endY);
1470 DRAWING_Status UI_DRAWING_drawHorizontalLine(MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y) {
1471 return (*UI_DRAWER_drawHorizontalLine[gc->drawer])(gc, x1, x2, y);
1475 DRAWING_Status UI_DRAWING_drawVerticalLine(MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2) {
1476 return (*UI_DRAWER_drawVerticalLine[gc->drawer])(gc, x, y1, y2);
1480 DRAWING_Status UI_DRAWING_drawRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2) {
1481 return (*UI_DRAWER_drawRectangle[gc->drawer])(gc, x1, y1, x2, y2);
1485 DRAWING_Status UI_DRAWING_fillRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2) {
1486 return (*UI_DRAWER_fillRectangle[gc->drawer])(gc, x1, y1, x2, y2);
1490 DRAWING_Status UI_DRAWING_drawRoundedRectangle(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
1491 jint cornerEllipseWidth, jint cornerEllipseHeight) {
1492 return (*UI_DRAWER_drawRoundedRectangle[gc->drawer])(gc, x, y, width, height, cornerEllipseWidth,
1493 cornerEllipseHeight);
1497 DRAWING_Status UI_DRAWING_fillRoundedRectangle(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
1498 jint cornerEllipseWidth, jint cornerEllipseHeight) {
1499 return (*UI_DRAWER_fillRoundedRectangle[gc->drawer])(gc, x, y, width, height, cornerEllipseWidth,
1500 cornerEllipseHeight);
1504 DRAWING_Status UI_DRAWING_drawCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter, jfloat startAngle,
1506 return (*UI_DRAWER_drawCircleArc[gc->drawer])(gc, x, y, diameter, startAngle, arcAngle);
1510 DRAWING_Status UI_DRAWING_drawEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
1511 jfloat startAngle, jfloat arcAngle) {
1512 return (*UI_DRAWER_drawEllipseArc[gc->drawer])(gc, x, y, width, height, startAngle, arcAngle);
1516 DRAWING_Status UI_DRAWING_fillCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter, jfloat startAngle,
1518 return (*UI_DRAWER_fillCircleArc[gc->drawer])(gc, x, y, diameter, startAngle, arcAngle);
1522 DRAWING_Status UI_DRAWING_fillEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
1523 jfloat startAngle, jfloat arcAngle) {
1524 return (*UI_DRAWER_fillEllipseArc[gc->drawer])(gc, x, y, width, height, startAngle, arcAngle);
1528 DRAWING_Status UI_DRAWING_drawEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height) {
1529 return (*UI_DRAWER_drawEllipse[gc->drawer])(gc, x, y, width, height);
1533 DRAWING_Status UI_DRAWING_fillEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height) {
1534 return (*UI_DRAWER_fillEllipse[gc->drawer])(gc, x, y, width, height);
1538 DRAWING_Status UI_DRAWING_drawCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter) {
1539 return (*UI_DRAWER_drawCircle[gc->drawer])(gc, x, y, diameter);
1543 DRAWING_Status UI_DRAWING_fillCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter) {
1544 return (*UI_DRAWER_fillCircle[gc->drawer])(gc, x, y, diameter);
1548 DRAWING_Status UI_DRAWING_drawString(MICROUI_GraphicsContext *gc, jchar *chars, jint length, MICROUI_Font *font, jint x,
1550 return (*UI_DRAWER_drawString[gc->drawer])(gc, chars, length, font, x, y);
1554 DRAWING_Status UI_DRAWING_drawRenderableString(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
1555 MICROUI_Font *font, jint width,
1556 MICROUI_RenderableString *renderableString, jint x, jint y) {
1557 return (*UI_DRAWER_drawRenderableString[gc->drawer])(gc, chars, length, font, width, renderableString, x, y);
1561 DRAWING_Status UI_DRAWING_drawImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY,
1562 jint width, jint height, jint x, jint y, jint alpha) {
1563 return (*UI_DRAWER_drawImage[gc->drawer])(gc, img, regionX, regionY, width, height, x, y, alpha);
1567 DRAWING_Status UI_DRAWING_copyImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY,
1568 jint width, jint height, jint x, jint y) {
1569 return (*UI_DRAWER_copyImage[gc->drawer])(gc, img, regionX, regionY, width, height, x, y);
1573 DRAWING_Status UI_DRAWING_drawRegion(MICROUI_GraphicsContext *gc, jint regionX, jint regionY, jint width, jint height,
1574 jint x, jint y, jint alpha) {
1575 return (*UI_DRAWER_drawRegion[gc->drawer])(gc, regionX, regionY, width, height, x, y, alpha);
1579 DRAWING_Status UI_DRAWING_drawThickFadedPoint(MICROUI_GraphicsContext *gc, jint x, jint y, jint thickness, jint fade) {
1580 return (*UI_DRAWER_drawThickFadedPoint[gc->drawer])(gc, x, y, thickness, fade);
1584 DRAWING_Status UI_DRAWING_drawThickFadedLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
1585 jint endY, jint thickness, jint fade, DRAWING_Cap startCap,
1586 DRAWING_Cap endCap) {
1587 return (*UI_DRAWER_drawThickFadedLine[gc->drawer])(gc, startX, startY, endX, endY, thickness, fade, startCap,
1592 DRAWING_Status UI_DRAWING_drawThickFadedCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
1593 jint thickness, jint fade) {
1594 return (*UI_DRAWER_drawThickFadedCircle[gc->drawer])(gc, x, y, diameter, thickness, fade);
1598 DRAWING_Status UI_DRAWING_drawThickFadedCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
1599 jfloat startAngle, jfloat arcAngle, jint thickness, jint fade,
1600 DRAWING_Cap start, DRAWING_Cap end) {
1601 return (*UI_DRAWER_drawThickFadedCircleArc[gc->drawer])(gc, x, y, diameter, startAngle, arcAngle, thickness, fade,
1606 DRAWING_Status UI_DRAWING_drawThickFadedEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
1607 jint thickness, jint fade) {
1608 return (*UI_DRAWER_drawThickFadedEllipse[gc->drawer])(gc, x, y, width, height, thickness, fade);
1612 DRAWING_Status UI_DRAWING_drawThickLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX, jint endY,
1614 return (*UI_DRAWER_drawThickLine[gc->drawer])(gc, startX, startY, endX, endY, thickness);
1618 DRAWING_Status UI_DRAWING_drawThickCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter, jint thickness) {
1619 return (*UI_DRAWER_drawThickCircle[gc->drawer])(gc, x, y, diameter, thickness);
1623 DRAWING_Status UI_DRAWING_drawThickEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
1625 return (*UI_DRAWER_drawThickEllipse[gc->drawer])(gc, x, y, width, height, thickness);
1629 DRAWING_Status UI_DRAWING_drawThickCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
1630 jfloat startAngle, jfloat arcAngle, jint thickness) {
1631 return (*UI_DRAWER_drawThickCircleArc[gc->drawer])(gc, x, y, diameter, startAngle, arcAngle, thickness);
1635 DRAWING_Status UI_DRAWING_drawFlippedImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY,
1636 jint width, jint height, jint x, jint y, DRAWING_Flip transformation,
1638 return (*UI_DRAWER_drawFlippedImage[gc->drawer])(gc, img, regionX, regionY, width, height, x, y, transformation,
1643 DRAWING_Status UI_DRAWING_drawRotatedImageNearestNeighbor(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
1644 jint y, jint rotationX, jint rotationY, jfloat angle,
1646 return (*UI_DRAWER_drawRotatedImageNearestNeighbor[gc->drawer])(gc, img, x, y, rotationX, rotationY, angle, alpha);
1650 DRAWING_Status UI_DRAWING_drawRotatedImageBilinear(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y,
1651 jint rotationX, jint rotationY, jfloat angle, jint alpha) {
1652 return (*UI_DRAWER_drawRotatedImageBilinear[gc->drawer])(gc, img, x, y, rotationX, rotationY, angle, alpha);
1656 DRAWING_Status UI_DRAWING_drawScaledImageNearestNeighbor(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
1657 jint y, jfloat factorX, jfloat factorY, jint alpha) {
1658 return (*UI_DRAWER_drawScaledImageNearestNeighbor[gc->drawer])(gc, img, x, y, factorX, factorY, alpha);
1662 DRAWING_Status UI_DRAWING_drawScaledImageBilinear(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y,
1663 jfloat factorX, jfloat factorY, jint alpha) {
1664 return (*UI_DRAWER_drawScaledImageBilinear[gc->drawer])(gc, img, x, y, factorX, factorY, alpha);
1668 DRAWING_Status UI_DRAWING_drawScaledStringBilinear(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
1669 MICROUI_Font *font, jint x, jint y, jfloat xRatio, jfloat yRatio) {
1670 return (*UI_DRAWER_drawScaledStringBilinear[gc->drawer])(gc, chars, length, font, x, y, xRatio, yRatio);
1674 DRAWING_Status UI_DRAWING_drawScaledRenderableStringBilinear(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
1675 MICROUI_Font *font, jint width,
1676 MICROUI_RenderableString *renderableString, jint x, jint y,
1677 jfloat xRatio, jfloat yRatio) {
1678 return (*UI_DRAWER_drawScaledRenderableStringBilinear[gc->drawer])(gc, chars, length, font, width, renderableString,
1679 x, y, xRatio, yRatio);
1683 DRAWING_Status UI_DRAWING_drawCharWithRotationBilinear(MICROUI_GraphicsContext *gc, jchar c, MICROUI_Font *font, jint x,
1684 jint y, jint xRotation, jint yRotation, jfloat angle,
1686 return (*UI_DRAWER_drawCharWithRotationBilinear[gc->drawer])(gc, c, font, x, y, xRotation, yRotation, angle, alpha);
1690 DRAWING_Status UI_DRAWING_drawCharWithRotationNearestNeighbor(MICROUI_GraphicsContext *gc, jchar c, MICROUI_Font *font,
1691 jint x, jint y, jint xRotation, jint yRotation,
1692 jfloat angle, jint alpha) {
1693 return (*UI_DRAWER_drawCharWithRotationNearestNeighbor[gc->drawer])(gc, c, font, x, y, xRotation, yRotation, angle,
1710 BSP_DECLARE_WEAK_FCNT
bool UI_DRAWING_is_drawer_1(jbyte image_format) {
1717 BSP_DECLARE_WEAK_FCNT uint32_t UI_DRAWING_getNewImageStrideInBytes_1(jbyte image_format, uint32_t width,
1718 uint32_t height, uint32_t default_stride) {
1724 return default_stride;
1728 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_adjustNewImageCharacteristics_1(jbyte image_format, uint32_t width,
1729 uint32_t height, uint32_t *data_size,
1730 uint32_t *data_alignment) {
1735 (void)data_alignment;
1741 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_initializeNewImage_1(MICROUI_Image *image) {
1747 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_freeImageResources_1(MICROUI_Image *image) {
1753 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_writePixel_1(MICROUI_GraphicsContext *gc, jint x, jint y) {
1754 return UI_DRAWING_STUB_writePixel(gc, x, y);
1758 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawLine_1(MICROUI_GraphicsContext *gc, jint startX, jint startY,
1759 jint endX, jint endY) {
1760 return UI_DRAWING_STUB_drawLine(gc, startX, startY, endX, endY);
1764 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawHorizontalLine_1(MICROUI_GraphicsContext *gc, jint x1, jint x2,
1766 return UI_DRAWING_STUB_drawHorizontalLine(gc, x1, x2, y);
1770 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawVerticalLine_1(MICROUI_GraphicsContext *gc, jint x, jint y1,
1772 return UI_DRAWING_STUB_drawVerticalLine(gc, x, y1, y2);
1776 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRectangle_1(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2,
1778 return UI_DRAWING_STUB_drawRectangle(gc, x1, y1, x2, y2);
1782 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillRectangle_1(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2,
1784 return UI_DRAWING_STUB_fillRectangle(gc, x1, y1, x2, y2);
1788 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRoundedRectangle_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1789 jint width, jint height, jint cornerEllipseWidth,
1790 jint cornerEllipseHeight) {
1791 return UI_DRAWING_STUB_drawRoundedRectangle(gc, x, y, width, height, cornerEllipseWidth, cornerEllipseHeight);
1795 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillRoundedRectangle_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1796 jint width, jint height, jint cornerEllipseWidth,
1797 jint cornerEllipseHeight) {
1798 return UI_DRAWING_STUB_fillRoundedRectangle(gc, x, y, width, height, cornerEllipseWidth, cornerEllipseHeight);
1802 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1803 jint diameter, jfloat startAngle, jfloat arcAngle) {
1804 return UI_DRAWING_STUB_drawCircleArc(gc, x, y, diameter, startAngle, arcAngle);
1808 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawEllipseArc_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1809 jint width, jint height, jfloat startAngle,
1811 return UI_DRAWING_STUB_drawEllipseArc(gc, x, y, width, height, startAngle, arcAngle);
1815 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1816 jint diameter, jfloat startAngle, jfloat arcAngle) {
1817 return UI_DRAWING_STUB_fillCircleArc(gc, x, y, diameter, startAngle, arcAngle);
1821 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillEllipseArc_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1822 jint width, jint height, jfloat startAngle,
1824 return UI_DRAWING_STUB_fillEllipseArc(gc, x, y, width, height, startAngle, arcAngle);
1828 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
1830 return UI_DRAWING_STUB_drawEllipse(gc, x, y, width, height);
1834 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
1836 return UI_DRAWING_STUB_fillEllipse(gc, x, y, width, height);
1840 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1842 return UI_DRAWING_STUB_drawCircle(gc, x, y, diameter);
1846 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1848 return UI_DRAWING_STUB_fillCircle(gc, x, y, diameter);
1852 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawString_1(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
1853 MICROUI_Font *font, jint x, jint y) {
1854 return UI_FONT_DRAWING_drawString(gc, chars, length, font, x, y);
1858 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRenderableString_1(MICROUI_GraphicsContext *gc, jchar *chars,
1859 jint length, MICROUI_Font *font, jint width,
1860 MICROUI_RenderableString *renderableString,
1862 return UI_FONT_DRAWING_drawRenderableString(gc, chars, length, font, width, renderableString, x, y);
1866 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawImage_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
1867 jint regionX, jint regionY, jint width, jint height, jint x,
1868 jint y, jint alpha) {
1869 return UI_IMAGE_DRAWING_draw(gc, img, regionX, regionY, width, height, x, y, alpha);
1873 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_copyImage_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
1874 jint regionX, jint regionY, jint width, jint height, jint x,
1876 return UI_IMAGE_DRAWING_copy(gc, img, regionX, regionY, width, height, x, y);
1880 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRegion_1(MICROUI_GraphicsContext *gc, jint regionX, jint regionY,
1881 jint width, jint height, jint x, jint y, jint alpha) {
1882 return UI_IMAGE_DRAWING_drawRegion(gc, regionX, regionY, width, height, x, y, alpha);
1886 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedPoint_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1887 jint thickness, jint fade) {
1888 return UI_DRAWING_STUB_drawThickFadedPoint(gc, x, y, thickness, fade);
1892 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedLine_1(MICROUI_GraphicsContext *gc, jint startX,
1893 jint startY, jint endX, jint endY, jint thickness,
1894 jint fade, DRAWING_Cap startCap,
1895 DRAWING_Cap endCap) {
1896 return UI_DRAWING_STUB_drawThickFadedLine(gc, startX, startY, endX, endY, thickness, fade, startCap, endCap);
1900 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1901 jint diameter, jint thickness, jint fade) {
1902 return UI_DRAWING_STUB_drawThickFadedCircle(gc, x, y, diameter, thickness, fade);
1906 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1907 jint diameter, jfloat startAngle,
1908 jfloat arcAngle, jint thickness, jint fade,
1909 DRAWING_Cap start, DRAWING_Cap end) {
1910 return UI_DRAWING_STUB_drawThickFadedCircleArc(gc, x, y, diameter, startAngle, arcAngle, thickness, fade, start,
1915 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1916 jint width, jint height, jint thickness,
1918 return UI_DRAWING_STUB_drawThickFadedEllipse(gc, x, y, width, height, thickness, fade);
1922 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickLine_1(MICROUI_GraphicsContext *gc, jint startX, jint startY,
1923 jint endX, jint endY, jint thickness) {
1924 return UI_DRAWING_STUB_drawThickLine(gc, startX, startY, endX, endY, thickness);
1928 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickCircle_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1929 jint diameter, jint thickness) {
1930 return UI_DRAWING_STUB_drawThickCircle(gc, x, y, diameter, thickness);
1934 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickEllipse_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1935 jint width, jint height, jint thickness) {
1936 return UI_DRAWING_STUB_drawThickEllipse(gc, x, y, width, height, thickness);
1940 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickCircleArc_1(MICROUI_GraphicsContext *gc, jint x, jint y,
1941 jint diameter, jfloat startAngle, jfloat arcAngle,
1943 return UI_DRAWING_STUB_drawThickCircleArc(gc, x, y, diameter, startAngle, arcAngle, thickness);
1947 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawFlippedImage_1(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
1948 jint regionX, jint regionY, jint width, jint height,
1949 jint x, jint y, DRAWING_Flip transformation,
1951 return UI_IMAGE_DRAWING_drawFlipped(gc, img, regionX, regionY, width, height, x, y, transformation, alpha);
1955 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRotatedImageNearestNeighbor_1(MICROUI_GraphicsContext *gc,
1956 MICROUI_Image *img, jint x, jint y,
1957 jint rotationX, jint rotationY,
1958 jfloat angle, jint alpha) {
1959 return UI_IMAGE_DRAWING_drawRotatedNearestNeighbor(gc, img, x, y, rotationX, rotationY, angle, alpha);
1963 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRotatedImageBilinear_1(MICROUI_GraphicsContext *gc,
1964 MICROUI_Image *img, jint x, jint y,
1965 jint rotationX, jint rotationY, jfloat angle,
1967 return UI_IMAGE_DRAWING_drawRotatedBilinear(gc, img, x, y, rotationX, rotationY, angle, alpha);
1971 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawScaledImageNearestNeighbor_1(MICROUI_GraphicsContext *gc,
1972 MICROUI_Image *img, jint x, jint y,
1973 jfloat factorX, jfloat factorY,
1975 return UI_IMAGE_DRAWING_drawScaledNearestNeighbor(gc, img, x, y, factorX, factorY, alpha);
1979 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawScaledImageBilinear_1(MICROUI_GraphicsContext *gc,
1980 MICROUI_Image *img, jint x, jint y,
1981 jfloat factorX, jfloat factorY, jint alpha) {
1982 return UI_IMAGE_DRAWING_drawScaledBilinear(gc, img, x, y, factorX, factorY, alpha);
1986 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawScaledStringBilinear_1(MICROUI_GraphicsContext *gc, jchar *chars,
1987 jint length, MICROUI_Font *font, jint x,
1988 jint y, jfloat xRatio, jfloat yRatio) {
1989 return UI_FONT_DRAWING_drawScaledStringBilinear(gc, chars, length, font, x, y, xRatio, yRatio);
1993 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawScaledRenderableStringBilinear_1(MICROUI_GraphicsContext *gc,
1994 jchar *chars, jint length,
1995 MICROUI_Font *font, jint width,
1996 MICROUI_RenderableString *
1997 renderableString, jint x, jint y,
1998 jfloat xRatio, jfloat yRatio) {
1999 return UI_FONT_DRAWING_drawScaledRenderableStringBilinear(gc, chars, length, font, width, renderableString, x, y,
2004 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawCharWithRotationBilinear_1(MICROUI_GraphicsContext *gc, jchar c,
2005 MICROUI_Font *font, jint x, jint y,
2006 jint xRotation, jint yRotation,
2007 jfloat angle, jint alpha) {
2008 return UI_FONT_DRAWING_drawCharWithRotationBilinear(gc, c, font, x, y, xRotation, yRotation, angle, alpha);
2012 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawCharWithRotationNearestNeighbor_1(MICROUI_GraphicsContext *gc,
2013 jchar c, MICROUI_Font *font,
2014 jint x, jint y, jint xRotation,
2015 jint yRotation, jfloat angle,
2017 return UI_FONT_DRAWING_drawCharWithRotationNearestNeighbor(gc, c, font, x, y, xRotation, yRotation, angle, alpha);
2020 #if (UI_GC_SUPPORTED_FORMATS > 2)
2035 BSP_DECLARE_WEAK_FCNT
bool UI_DRAWING_is_drawer_2(jbyte image_format) {
2042 BSP_DECLARE_WEAK_FCNT uint32_t UI_DRAWING_getNewImageStrideInBytes_2(jbyte image_format, uint32_t width,
2043 uint32_t height, uint32_t default_stride) {
2049 return default_stride;
2053 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_adjustNewImageCharacteristics_2(jbyte image_format, uint32_t width,
2054 uint32_t height, uint32_t *data_size,
2055 uint32_t *data_alignment) {
2060 (void)data_alignment;
2066 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_initializeNewImage_2(MICROUI_Image *image) {
2072 BSP_DECLARE_WEAK_FCNT
void UI_DRAWING_freeImageResources_2(MICROUI_Image *image) {
2078 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_writePixel_2(MICROUI_GraphicsContext *gc, jint x, jint y) {
2079 return UI_DRAWING_STUB_writePixel(gc, x, y);
2083 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawLine_2(MICROUI_GraphicsContext *gc, jint startX, jint startY,
2084 jint endX, jint endY) {
2085 return UI_DRAWING_STUB_drawLine(gc, startX, startY, endX, endY);
2089 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawHorizontalLine_2(MICROUI_GraphicsContext *gc, jint x1, jint x2,
2091 return UI_DRAWING_STUB_drawHorizontalLine(gc, x1, x2, y);
2095 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawVerticalLine_2(MICROUI_GraphicsContext *gc, jint x, jint y1,
2097 return UI_DRAWING_STUB_drawVerticalLine(gc, x, y1, y2);
2101 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRectangle_2(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2,
2103 return UI_DRAWING_STUB_drawRectangle(gc, x1, y1, x2, y2);
2107 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillRectangle_2(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2,
2109 return UI_DRAWING_STUB_fillRectangle(gc, x1, y1, x2, y2);
2113 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRoundedRectangle_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2114 jint width, jint height, jint cornerEllipseWidth,
2115 jint cornerEllipseHeight) {
2116 return UI_DRAWING_STUB_drawRoundedRectangle(gc, x, y, width, height, cornerEllipseWidth, cornerEllipseHeight);
2120 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillRoundedRectangle_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2121 jint width, jint height, jint cornerEllipseWidth,
2122 jint cornerEllipseHeight) {
2123 return UI_DRAWING_STUB_fillRoundedRectangle(gc, x, y, width, height, cornerEllipseWidth, cornerEllipseHeight);
2127 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2128 jint diameter, jfloat startAngle, jfloat arcAngle) {
2129 return UI_DRAWING_STUB_drawCircleArc(gc, x, y, diameter, startAngle, arcAngle);
2133 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawEllipseArc_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2134 jint width, jint height, jfloat startAngle,
2136 return UI_DRAWING_STUB_drawEllipseArc(gc, x, y, width, height, startAngle, arcAngle);
2140 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2141 jint diameter, jfloat startAngle, jfloat arcAngle) {
2142 return UI_DRAWING_STUB_fillCircleArc(gc, x, y, diameter, startAngle, arcAngle);
2146 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillEllipseArc_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2147 jint width, jint height, jfloat startAngle,
2149 return UI_DRAWING_STUB_fillEllipseArc(gc, x, y, width, height, startAngle, arcAngle);
2153 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
2155 return UI_DRAWING_STUB_drawEllipse(gc, x, y, width, height);
2159 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
2161 return UI_DRAWING_STUB_fillEllipse(gc, x, y, width, height);
2165 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2167 return UI_DRAWING_STUB_drawCircle(gc, x, y, diameter);
2171 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_fillCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2173 return UI_DRAWING_STUB_fillCircle(gc, x, y, diameter);
2177 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawString_2(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
2178 MICROUI_Font *font, jint x, jint y) {
2179 return UI_FONT_DRAWING_drawString(gc, chars, length, font, x, y);
2183 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRenderableString_2(MICROUI_GraphicsContext *gc, jchar *chars,
2184 jint length, MICROUI_Font *font, jint width,
2185 MICROUI_RenderableString *renderableString,
2187 return UI_FONT_DRAWING_drawRenderableString(gc, chars, length, font, width, renderableString, x, y);
2191 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawImage_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
2192 jint regionX, jint regionY, jint width, jint height, jint x,
2193 jint y, jint alpha) {
2194 return UI_IMAGE_DRAWING_draw(gc, img, regionX, regionY, width, height, x, y, alpha);
2198 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_copyImage_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
2199 jint regionX, jint regionY, jint width, jint height, jint x,
2201 return UI_IMAGE_DRAWING_copy(gc, img, regionX, regionY, width, height, x, y);
2205 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRegion_2(MICROUI_GraphicsContext *gc, jint regionX, jint regionY,
2206 jint width, jint height, jint x, jint y, jint alpha) {
2207 return UI_IMAGE_DRAWING_drawRegion(gc, regionX, regionY, width, height, x, y, alpha);
2211 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedPoint_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2212 jint thickness, jint fade) {
2213 return UI_DRAWING_STUB_drawThickFadedPoint(gc, x, y, thickness, fade);
2217 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedLine_2(MICROUI_GraphicsContext *gc, jint startX,
2218 jint startY, jint endX, jint endY, jint thickness,
2219 jint fade, DRAWING_Cap startCap,
2220 DRAWING_Cap endCap) {
2221 return UI_DRAWING_STUB_drawThickFadedLine(gc, startX, startY, endX, endY, thickness, fade, startCap, endCap);
2225 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2226 jint diameter, jint thickness, jint fade) {
2227 return UI_DRAWING_STUB_drawThickFadedCircle(gc, x, y, diameter, thickness, fade);
2231 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2232 jint diameter, jfloat startAngle,
2233 jfloat arcAngle, jint thickness, jint fade,
2234 DRAWING_Cap start, DRAWING_Cap end) {
2235 return UI_DRAWING_STUB_drawThickFadedCircleArc(gc, x, y, diameter, startAngle, arcAngle, thickness, fade, start,
2240 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickFadedEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2241 jint width, jint height, jint thickness,
2243 return UI_DRAWING_STUB_drawThickFadedEllipse(gc, x, y, width, height, thickness, fade);
2247 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickLine_2(MICROUI_GraphicsContext *gc, jint startX, jint startY,
2248 jint endX, jint endY, jint thickness) {
2249 return UI_DRAWING_STUB_drawThickLine(gc, startX, startY, endX, endY, thickness);
2253 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickCircle_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2254 jint diameter, jint thickness) {
2255 return UI_DRAWING_STUB_drawThickCircle(gc, x, y, diameter, thickness);
2259 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickEllipse_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2260 jint width, jint height, jint thickness) {
2261 return UI_DRAWING_STUB_drawThickEllipse(gc, x, y, width, height, thickness);
2265 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawThickCircleArc_2(MICROUI_GraphicsContext *gc, jint x, jint y,
2266 jint diameter, jfloat startAngle, jfloat arcAngle,
2268 return UI_DRAWING_STUB_drawThickCircleArc(gc, x, y, diameter, startAngle, arcAngle, thickness);
2272 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawFlippedImage_2(MICROUI_GraphicsContext *gc, MICROUI_Image *img,
2273 jint regionX, jint regionY, jint width, jint height,
2274 jint x, jint y, DRAWING_Flip transformation,
2276 return UI_IMAGE_DRAWING_drawFlipped(gc, img, regionX, regionY, width, height, x, y, transformation, alpha);
2280 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRotatedImageNearestNeighbor_2(MICROUI_GraphicsContext *gc,
2281 MICROUI_Image *img, jint x, jint y,
2282 jint rotationX, jint rotationY,
2283 jfloat angle, jint alpha) {
2284 return UI_IMAGE_DRAWING_drawRotatedNearestNeighbor(gc, img, x, y, rotationX, rotationY, angle, alpha);
2288 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawRotatedImageBilinear_2(MICROUI_GraphicsContext *gc,
2289 MICROUI_Image *img, jint x, jint y,
2290 jint rotationX, jint rotationY, jfloat angle,
2292 return UI_IMAGE_DRAWING_drawRotatedBilinear(gc, img, x, y, rotationX, rotationY, angle, alpha);
2296 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawScaledImageNearestNeighbor_2(MICROUI_GraphicsContext *gc,
2297 MICROUI_Image *img, jint x, jint y,
2298 jfloat factorX, jfloat factorY,
2300 return UI_IMAGE_DRAWING_drawScaledNearestNeighbor(gc, img, x, y, factorX, factorY, alpha);
2304 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawScaledImageBilinear_2(MICROUI_GraphicsContext *gc,
2305 MICROUI_Image *img, jint x, jint y,
2306 jfloat factorX, jfloat factorY, jint alpha) {
2307 return UI_IMAGE_DRAWING_drawScaledBilinear(gc, img, x, y, factorX, factorY, alpha);
2311 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawScaledStringBilinear_2(MICROUI_GraphicsContext *gc, jchar *chars,
2312 jint length, MICROUI_Font *font, jint x,
2313 jint y, jfloat xRatio, jfloat yRatio) {
2314 return UI_FONT_DRAWING_drawScaledStringBilinear(gc, chars, length, font, x, y, xRatio, yRatio);
2318 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawScaledRenderableStringBilinear_2(MICROUI_GraphicsContext *gc,
2319 jchar *chars, jint length,
2320 MICROUI_Font *font, jint width,
2321 MICROUI_RenderableString *
2322 renderableString, jint x, jint y,
2323 jfloat xRatio, jfloat yRatio) {
2324 return UI_FONT_DRAWING_drawScaledRenderableStringBilinear(gc, chars, length, font, width, renderableString, x, y,
2329 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawCharWithRotationBilinear_2(MICROUI_GraphicsContext *gc, jchar c,
2330 MICROUI_Font *font, jint x, jint y,
2331 jint xRotation, jint yRotation,
2332 jfloat angle, jint alpha) {
2333 return UI_FONT_DRAWING_drawCharWithRotationBilinear(gc, c, font, x, y, xRotation, yRotation, angle, alpha);
2337 BSP_DECLARE_WEAK_FCNT DRAWING_Status UI_DRAWING_drawCharWithRotationNearestNeighbor_2(MICROUI_GraphicsContext *gc,
2338 jchar c, MICROUI_Font *font,
2339 jint x, jint y, jint xRotation,
2340 jint yRotation, jfloat angle,
2342 return UI_FONT_DRAWING_drawCharWithRotationNearestNeighbor(gc, c, font, x, y, xRotation, yRotation, angle, alpha);
MicroEJ MicroUI library low level API: enable some features according to the hardware capabilities.