22 #include <LLUI_DISPLAY.h>
24 #include "ui_drawing_stub.h"
25 #include "ui_font_drawing.h"
31 static inline DRAWING_Status not_implemented(MICROUI_GraphicsContext *gc) {
32 LLUI_DISPLAY_reportError(gc, DRAWING_LOG_NOT_IMPLEMENTED);
41 DRAWING_Status UI_DRAWING_STUB_writePixel(MICROUI_GraphicsContext *gc, jint x, jint y) {
45 return not_implemented(gc);
49 DRAWING_Status UI_DRAWING_STUB_drawLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX, jint endY) {
55 return not_implemented(gc);
59 DRAWING_Status UI_DRAWING_STUB_drawHorizontalLine(MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y) {
64 return not_implemented(gc);
68 DRAWING_Status UI_DRAWING_STUB_drawVerticalLine(MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2) {
73 return not_implemented(gc);
77 DRAWING_Status UI_DRAWING_STUB_drawRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2) {
83 return not_implemented(gc);
87 DRAWING_Status UI_DRAWING_STUB_fillRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2) {
93 return not_implemented(gc);
97 DRAWING_Status UI_DRAWING_STUB_drawRoundedRectangle(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
98 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight) {
104 (void)cornerEllipseWidth;
105 (void)cornerEllipseHeight;
106 return not_implemented(gc);
110 DRAWING_Status UI_DRAWING_STUB_fillRoundedRectangle(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
111 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight) {
117 (void)cornerEllipseWidth;
118 (void)cornerEllipseHeight;
119 return not_implemented(gc);
123 DRAWING_Status UI_DRAWING_STUB_drawCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
124 jfloat startAngle, jfloat arcAngle) {
131 return not_implemented(gc);
135 DRAWING_Status UI_DRAWING_STUB_drawEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
136 jfloat startAngle, jfloat arcAngle) {
144 return not_implemented(gc);
148 DRAWING_Status UI_DRAWING_STUB_fillCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
149 jfloat startAngle, jfloat arcAngle) {
156 return not_implemented(gc);
160 DRAWING_Status UI_DRAWING_STUB_fillEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
161 jfloat startAngle, jfloat arcAngle) {
169 return not_implemented(gc);
173 DRAWING_Status UI_DRAWING_STUB_drawEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height) {
179 return not_implemented(gc);
183 DRAWING_Status UI_DRAWING_STUB_fillEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height) {
189 return not_implemented(gc);
193 DRAWING_Status UI_DRAWING_STUB_drawCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter) {
198 return not_implemented(gc);
202 DRAWING_Status UI_DRAWING_STUB_fillCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter) {
207 return not_implemented(gc);
211 DRAWING_Status UI_DRAWING_STUB_drawString(MICROUI_GraphicsContext *gc, jchar *chars, jint length, MICROUI_Font *font,
219 return not_implemented(gc);
223 jint UI_DRAWING_STUB_stringWidth(jchar *chars, jint length, MICROUI_Font *font) {
231 jint UI_DRAWING_STUB_initializeRenderableStringSNIContext(jchar *chars, jint length, MICROUI_Font *font,
232 MICROUI_RenderableString *renderableString) {
233 (void)renderableString;
234 return UI_FONT_DRAWING_stringWidth(chars, length, font);
238 DRAWING_Status UI_DRAWING_STUB_drawRenderableString(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
239 MICROUI_Font *font, jint width,
240 MICROUI_RenderableString *renderableString, jint x, jint y) {
242 (void)renderableString;
243 return UI_FONT_DRAWING_drawString(gc, chars, length, font, x, y);
247 DRAWING_Status UI_DRAWING_STUB_drawImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY,
248 jint width, jint height, jint x, jint y, jint alpha) {
258 return not_implemented(gc);
262 DRAWING_Status UI_DRAWING_STUB_copyImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY,
263 jint width, jint height, jint x, jint y) {
272 return not_implemented(gc);
276 DRAWING_Status UI_DRAWING_STUB_drawRegion(MICROUI_GraphicsContext *gc, jint regionX, jint regionY, jint width,
277 jint height, jint x, jint y, jint alpha) {
286 return not_implemented(gc);
290 DRAWING_Status UI_DRAWING_STUB_drawThickFadedPoint(MICROUI_GraphicsContext *gc, jint x, jint y, jint thickness,
297 return not_implemented(gc);
301 DRAWING_Status UI_DRAWING_STUB_drawThickFadedLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
302 jint endY, jint thickness, jint fade, DRAWING_Cap startCap,
303 DRAWING_Cap endCap) {
313 return not_implemented(gc);
317 DRAWING_Status UI_DRAWING_STUB_drawThickFadedCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
318 jint thickness, jint fade) {
325 return not_implemented(gc);
329 DRAWING_Status UI_DRAWING_STUB_drawThickFadedCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
330 jfloat startAngle, jfloat arcAngle, jint thickness, jint fade,
331 DRAWING_Cap start, DRAWING_Cap end) {
342 return not_implemented(gc);
346 DRAWING_Status UI_DRAWING_STUB_drawThickFadedEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
347 jint height, jint thickness, jint fade) {
355 return not_implemented(gc);
359 DRAWING_Status UI_DRAWING_STUB_drawThickLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
360 jint endY, jint thickness) {
367 return not_implemented(gc);
371 DRAWING_Status UI_DRAWING_STUB_drawThickCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
378 return not_implemented(gc);
382 DRAWING_Status UI_DRAWING_STUB_drawThickEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
390 return not_implemented(gc);
394 DRAWING_Status UI_DRAWING_STUB_drawThickCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
395 jfloat startAngle, jfloat arcAngle, jint thickness) {
403 return not_implemented(gc);
407 DRAWING_Status UI_DRAWING_STUB_drawFlippedImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
408 jint regionY, jint width, jint height, jint x, jint y,
409 DRAWING_Flip transformation, jint alpha) {
418 (void)transformation;
420 return not_implemented(gc);
424 DRAWING_Status UI_DRAWING_STUB_drawRotatedImageNearestNeighbor(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
425 jint y, jint rotationX, jint rotationY, jfloat angle,
435 return not_implemented(gc);
439 DRAWING_Status UI_DRAWING_STUB_drawRotatedImageBilinear(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y,
440 jint rotationX, jint rotationY, jfloat angle, jint alpha) {
449 return not_implemented(gc);
453 DRAWING_Status UI_DRAWING_STUB_drawScaledImageNearestNeighbor(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
454 jint y, jfloat factorX, jfloat factorY, jint alpha) {
462 return not_implemented(gc);
466 DRAWING_Status UI_DRAWING_STUB_drawScaledImageBilinear(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y,
467 jfloat factorX, jfloat factorY, jint alpha) {
475 return not_implemented(gc);
479 DRAWING_Status UI_DRAWING_STUB_drawScaledStringBilinear(MICROUI_GraphicsContext *gc, jchar *chars, jint length,
480 MICROUI_Font *font, jint x, jint y, jfloat xRatio,
490 return not_implemented(gc);
494 DRAWING_Status UI_DRAWING_STUB_drawScaledRenderableStringBilinear(MICROUI_GraphicsContext *gc, jchar *chars,
495 jint length, MICROUI_Font *font, jint width,
496 MICROUI_RenderableString *renderableString, jint x,
497 jint y, jfloat xRatio, jfloat yRatio) {
499 (void)renderableString;
500 return UI_FONT_DRAWING_drawScaledStringBilinear(gc, chars, length, font, x, y, xRatio, yRatio);
504 DRAWING_Status UI_DRAWING_STUB_drawCharWithRotationBilinear(MICROUI_GraphicsContext *gc, jchar c, MICROUI_Font *font,
505 jint x, jint y, jint xRotation, jint yRotation,
506 jfloat angle, jint alpha) {
516 return not_implemented(gc);
520 DRAWING_Status UI_DRAWING_STUB_drawCharWithRotationNearestNeighbor(MICROUI_GraphicsContext *gc, jchar c,
521 MICROUI_Font *font, jint x, jint y, jint xRotation,
522 jint yRotation, jfloat angle, jint alpha) {
532 return not_implemented(gc);