microvg  6.0.1
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 6.0.1
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 faceHandle, jfloat size,
62  jfloat *matrix, jint alpha, jint blend, jfloat letterSpacing) {
63  (void)gc;
64  (void)text;
65  (void)faceHandle;
66  (void)size;
67  (void)matrix;
68  (void)alpha;
69  (void)blend;
70  (void)letterSpacing;
71  return not_implemented(gc);
72 }
73 
74 DRAWING_Status VG_DRAWING_STUB_drawStringGradient(MICROUI_GraphicsContext *gc, jchar *text, jint faceHandle,
75  jfloat size, jfloat *matrix, jint alpha, jint blend,
76  jfloat letterSpacing, jint *gradientData, jfloat *gradientMatrix) {
77  (void)gc;
78  (void)text;
79  (void)faceHandle;
80  (void)size;
81  (void)matrix;
82  (void)alpha;
83  (void)blend;
84  (void)letterSpacing;
85  (void)*gradientData;
86  (void)*gradientMatrix;
87  return not_implemented(gc);
88 }
89 
90 DRAWING_Status VG_DRAWING_STUB_drawStringOnCircle(MICROUI_GraphicsContext *gc, jchar *text, jint faceHandle,
91  jfloat size, jfloat *matrix, jint alpha, jint blend,
92  jfloat letterSpacing, jfloat radius, jint direction) {
93  (void)gc;
94  (void)text;
95  (void)faceHandle;
96  (void)size;
97  (void)matrix;
98  (void)alpha;
99  (void)blend;
100  (void)letterSpacing;
101  (void)radius;
102  (void)direction;
103  return not_implemented(gc);
104 }
105 
106 DRAWING_Status VG_DRAWING_STUB_drawStringOnCircleGradient(MICROUI_GraphicsContext *gc, jchar *text, jint faceHandle,
107  jfloat size, float *matrix, jint alpha, jint blend,
108  jfloat letterSpacing, jfloat radius, jint direction,
109  jint *gradientData, jfloat *gradientMatrix) {
110  (void)gc;
111  (void)text;
112  (void)faceHandle;
113  (void)size;
114  (void)matrix;
115  (void)alpha;
116  (void)blend;
117  (void)letterSpacing;
118  (void)radius;
119  (void)direction;
120  (void)*gradientData;
121  (void)*gradientMatrix;
122  return not_implemented(gc);
123 }
124 
125 DRAWING_Status VG_DRAWING_STUB_drawImage(MICROUI_GraphicsContext *gc, void *image, jfloat *matrix, jint alpha,
126  jlong elapsed, const float color_matrix[], jint *errno) {
127  (void)gc;
128  (void)image;
129  (void)*matrix;
130  (void)alpha;
131  (void)elapsed;
132  (void)color_matrix;
133  (void)errno;
134  return not_implemented(gc);
135 }
136 
137 // --------------------------------------------------------------------------------
138 // EOF
139 // --------------------------------------------------------------------------------