|
| 1 | +// AUTO-GENERATED. DO NOT EDIT. |
| 2 | +// Any manual changes WILL BE LOST when this file is regenerated. |
| 3 | + |
1 | 4 | #pragma once |
2 | 5 |
|
3 | | -/** |
4 | | - * Representation of a point |
5 | | - */ |
| 6 | +#include <stdbool.h> |
| 7 | + |
| 8 | +#if _WIN32 |
| 9 | +#define FFI_PLUGIN_EXPORT __declspec(dllexport) |
| 10 | +#else |
| 11 | +#define FFI_PLUGIN_EXPORT |
| 12 | +#endif |
| 13 | + |
| 14 | +#ifdef __cplusplus |
| 15 | +extern "C" { |
| 16 | +#endif |
| 17 | + |
6 | 18 | typedef struct { |
7 | 19 | double x; |
8 | 20 | double y; |
9 | 21 | } native_point_t; |
10 | 22 |
|
11 | | -/** |
12 | | - * Representation of a point |
13 | | - */ |
14 | 23 | typedef struct { |
15 | 24 | double width; |
16 | 25 | double height; |
17 | 26 | } native_size_t; |
18 | 27 |
|
19 | | -/** |
20 | | - * Representation of a rectangle |
21 | | - */ |
22 | 28 | typedef struct { |
23 | 29 | double x; |
24 | 30 | double y; |
25 | 31 | double width; |
26 | 32 | double height; |
27 | 33 | } native_rectangle_t; |
28 | 34 |
|
29 | | -/** |
30 | | - * Placement options for positioning UI elements relative to an anchor. |
31 | | - */ |
32 | | -typedef enum { |
33 | | - /** |
34 | | - * Position above the anchor, horizontally centered. |
35 | | - */ |
36 | | - NATIVE_PLACEMENT_TOP, |
37 | | - |
38 | | - /** |
39 | | - * Position above the anchor, aligned to the start (left). |
40 | | - */ |
41 | | - NATIVE_PLACEMENT_TOP_START, |
42 | | - |
43 | | - /** |
44 | | - * Position above the anchor, aligned to the end (right). |
45 | | - */ |
46 | | - NATIVE_PLACEMENT_TOP_END, |
47 | | - |
48 | | - /** |
49 | | - * Position to the right of the anchor, vertically centered. |
50 | | - */ |
51 | | - NATIVE_PLACEMENT_RIGHT, |
52 | | - |
53 | | - /** |
54 | | - * Position to the right of the anchor, aligned to the start (top). |
55 | | - */ |
56 | | - NATIVE_PLACEMENT_RIGHT_START, |
57 | | - |
58 | | - /** |
59 | | - * Position to the right of the anchor, aligned to the end (bottom). |
60 | | - */ |
61 | | - NATIVE_PLACEMENT_RIGHT_END, |
62 | | - |
63 | | - /** |
64 | | - * Position below the anchor, horizontally centered. |
65 | | - */ |
66 | | - NATIVE_PLACEMENT_BOTTOM, |
67 | | - |
68 | | - /** |
69 | | - * Position below the anchor, aligned to the start (left). |
70 | | - */ |
71 | | - NATIVE_PLACEMENT_BOTTOM_START, |
72 | | - |
73 | | - /** |
74 | | - * Position below the anchor, aligned to the end (right). |
75 | | - */ |
76 | | - NATIVE_PLACEMENT_BOTTOM_END, |
77 | | - |
78 | | - /** |
79 | | - * Position to the left of the anchor, vertically centered. |
80 | | - */ |
81 | | - NATIVE_PLACEMENT_LEFT, |
82 | | - |
83 | | - /** |
84 | | - * Position to the left of the anchor, aligned to the start (top). |
85 | | - */ |
86 | | - NATIVE_PLACEMENT_LEFT_START, |
87 | | - |
88 | | - /** |
89 | | - * Position to the left of the anchor, aligned to the end (bottom). |
90 | | - */ |
91 | | - NATIVE_PLACEMENT_LEFT_END |
92 | | -} native_placement_t; |
| 35 | +#ifdef __cplusplus |
| 36 | +} |
| 37 | +#endif |
0 commit comments