summaryrefslogtreecommitdiffstats
path: root/src/fluent-bit/lib/wasm-micro-runtime-WAMR-1.2.2/core/app-framework/app-native-shared/bi-inc/wgl_shared_utils.h
blob: 86d864e410e459ec573f81d94cac5648aea0e4ea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
/*
 * Copyright (C) 2019 Intel Corporation.  All rights reserved.
 * SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
 */

#ifndef WAMR_GRAPHIC_LIBRARY_SHARED_UTILS_H
#define WAMR_GRAPHIC_LIBRARY_SHARED_UTILS_H

#include "bh_platform.h"

#ifdef __cplusplus
extern "C" {
#endif

#include <stdbool.h>

/* Object native function IDs */
enum {
    OBJ_FUNC_ID_DEL,
    OBJ_FUNC_ID_DEL_ASYNC,
    OBJ_FUNC_ID_CLEAN,
    OBJ_FUNC_ID_SET_EVT_CB,
    OBJ_FUNC_ID_ALIGN,

    /* Number of functions */
    _OBJ_FUNC_ID_NUM,
};

/* Button native function IDs */
enum {
    BTN_FUNC_ID_CREATE,
    BTN_FUNC_ID_SET_TOGGLE,
    BTN_FUNC_ID_SET_STATE,
    BTN_FUNC_ID_TOGGLE,
    BTN_FUNC_ID_SET_INK_IN_TIME,
    BTN_FUNC_ID_SET_INK_WAIT_TIME,
    BTN_FUNC_ID_SET_INK_OUT_TIME,
    BTN_FUNC_ID_GET_STATE,
    BTN_FUNC_ID_GET_TOGGLE,
    BTN_FUNC_ID_GET_INK_IN_TIME,
    BTN_FUNC_ID_GET_INK_WAIT_TIME,
    BTN_FUNC_ID_GET_INK_OUT_TIME,
    /* Number of functions */
    _BTN_FUNC_ID_NUM,
};

/* Check box native function IDs */
enum {
    CB_FUNC_ID_CREATE,
    CB_FUNC_ID_SET_TEXT,
    CB_FUNC_ID_SET_STATIC_TEXT,
    CB_FUNC_ID_GET_TEXT,
    CB_FUNC_ID_GET_TEXT_LENGTH,

    /* Number of functions */
    _CB_FUNC_ID_NUM,
};

/* List native function IDs */
enum {
    LIST_FUNC_ID_CREATE,
    LIST_FUNC_ID_ADD_BTN,

    /* Number of functions */
    _LIST_FUNC_ID_NUM,
};

/* Label native function IDs */
enum {
    LABEL_FUNC_ID_CREATE,
    LABEL_FUNC_ID_SET_TEXT,
    LABEL_FUNC_ID_SET_ARRAY_TEXT,
    LABEL_FUNC_ID_SET_STATIC_TEXT,
    LABEL_FUNC_ID_SET_LONG_MODE,
    LABEL_FUNC_ID_SET_ALIGN,
    LABEL_FUNC_ID_SET_RECOLOR,
    LABEL_FUNC_ID_SET_BODY_DRAW,
    LABEL_FUNC_ID_SET_ANIM_SPEED,
    LABEL_FUNC_ID_SET_TEXT_SEL_START,
    LABEL_FUNC_ID_SET_TEXT_SEL_END,
    LABEL_FUNC_ID_GET_TEXT,
    LABEL_FUNC_ID_GET_TEXT_LENGTH,
    LABEL_FUNC_ID_GET_LONG_MODE,
    LABEL_FUNC_ID_GET_ALIGN,
    LABEL_FUNC_ID_GET_RECOLOR,
    LABEL_FUNC_ID_GET_BODY_DRAW,
    LABEL_FUNC_ID_GET_ANIM_SPEED,
    LABEL_FUNC_ID_GET_LETTER_POS,
    LABEL_FUNC_ID_GET_TEXT_SEL_START,
    LABEL_FUNC_ID_GET_TEXT_SEL_END,
    LABEL_FUNC_ID_INS_TEXT,
    LABEL_FUNC_ID_CUT_TEXT,
    /* Number of functions */
    _LABEL_FUNC_ID_NUM,
};

#ifdef __cplusplus
}
#endif

#endif /* WAMR_GRAPHIC_LIBRARY_SHARED_UTILS_H */