20 #include <LLUI_DISPLAY.h>
22 #include "ui_drawing_stub.h"
28 static inline DRAWING_Status not_implemented(MICROUI_GraphicsContext *gc) {
29 LLUI_DISPLAY_reportError(gc, DRAWING_LOG_NOT_IMPLEMENTED);
38 DRAWING_Status UI_DRAWING_STUB_writePixel(MICROUI_GraphicsContext *gc, jint x, jint y) {
42 return not_implemented(gc);
46 DRAWING_Status UI_DRAWING_STUB_drawLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX, jint endY) {
52 return not_implemented(gc);
56 DRAWING_Status UI_DRAWING_STUB_drawHorizontalLine(MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y) {
61 return not_implemented(gc);
65 DRAWING_Status UI_DRAWING_STUB_drawVerticalLine(MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2) {
70 return not_implemented(gc);
74 DRAWING_Status UI_DRAWING_STUB_drawRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2) {
80 return not_implemented(gc);
84 DRAWING_Status UI_DRAWING_STUB_fillRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2) {
90 return not_implemented(gc);
94 DRAWING_Status UI_DRAWING_STUB_drawRoundedRectangle(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
95 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight) {
101 (void)cornerEllipseWidth;
102 (void)cornerEllipseHeight;
103 return not_implemented(gc);
107 DRAWING_Status UI_DRAWING_STUB_fillRoundedRectangle(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
108 jint height, jint cornerEllipseWidth, jint cornerEllipseHeight) {
114 (void)cornerEllipseWidth;
115 (void)cornerEllipseHeight;
116 return not_implemented(gc);
120 DRAWING_Status UI_DRAWING_STUB_drawCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
121 jfloat startAngle, jfloat arcAngle) {
128 return not_implemented(gc);
132 DRAWING_Status UI_DRAWING_STUB_drawEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
133 jfloat startAngle, jfloat arcAngle) {
141 return not_implemented(gc);
145 DRAWING_Status UI_DRAWING_STUB_fillCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
146 jfloat startAngle, jfloat arcAngle) {
153 return not_implemented(gc);
157 DRAWING_Status UI_DRAWING_STUB_fillEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
158 jfloat startAngle, jfloat arcAngle) {
166 return not_implemented(gc);
170 DRAWING_Status UI_DRAWING_STUB_drawEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height) {
176 return not_implemented(gc);
180 DRAWING_Status UI_DRAWING_STUB_fillEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height) {
186 return not_implemented(gc);
190 DRAWING_Status UI_DRAWING_STUB_drawCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter) {
195 return not_implemented(gc);
199 DRAWING_Status UI_DRAWING_STUB_fillCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter) {
204 return not_implemented(gc);
208 DRAWING_Status UI_DRAWING_STUB_drawImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY,
209 jint width, jint height, jint x, jint y, jint alpha) {
219 return not_implemented(gc);
223 DRAWING_Status UI_DRAWING_STUB_copyImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX, jint regionY,
224 jint width, jint height, jint x, jint y) {
233 return not_implemented(gc);
237 DRAWING_Status UI_DRAWING_STUB_drawRegion(MICROUI_GraphicsContext *gc, jint regionX, jint regionY, jint width,
238 jint height, jint x, jint y, jint alpha) {
247 return not_implemented(gc);
251 DRAWING_Status UI_DRAWING_STUB_drawThickFadedPoint(MICROUI_GraphicsContext *gc, jint x, jint y, jint thickness,
258 return not_implemented(gc);
262 DRAWING_Status UI_DRAWING_STUB_drawThickFadedLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
263 jint endY, jint thickness, jint fade, DRAWING_Cap startCap,
264 DRAWING_Cap endCap) {
274 return not_implemented(gc);
278 DRAWING_Status UI_DRAWING_STUB_drawThickFadedCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
279 jint thickness, jint fade) {
286 return not_implemented(gc);
290 DRAWING_Status UI_DRAWING_STUB_drawThickFadedCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
291 jfloat startAngle, jfloat arcAngle, jint thickness, jint fade,
292 DRAWING_Cap start, DRAWING_Cap end) {
303 return not_implemented(gc);
307 DRAWING_Status UI_DRAWING_STUB_drawThickFadedEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
308 jint height, jint thickness, jint fade) {
316 return not_implemented(gc);
320 DRAWING_Status UI_DRAWING_STUB_drawThickLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
321 jint endY, jint thickness) {
328 return not_implemented(gc);
332 DRAWING_Status UI_DRAWING_STUB_drawThickCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
339 return not_implemented(gc);
343 DRAWING_Status UI_DRAWING_STUB_drawThickEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
351 return not_implemented(gc);
355 DRAWING_Status UI_DRAWING_STUB_drawThickCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
356 jfloat startAngle, jfloat arcAngle, jint thickness) {
364 return not_implemented(gc);
368 DRAWING_Status UI_DRAWING_STUB_drawFlippedImage(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint regionX,
369 jint regionY, jint width, jint height, jint x, jint y,
370 DRAWING_Flip transformation, jint alpha) {
379 (void)transformation;
381 return not_implemented(gc);
385 DRAWING_Status UI_DRAWING_STUB_drawRotatedImageNearestNeighbor(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
386 jint y, jint rotationX, jint rotationY, jfloat angle,
396 return not_implemented(gc);
400 DRAWING_Status UI_DRAWING_STUB_drawRotatedImageBilinear(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y,
401 jint rotationX, jint rotationY, jfloat angle, jint alpha) {
410 return not_implemented(gc);
414 DRAWING_Status UI_DRAWING_STUB_drawScaledImageNearestNeighbor(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
415 jint y, jfloat factorX, jfloat factorY, jint alpha) {
423 return not_implemented(gc);
427 DRAWING_Status UI_DRAWING_STUB_drawScaledImageBilinear(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y,
428 jfloat factorX, jfloat factorY, jint alpha) {
436 return not_implemented(gc);