microvg  6.0.1
microvg
vg_drawing_stub.h
1 /*
2  * Copyright 2023-2024 MicroEJ Corp. All rights reserved.
3  * Use of this source code is governed by a BSD-style license that can be found with this software.
4  */
5 
6 #if !defined VG_DRAWING_STUB_H
7 #define VG_DRAWING_STUB_H
8 #ifdef __cplusplus
9 extern "C" {
10 #endif
11 
12 /*
13  * @file
14  * @brief Implementation of all drawing functions of vg_drawing.h (library MicroVG).
15  * These are stubbed implementations, there is no error but the drawings are not
16  * performed. Useful to stub a drawing on a custom destination (custom GraphicsContext
17  * format not supported by the Graphics Engine).
18  * @author MicroEJ Developer Team
19  * @version 6.0.1
20  * @see ui_drawing_stub.h
21  */
22 
23 // --------------------------------------------------------------------------------
24 // Includes
25 // --------------------------------------------------------------------------------
26 
27 #include "vg_drawing.h"
28 
29 // --------------------------------------------------------------------------------
30 // Public API
31 // --------------------------------------------------------------------------------
32 
33 /*
34  * @brief Stubbed implementation of drawPath. See vg_drawing.h
35  */
36 DRAWING_Status VG_DRAWING_STUB_drawPath(MICROUI_GraphicsContext *gc, jbyte *path, jfloat *matrix, jint fillRule,
37  jint blend, jint color);
38 
39 /*
40  * @brief Stubbed implementation of drawGradient. See vg_drawing.h
41  */
42 DRAWING_Status VG_DRAWING_STUB_drawGradient(MICROUI_GraphicsContext *gc, jbyte *path, jfloat *matrix, jint fillRule,
43  jint alpha, jint blend, jint *gradient, jfloat *gradientMatrix);
44 
45 /*
46  * @brief Stubbed implementation of drawString. See vg_drawing.h
47  */
48 DRAWING_Status VG_DRAWING_STUB_drawString(MICROUI_GraphicsContext *gc, jchar *text, jint faceHandle, jfloat size,
49  jfloat *matrix, jint alpha, jint blend, jfloat letterSpacing);
50 
51 /*
52  * @brief Stubbed implementation of drawStringGradient. See vg_drawing.h
53  */
54 DRAWING_Status VG_DRAWING_STUB_drawStringGradient(MICROUI_GraphicsContext *gc, jchar *text, jint faceHandle,
55  jfloat size, jfloat *matrix, jint alpha, jint blend,
56  jfloat letterSpacing, jint *gradientData, jfloat *gradientMatrix);
57 
58 /*
59  * @brief Stubbed implementation of drawStringOnCircle. See vg_drawing.h
60  */
61 DRAWING_Status VG_DRAWING_STUB_drawStringOnCircle(MICROUI_GraphicsContext *gc, jchar *text, jint faceHandle,
62  jfloat size, jfloat *matrix, jint alpha, jint blend,
63  jfloat letterSpacing, jfloat radius, jint direction);
64 
65 /*
66  * @brief Stubbed implementation of drawStringOnCircleGradient. See vg_drawing.h
67  */
68 DRAWING_Status VG_DRAWING_STUB_drawStringOnCircleGradient(MICROUI_GraphicsContext *gc, jchar *text, jint faceHandle,
69  jfloat size, jfloat *matrix, jint alpha, jint blend,
70  jfloat letterSpacing, jfloat radius, jint direction,
71  jint *gradientData, jfloat *gradientMatrix);
72 
73 /*
74  * @brief Stubbed implementation of drawImage. See vg_drawing.h
75  */
76 DRAWING_Status VG_DRAWING_STUB_drawImage(MICROUI_GraphicsContext *gc, void *image, jfloat *matrix, jint alpha,
77  jlong elapsed, const float color_matrix[], jint *errno);
78 
79 // --------------------------------------------------------------------------------
80 // EOF
81 // --------------------------------------------------------------------------------
82 
83 #ifdef __cplusplus
84 }
85 #endif
86 #endif // VG_DRAWING_STUB_H