microvg  5.0.0
microvg
vg_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
11  * @brief Implementation of all drawing functions of vg_drawing_stub.h.
12  * @author MicroEJ Developer Team
13  * @version 5.0.0
14  * @see vg_drawing_stub.h
15  */
16 
17 // --------------------------------------------------------------------------------
18 // Includes
19 // --------------------------------------------------------------------------------
20 
21 #include "vg_drawing_stub.h"
22 
23 // --------------------------------------------------------------------------------
24 // Private functions
25 // --------------------------------------------------------------------------------
26 
27 static inline DRAWING_Status not_implemented(MICROUI_GraphicsContext* gc){
28  LLUI_DISPLAY_reportError(gc, DRAWING_LOG_NOT_IMPLEMENTED);
29  return DRAWING_DONE;
30 }
31 
32 // --------------------------------------------------------------------------------
33 // vg_drawing_stub.h functions
34 // --------------------------------------------------------------------------------
35 
36 // See the header file for the function documentation
37 DRAWING_Status VG_DRAWING_STUB_drawPath(MICROUI_GraphicsContext* gc, jbyte* path, jint x, jint y, jfloat* matrix, jint fillRule, jint blend, jint color){
38  (void)gc;
39  (void)path;
40  (void)x;
41  (void)y;
42  (void)matrix;
43  (void)fillRule;
44  (void)blend;
45  (void)color;
46  return not_implemented(gc);
47 }
48 
49 DRAWING_Status VG_DRAWING_STUB_drawGradient(MICROUI_GraphicsContext* gc, jbyte* path, jint x, jint y, jfloat* matrix, jint fillRule, jint alpha, jint blend, jint* gradient, jfloat* gradientMatrix){
50  (void)gc;
51  (void)path;
52  (void)x;
53  (void)y;
54  (void)matrix;
55  (void)fillRule;
56  (void)alpha;
57  (void)blend;
58  (void)gradient;
59  (void)gradientMatrix;
60  return not_implemented(gc);
61 }
62 
63 DRAWING_Status VG_DRAWING_STUB_drawString(MICROUI_GraphicsContext* gc, jchar* text, jint faceHandle, jfloat size, jfloat x, jfloat y, jfloat* matrix, jint alpha, jint blend, jfloat letterSpacing){
64  (void)gc;
65  (void)text;
66  (void)faceHandle;
67  (void)size;
68  (void)x;
69  (void)y;
70  (void)matrix;
71  (void)alpha;
72  (void)blend;
73  (void)letterSpacing;
74  return not_implemented(gc);
75 }
76 
77 DRAWING_Status VG_DRAWING_STUB_drawStringGradient(MICROUI_GraphicsContext* gc, jchar* text, jint faceHandle, jfloat size, jfloat x, jfloat y, jfloat* matrix, jint alpha, jint blend, jfloat letterSpacing, jint *gradientData, jfloat *gradientMatrix){
78  (void)gc;
79  (void)text;
80  (void)faceHandle;
81  (void)size;
82  (void)x;
83  (void)y;
84  (void)matrix;
85  (void)alpha;
86  (void)blend;
87  (void)letterSpacing;
88  (void)*gradientData;
89  (void)*gradientMatrix;
90  return not_implemented(gc);
91 }
92 
93 DRAWING_Status VG_DRAWING_STUB_drawStringOnCircle(MICROUI_GraphicsContext* gc, jchar* text, jint faceHandle, jfloat size, jint x, jint y, jfloat* matrix, jint alpha, jint blend, jfloat letterSpacing, jfloat radius, jint direction){
94  (void)gc;
95  (void)text;
96  (void)faceHandle;
97  (void)size;
98  (void)x;
99  (void)y;
100  (void)matrix;
101  (void)alpha;
102  (void)blend;
103  (void)letterSpacing;
104  (void)radius;
105  (void)direction;
106  return not_implemented(gc);
107 }
108 
109 DRAWING_Status VG_DRAWING_STUB_drawStringOnCircleGradient(MICROUI_GraphicsContext* gc, jchar* text, jint faceHandle, jfloat size, jint x, jint y, jfloat* matrix, jint alpha, jint blend, jfloat letterSpacing, jfloat radius, jint direction, jint *gradientData, jfloat *gradientMatrix){
110  (void)gc;
111  (void)text;
112  (void)faceHandle;
113  (void)size;
114  (void)x;
115  (void)y;
116  (void)matrix;
117  (void)alpha;
118  (void)blend;
119  (void)letterSpacing;
120  (void)radius;
121  (void)direction;
122  (void)*gradientData;
123  (void)*gradientMatrix;
124  return not_implemented(gc);
125 }
126 
127 DRAWING_Status VG_DRAWING_STUB_drawImage(MICROUI_GraphicsContext* gc, void* image, jfloat *matrix, jint alpha, jlong elapsed, const float color_matrix[], jint* errno){
128  (void)gc;
129  (void)image;
130  (void)*matrix;
131  (void)alpha;
132  (void)elapsed;
133  (void)color_matrix;
134  (void)errno;
135  return not_implemented(gc);
136 }
137 
138 // --------------------------------------------------------------------------------
139 // EOF
140 // --------------------------------------------------------------------------------