microui  4.1.0
microui
ui_drawing_stub.c
1 /*
2  * C
3  *
4  * Copyright 2023-2024 MicroEJ Corp. All rights reserved.
5  * Use of this source code is governed by a BSD-style license that can be found with this software.
6  */
7 
8 /*
9  * @file
10  * @brief Implementation of all drawing functions of ui_drawing_stub.h.
11  * @author MicroEJ Developer Team
12  * @version 4.1.0
13  * @see ui_drawing_stub.h
14  */
15 
16 // --------------------------------------------------------------------------------
17 // Includes
18 // --------------------------------------------------------------------------------
19 
20 #include <LLUI_DISPLAY.h>
21 
22 #include "ui_drawing_stub.h"
23 
24 // --------------------------------------------------------------------------------
25 // Private functions
26 // --------------------------------------------------------------------------------
27 
28 static inline DRAWING_Status not_implemented(MICROUI_GraphicsContext *gc) {
29  LLUI_DISPLAY_reportError(gc, DRAWING_LOG_NOT_IMPLEMENTED);
30  return DRAWING_DONE;
31 }
32 
33 // --------------------------------------------------------------------------------
34 // ui_drawing_stub.h functions
35 // --------------------------------------------------------------------------------
36 
37 // See the header file for the function documentation
38 DRAWING_Status UI_DRAWING_STUB_writePixel(MICROUI_GraphicsContext *gc, jint x, jint y) {
39  (void)gc;
40  (void)x;
41  (void)y;
42  return not_implemented(gc);
43 }
44 
45 // See the header file for the function documentation
46 DRAWING_Status UI_DRAWING_STUB_drawLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX, jint endY) {
47  (void)gc;
48  (void)startX;
49  (void)startY;
50  (void)endX;
51  (void)endY;
52  return not_implemented(gc);
53 }
54 
55 // See the header file for the function documentation
56 DRAWING_Status UI_DRAWING_STUB_drawHorizontalLine(MICROUI_GraphicsContext *gc, jint x1, jint x2, jint y) {
57  (void)gc;
58  (void)x1;
59  (void)x2;
60  (void)y;
61  return not_implemented(gc);
62 }
63 
64 // See the header file for the function documentation
65 DRAWING_Status UI_DRAWING_STUB_drawVerticalLine(MICROUI_GraphicsContext *gc, jint x, jint y1, jint y2) {
66  (void)gc;
67  (void)x;
68  (void)y1;
69  (void)y2;
70  return not_implemented(gc);
71 }
72 
73 // See the header file for the function documentation
74 DRAWING_Status UI_DRAWING_STUB_drawRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2) {
75  (void)gc;
76  (void)x1;
77  (void)y1;
78  (void)x2;
79  (void)y2;
80  return not_implemented(gc);
81 }
82 
83 // See the header file for the function documentation
84 DRAWING_Status UI_DRAWING_STUB_fillRectangle(MICROUI_GraphicsContext *gc, jint x1, jint y1, jint x2, jint y2) {
85  (void)gc;
86  (void)x1;
87  (void)y1;
88  (void)x2;
89  (void)y2;
90  return not_implemented(gc);
91 }
92 
93 // See the header file for the function documentation
94 DRAWING_Status UI_DRAWING_STUB_drawRoundedRectangle(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
95  jint height, jint cornerEllipseWidth, jint cornerEllipseHeight) {
96  (void)gc;
97  (void)x;
98  (void)y;
99  (void)width;
100  (void)height;
101  (void)cornerEllipseWidth;
102  (void)cornerEllipseHeight;
103  return not_implemented(gc);
104 }
105 
106 // See the header file for the function documentation
107 DRAWING_Status UI_DRAWING_STUB_fillRoundedRectangle(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
108  jint height, jint cornerEllipseWidth, jint cornerEllipseHeight) {
109  (void)gc;
110  (void)x;
111  (void)y;
112  (void)width;
113  (void)height;
114  (void)cornerEllipseWidth;
115  (void)cornerEllipseHeight;
116  return not_implemented(gc);
117 }
118 
119 // See the header file for the function documentation
120 DRAWING_Status UI_DRAWING_STUB_drawCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
121  jfloat startAngle, jfloat arcAngle) {
122  (void)gc;
123  (void)x;
124  (void)y;
125  (void)diameter;
126  (void)startAngle;
127  (void)arcAngle;
128  return not_implemented(gc);
129 }
130 
131 // See the header file for the function documentation
132 DRAWING_Status UI_DRAWING_STUB_drawEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
133  jfloat startAngle, jfloat arcAngle) {
134  (void)gc;
135  (void)x;
136  (void)y;
137  (void)width;
138  (void)height;
139  (void)startAngle;
140  (void)arcAngle;
141  return not_implemented(gc);
142 }
143 
144 // See the header file for the function documentation
145 DRAWING_Status UI_DRAWING_STUB_fillCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
146  jfloat startAngle, jfloat arcAngle) {
147  (void)gc;
148  (void)x;
149  (void)y;
150  (void)diameter;
151  (void)startAngle;
152  (void)arcAngle;
153  return not_implemented(gc);
154 }
155 
156 // See the header file for the function documentation
157 DRAWING_Status UI_DRAWING_STUB_fillEllipseArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
158  jfloat startAngle, jfloat arcAngle) {
159  (void)gc;
160  (void)x;
161  (void)y;
162  (void)width;
163  (void)height;
164  (void)startAngle;
165  (void)arcAngle;
166  return not_implemented(gc);
167 }
168 
169 // See the header file for the function documentation
170 DRAWING_Status UI_DRAWING_STUB_drawEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height) {
171  (void)gc;
172  (void)x;
173  (void)y;
174  (void)width;
175  (void)height;
176  return not_implemented(gc);
177 }
178 
179 // See the header file for the function documentation
180 DRAWING_Status UI_DRAWING_STUB_fillEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height) {
181  (void)gc;
182  (void)x;
183  (void)y;
184  (void)width;
185  (void)height;
186  return not_implemented(gc);
187 }
188 
189 // See the header file for the function documentation
190 DRAWING_Status UI_DRAWING_STUB_drawCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter) {
191  (void)gc;
192  (void)x;
193  (void)y;
194  (void)diameter;
195  return not_implemented(gc);
196 }
197 
198 // See the header file for the function documentation
199 DRAWING_Status UI_DRAWING_STUB_fillCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter) {
200  (void)gc;
201  (void)x;
202  (void)y;
203  (void)diameter;
204  return not_implemented(gc);
205 }
206 
207 // See the header file for the function documentation
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) {
210  (void)gc;
211  (void)img;
212  (void)regionX;
213  (void)regionY;
214  (void)width;
215  (void)height;
216  (void)x;
217  (void)y;
218  (void)alpha;
219  return not_implemented(gc);
220 }
221 
222 // See the header file for the function documentation
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) {
225  (void)gc;
226  (void)img;
227  (void)regionX;
228  (void)regionY;
229  (void)width;
230  (void)height;
231  (void)x;
232  (void)y;
233  return not_implemented(gc);
234 }
235 
236 // See the header file for the function documentation
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) {
239  (void)gc;
240  (void)regionX;
241  (void)regionY;
242  (void)width;
243  (void)height;
244  (void)x;
245  (void)y;
246  (void)alpha;
247  return not_implemented(gc);
248 }
249 
250 // See the header file for the function documentation
251 DRAWING_Status UI_DRAWING_STUB_drawThickFadedPoint(MICROUI_GraphicsContext *gc, jint x, jint y, jint thickness,
252  jint fade) {
253  (void)gc;
254  (void)x;
255  (void)y;
256  (void)thickness;
257  (void)fade;
258  return not_implemented(gc);
259 }
260 
261 // See the header file for the function documentation
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) {
265  (void)gc;
266  (void)startX;
267  (void)startY;
268  (void)endX;
269  (void)endY;
270  (void)thickness;
271  (void)fade;
272  (void)startCap;
273  (void)endCap;
274  return not_implemented(gc);
275 }
276 
277 // See the header file for the function documentation
278 DRAWING_Status UI_DRAWING_STUB_drawThickFadedCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
279  jint thickness, jint fade) {
280  (void)gc;
281  (void)x;
282  (void)y;
283  (void)diameter;
284  (void)thickness;
285  (void)fade;
286  return not_implemented(gc);
287 }
288 
289 // See the header file for the function documentation
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) {
293  (void)gc;
294  (void)x;
295  (void)y;
296  (void)diameter;
297  (void)startAngle;
298  (void)arcAngle;
299  (void)thickness;
300  (void)fade;
301  (void)start;
302  (void)end;
303  return not_implemented(gc);
304 }
305 
306 // See the header file for the function documentation
307 DRAWING_Status UI_DRAWING_STUB_drawThickFadedEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width,
308  jint height, jint thickness, jint fade) {
309  (void)gc;
310  (void)x;
311  (void)y;
312  (void)width;
313  (void)height;
314  (void)thickness;
315  (void)fade;
316  return not_implemented(gc);
317 }
318 
319 // See the header file for the function documentation
320 DRAWING_Status UI_DRAWING_STUB_drawThickLine(MICROUI_GraphicsContext *gc, jint startX, jint startY, jint endX,
321  jint endY, jint thickness) {
322  (void)gc;
323  (void)startX;
324  (void)startY;
325  (void)endX;
326  (void)endY;
327  (void)thickness;
328  return not_implemented(gc);
329 }
330 
331 // See the header file for the function documentation
332 DRAWING_Status UI_DRAWING_STUB_drawThickCircle(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
333  jint thickness) {
334  (void)gc;
335  (void)x;
336  (void)y;
337  (void)diameter;
338  (void)thickness;
339  return not_implemented(gc);
340 }
341 
342 // See the header file for the function documentation
343 DRAWING_Status UI_DRAWING_STUB_drawThickEllipse(MICROUI_GraphicsContext *gc, jint x, jint y, jint width, jint height,
344  jint thickness) {
345  (void)gc;
346  (void)x;
347  (void)y;
348  (void)width;
349  (void)height;
350  (void)thickness;
351  return not_implemented(gc);
352 }
353 
354 // See the header file for the function documentation
355 DRAWING_Status UI_DRAWING_STUB_drawThickCircleArc(MICROUI_GraphicsContext *gc, jint x, jint y, jint diameter,
356  jfloat startAngle, jfloat arcAngle, jint thickness) {
357  (void)gc;
358  (void)x;
359  (void)y;
360  (void)diameter;
361  (void)startAngle;
362  (void)arcAngle;
363  (void)thickness;
364  return not_implemented(gc);
365 }
366 
367 // See the header file for the function documentation
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) {
371  (void)gc;
372  (void)img;
373  (void)regionX;
374  (void)regionY;
375  (void)width;
376  (void)height;
377  (void)x;
378  (void)y;
379  (void)transformation;
380  (void)alpha;
381  return not_implemented(gc);
382 }
383 
384 // See the header file for the function documentation
385 DRAWING_Status UI_DRAWING_STUB_drawRotatedImageNearestNeighbor(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
386  jint y, jint rotationX, jint rotationY, jfloat angle,
387  jint alpha) {
388  (void)gc;
389  (void)img;
390  (void)x;
391  (void)y;
392  (void)rotationX;
393  (void)rotationY;
394  (void)angle;
395  (void)alpha;
396  return not_implemented(gc);
397 }
398 
399 // See the header file for the function documentation
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) {
402  (void)gc;
403  (void)img;
404  (void)x;
405  (void)y;
406  (void)rotationX;
407  (void)rotationY;
408  (void)angle;
409  (void)alpha;
410  return not_implemented(gc);
411 }
412 
413 // See the header file for the function documentation
414 DRAWING_Status UI_DRAWING_STUB_drawScaledImageNearestNeighbor(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x,
415  jint y, jfloat factorX, jfloat factorY, jint alpha) {
416  (void)gc;
417  (void)img;
418  (void)x;
419  (void)y;
420  (void)factorX;
421  (void)factorY;
422  (void)alpha;
423  return not_implemented(gc);
424 }
425 
426 // See the header file for the function documentation
427 DRAWING_Status UI_DRAWING_STUB_drawScaledImageBilinear(MICROUI_GraphicsContext *gc, MICROUI_Image *img, jint x, jint y,
428  jfloat factorX, jfloat factorY, jint alpha) {
429  (void)gc;
430  (void)img;
431  (void)x;
432  (void)y;
433  (void)factorX;
434  (void)factorY;
435  (void)alpha;
436  return not_implemented(gc);
437 }
438 
439 // --------------------------------------------------------------------------------
440 // EOF
441 // --------------------------------------------------------------------------------