microvg  7.0.0
microvg
vg_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
11  * @brief Implementation of all drawing functions of vg_drawing_stub.h.
12  * @author MicroEJ Developer Team
13  * @version 7.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, jfloat *matrix, jint fillRule,
38  jint blend, jint color) {
39  (void)gc;
40  (void)path;
41  (void)matrix;
42  (void)fillRule;
43  (void)blend;
44  (void)color;
45  return not_implemented(gc);
46 }
47 
48 DRAWING_Status VG_DRAWING_STUB_drawGradient(MICROUI_GraphicsContext *gc, jbyte *path, jfloat *matrix, jint fillRule,
49  jint alpha, jint blend, jint *gradient, jfloat *gradientMatrix) {
50  (void)gc;
51  (void)path;
52  (void)matrix;
53  (void)fillRule;
54  (void)alpha;
55  (void)blend;
56  (void)gradient;
57  (void)gradientMatrix;
58  return not_implemented(gc);
59 }
60 
61 DRAWING_Status VG_DRAWING_STUB_drawString(MICROUI_GraphicsContext *gc, jchar *text, jint length, jint faceHandle,
62  jfloat size, jfloat *matrix, jint alpha, jint blend, jfloat letterSpacing) {
63  (void)gc;
64  (void)text;
65  (void)length;
66  (void)faceHandle;
67  (void)size;
68  (void)matrix;
69  (void)alpha;
70  (void)blend;
71  (void)letterSpacing;
72  return not_implemented(gc);
73 }
74 
75 DRAWING_Status VG_DRAWING_STUB_drawStringGradient(MICROUI_GraphicsContext *gc, jchar *text, jint length,
76  jint faceHandle, jfloat size, jfloat *matrix, jint alpha, jint blend,
77  jfloat letterSpacing, jint *gradientData, jfloat *gradientMatrix) {
78  (void)gc;
79  (void)text;
80  (void)length;
81  (void)faceHandle;
82  (void)size;
83  (void)matrix;
84  (void)alpha;
85  (void)blend;
86  (void)letterSpacing;
87  (void)*gradientData;
88  (void)*gradientMatrix;
89  return not_implemented(gc);
90 }
91 
92 DRAWING_Status VG_DRAWING_STUB_drawStringOnCircle(MICROUI_GraphicsContext *gc, jchar *text, jint length,
93  jint faceHandle, jfloat size, jfloat *matrix, jint alpha, jint blend,
94  jfloat letterSpacing, jfloat radius, jint direction) {
95  (void)gc;
96  (void)text;
97  (void)length;
98  (void)faceHandle;
99  (void)size;
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 length,
110  jint faceHandle, jfloat size, float *matrix, jint alpha,
111  jint blend, jfloat letterSpacing, jfloat radius,
112  jint direction, jint *gradientData, jfloat *gradientMatrix) {
113  (void)gc;
114  (void)text;
115  (void)length;
116  (void)faceHandle;
117  (void)size;
118  (void)matrix;
119  (void)alpha;
120  (void)blend;
121  (void)letterSpacing;
122  (void)radius;
123  (void)direction;
124  (void)*gradientData;
125  (void)*gradientMatrix;
126  return not_implemented(gc);
127 }
128 
129 DRAWING_Status VG_DRAWING_STUB_drawImage(MICROUI_GraphicsContext *gc, void *image, jfloat *matrix, jint alpha,
130  jlong elapsed, const float color_matrix[], jint *errno) {
131  (void)gc;
132  (void)image;
133  (void)*matrix;
134  (void)alpha;
135  (void)elapsed;
136  (void)color_matrix;
137  (void)errno;
138  return not_implemented(gc);
139 }
140 
141 // --------------------------------------------------------------------------------
142 // EOF
143 // --------------------------------------------------------------------------------