microui  3.0.0
microui
ui_drawing_stub.c
1 /*
2  * C
3  *
4  * Copyright 2023 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 3.0.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, jint height, jint cornerEllipseWidth, jint cornerEllipseHeight){
95  (void)gc;
96  (void)x;
97  (void)y;
98  (void)width;
99  (void)height;
100  (void)cornerEllipseWidth;
101  (void)cornerEllipseHeight;
102  return not_implemented(gc);
103 }
104 
105 // See the header file for the function documentation
106 DRAWING_Status UI_DRAWING_STUB_fillRoundedRectangle(MICROUI_GraphicsContext* gc, jint x, jint y, jint width, jint height, jint cornerEllipseWidth, jint cornerEllipseHeight){
107  (void)gc;
108  (void)x;
109  (void)y;
110  (void)width;
111  (void)height;
112  (void)cornerEllipseWidth;
113  (void)cornerEllipseHeight;
114  return not_implemented(gc);
115 }
116 
117 // See the header file for the function documentation
118 DRAWING_Status UI_DRAWING_STUB_drawCircleArc(MICROUI_GraphicsContext* gc, jint x, jint y, jint diameter, jfloat startAngle, jfloat arcAngle){
119  (void)gc;
120  (void)x;
121  (void)y;
122  (void)diameter;
123  (void)startAngle;
124  (void)arcAngle;
125  return not_implemented(gc);
126 }
127 
128 // See the header file for the function documentation
129 DRAWING_Status UI_DRAWING_STUB_drawEllipseArc(MICROUI_GraphicsContext* gc, jint x, jint y, jint width, jint height, jfloat startAngle, jfloat arcAngle){
130  (void)gc;
131  (void)x;
132  (void)y;
133  (void)width;
134  (void)height;
135  (void)startAngle;
136  (void)arcAngle;
137  return not_implemented(gc);
138 }
139 
140 // See the header file for the function documentation
141 DRAWING_Status UI_DRAWING_STUB_fillCircleArc(MICROUI_GraphicsContext* gc, jint x, jint y, jint diameter, jfloat startAngle, jfloat arcAngle){
142  (void)gc;
143  (void)x;
144  (void)y;
145  (void)diameter;
146  (void)startAngle;
147  (void)arcAngle;
148  return not_implemented(gc);
149 }
150 
151 // See the header file for the function documentation
152 DRAWING_Status UI_DRAWING_STUB_fillEllipseArc(MICROUI_GraphicsContext* gc, jint x, jint y, jint width, jint height, jfloat startAngle, jfloat arcAngle){
153  (void)gc;
154  (void)x;
155  (void)y;
156  (void)width;
157  (void)height;
158  (void)startAngle;
159  (void)arcAngle;
160  return not_implemented(gc);
161 }
162 
163 // See the header file for the function documentation
164 DRAWING_Status UI_DRAWING_STUB_drawEllipse(MICROUI_GraphicsContext* gc, jint x, jint y, jint width, jint height){
165  (void)gc;
166  (void)x;
167  (void)y;
168  (void)width;
169  (void)height;
170  return not_implemented(gc);
171 }
172 
173 // See the header file for the function documentation
174 DRAWING_Status UI_DRAWING_STUB_fillEllipse(MICROUI_GraphicsContext* gc, jint x, jint y, jint width, jint height){
175  (void)gc;
176  (void)x;
177  (void)y;
178  (void)width;
179  (void)height;
180  return not_implemented(gc);
181 }
182 
183 // See the header file for the function documentation
184 DRAWING_Status UI_DRAWING_STUB_drawCircle(MICROUI_GraphicsContext* gc, jint x, jint y, jint diameter){
185  (void)gc;
186  (void)x;
187  (void)y;
188  (void)diameter;
189  return not_implemented(gc);
190 }
191 
192 // See the header file for the function documentation
193 DRAWING_Status UI_DRAWING_STUB_fillCircle(MICROUI_GraphicsContext* gc, jint x, jint y, jint diameter){
194  (void)gc;
195  (void)x;
196  (void)y;
197  (void)diameter;
198  return not_implemented(gc);
199 }
200 
201 // See the header file for the function documentation
202 DRAWING_Status UI_DRAWING_STUB_drawImage(MICROUI_GraphicsContext* gc, MICROUI_Image* img, jint regionX, jint regionY, jint width, jint height, jint x, jint y, jint alpha){
203  (void)gc;
204  (void)img;
205  (void)regionX;
206  (void)regionY;
207  (void)width;
208  (void)height;
209  (void)x;
210  (void)y;
211  (void)alpha;
212  return not_implemented(gc);
213 }
214 
215 // See the header file for the function documentation
216 DRAWING_Status UI_DRAWING_STUB_copyImage(MICROUI_GraphicsContext* gc, MICROUI_Image* img, jint regionX, jint regionY, jint width, jint height, jint x, jint y){
217  (void)gc;
218  (void)img;
219  (void)regionX;
220  (void)regionY;
221  (void)width;
222  (void)height;
223  (void)x;
224  (void)y;
225  return not_implemented(gc);
226 }
227 
228 // See the header file for the function documentation
229 DRAWING_Status UI_DRAWING_STUB_drawRegion(MICROUI_GraphicsContext* gc, jint regionX, jint regionY, jint width, jint height, jint x, jint y, jint alpha){
230  (void)gc;
231  (void)regionX;
232  (void)regionY;
233  (void)width;
234  (void)height;
235  (void)x;
236  (void)y;
237  (void)alpha;
238  return not_implemented(gc);
239 }
240 
241 // See the header file for the function documentation
242 DRAWING_Status UI_DRAWING_STUB_drawThickFadedPoint(MICROUI_GraphicsContext* gc, jint x, jint y, jint thickness, jint fade){
243  (void)gc;
244  (void)x;
245  (void)y;
246  (void)thickness;
247  (void)fade;
248  return not_implemented(gc);
249 }
250 
251 // See the header file for the function documentation
252 DRAWING_Status UI_DRAWING_STUB_drawThickFadedLine(MICROUI_GraphicsContext* gc, jint startX, jint startY, jint endX, jint endY, jint thickness, jint fade, DRAWING_Cap startCap, DRAWING_Cap endCap){
253  (void)gc;
254  (void)startX;
255  (void)startY;
256  (void)endX;
257  (void)endY;
258  (void)thickness;
259  (void)fade;
260  (void)startCap;
261  (void)endCap;
262  return not_implemented(gc);
263 }
264 
265 // See the header file for the function documentation
266 DRAWING_Status UI_DRAWING_STUB_drawThickFadedCircle(MICROUI_GraphicsContext* gc, jint x, jint y, jint diameter, jint thickness, jint fade){
267  (void)gc;
268  (void)x;
269  (void)y;
270  (void)diameter;
271  (void)thickness;
272  (void)fade;
273  return not_implemented(gc);
274 }
275 
276 // See the header file for the function documentation
277 DRAWING_Status UI_DRAWING_STUB_drawThickFadedCircleArc(MICROUI_GraphicsContext* gc, jint x, jint y, jint diameter, jfloat startAngle, jfloat arcAngle, jint thickness, jint fade, DRAWING_Cap start, DRAWING_Cap end){
278  (void)gc;
279  (void)x;
280  (void)y;
281  (void)diameter;
282  (void)startAngle;
283  (void)arcAngle;
284  (void)thickness;
285  (void)fade;
286  (void)start;
287  (void)end;
288  return not_implemented(gc);
289 }
290 
291 // See the header file for the function documentation
292 DRAWING_Status UI_DRAWING_STUB_drawThickFadedEllipse(MICROUI_GraphicsContext* gc, jint x, jint y, jint width, jint height, jint thickness, jint fade){
293  (void)gc;
294  (void)x;
295  (void)y;
296  (void)width;
297  (void)height;
298  (void)thickness;
299  (void)fade;
300  return not_implemented(gc);
301 }
302 
303 // See the header file for the function documentation
304 DRAWING_Status UI_DRAWING_STUB_drawThickLine(MICROUI_GraphicsContext* gc, jint startX, jint startY, jint endX, jint endY, jint thickness){
305  (void)gc;
306  (void)startX;
307  (void)startY;
308  (void)endX;
309  (void)endY;
310  (void)thickness;
311  return not_implemented(gc);
312 }
313 
314 // See the header file for the function documentation
315 DRAWING_Status UI_DRAWING_STUB_drawThickCircle(MICROUI_GraphicsContext* gc, jint x, jint y, jint diameter, jint thickness){
316  (void)gc;
317  (void)x;
318  (void)y;
319  (void)diameter;
320  (void)thickness;
321  return not_implemented(gc);
322 }
323 
324 // See the header file for the function documentation
325 DRAWING_Status UI_DRAWING_STUB_drawThickEllipse(MICROUI_GraphicsContext* gc, jint x, jint y, jint width, jint height, jint thickness){
326  (void)gc;
327  (void)x;
328  (void)y;
329  (void)width;
330  (void)height;
331  (void)thickness;
332  return not_implemented(gc);
333 }
334 
335 // See the header file for the function documentation
336 DRAWING_Status UI_DRAWING_STUB_drawThickCircleArc(MICROUI_GraphicsContext* gc, jint x, jint y, jint diameter, jfloat startAngle, jfloat arcAngle, jint thickness){
337  (void)gc;
338  (void)x;
339  (void)y;
340  (void)diameter;
341  (void)startAngle;
342  (void)arcAngle;
343  (void)thickness;
344  return not_implemented(gc);
345 }
346 
347 // See the header file for the function documentation
348 DRAWING_Status UI_DRAWING_STUB_drawFlippedImage(MICROUI_GraphicsContext* gc, MICROUI_Image* img, jint regionX, jint regionY, jint width, jint height, jint x, jint y, DRAWING_Flip transformation, jint alpha){
349  (void)gc;
350  (void)img;
351  (void)regionX;
352  (void)regionY;
353  (void)width;
354  (void)height;
355  (void)x;
356  (void)y;
357  (void)transformation;
358  (void)alpha;
359  return not_implemented(gc);
360 }
361 
362 // See the header file for the function documentation
363 DRAWING_Status UI_DRAWING_STUB_drawRotatedImageNearestNeighbor(MICROUI_GraphicsContext* gc, MICROUI_Image* img, jint x, jint y, jint rotationX, jint rotationY, jfloat angle, jint alpha){
364  (void)gc;
365  (void)img;
366  (void)x;
367  (void)y;
368  (void)rotationX;
369  (void)rotationY;
370  (void)angle;
371  (void)alpha;
372  return not_implemented(gc);
373 }
374 
375 // See the header file for the function documentation
376 DRAWING_Status UI_DRAWING_STUB_drawRotatedImageBilinear(MICROUI_GraphicsContext* gc, MICROUI_Image* img, jint x, jint y, jint rotationX, jint rotationY, jfloat angle, jint alpha){
377  (void)gc;
378  (void)img;
379  (void)x;
380  (void)y;
381  (void)rotationX;
382  (void)rotationY;
383  (void)angle;
384  (void)alpha;
385  return not_implemented(gc);
386 }
387 
388 // See the header file for the function documentation
389 DRAWING_Status UI_DRAWING_STUB_drawScaledImageNearestNeighbor(MICROUI_GraphicsContext* gc, MICROUI_Image* img, jint x, jint y, jfloat factorX, jfloat factorY, jint alpha){
390  (void)gc;
391  (void)img;
392  (void)x;
393  (void)y;
394  (void)factorX;
395  (void)factorY;
396  (void)alpha;
397  return not_implemented(gc);
398 }
399 
400 // See the header file for the function documentation
401 DRAWING_Status UI_DRAWING_STUB_drawScaledImageBilinear(MICROUI_GraphicsContext* gc, MICROUI_Image* img, jint x, jint y, jfloat factorX, jfloat factorY, jint alpha){
402  (void)gc;
403  (void)img;
404  (void)x;
405  (void)y;
406  (void)factorX;
407  (void)factorY;
408  (void)alpha;
409  return not_implemented(gc);
410 }
411 
412 // --------------------------------------------------------------------------------
413 // EOF
414 // --------------------------------------------------------------------------------