microvg  3.0.1
microvg
vg_drawing_stub.h
1 /*
2  * Copyright 2023 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 3.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, jint x, jint y, jfloat* matrix, jint fillRule, jint blend, jint color);
37 
38 /*
39  * @brief Stubbed implementation of drawGradient. See vg_drawing.h
40  */
41 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);
42 
43 /*
44  * @brief Stubbed implementation of drawString. See vg_drawing.h
45  */
46 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);
47 
48 /*
49  * @brief Stubbed implementation of drawStringGradient. See vg_drawing.h
50  */
51 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);
52 
53 /*
54  * @brief Stubbed implementation of drawStringOnCircle. See vg_drawing.h
55  */
56 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);
57 
58 /*
59  * @brief Stubbed implementation of drawStringOnCircleGradient. See vg_drawing.h
60  */
61 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);
62 
63 /*
64  * @brief Stubbed implementation of drawImage. See vg_drawing.h
65  */
66 DRAWING_Status VG_DRAWING_STUB_drawImage(MICROUI_GraphicsContext* gc, void* image, jfloat *matrix, jint alpha, jlong elapsed, const float color_matrix[], jint* errno);
67 
68 // --------------------------------------------------------------------------------
69 // EOF
70 // --------------------------------------------------------------------------------
71 
72 #ifdef __cplusplus
73 }
74 #endif
75 #endif // VG_DRAWING_STUB_H