1+ using System ;
2+ using System . Runtime . InteropServices ;
3+
4+ namespace ConstraintSDK {
5+ public static class SystemControls {
6+ [ DllImport ( "__Internal" , CallingConvention = CallingConvention . Cdecl ) ]
7+ public static extern float get_text_width (
8+ byte [ ] text_data ,
9+ UIntPtr text_length ,
10+ byte [ ] font_family_data ,
11+ UIntPtr font_family_length ,
12+ float font_size
13+ ) ;
14+
15+ [ DllImport ( "__Internal" , CallingConvention = CallingConvention . Cdecl ) ]
16+ public static extern void get_frame_size (
17+ out float width ,
18+ out float height
19+ ) ;
20+
21+ [ DllImport ( "__Internal" , CallingConvention = CallingConvention . Cdecl ) ]
22+ public static extern void clear_controls ( ) ;
23+
24+ [ DllImport ( "__Internal" , CallingConvention = CallingConvention . Cdecl ) ]
25+ public static extern UIntPtr create_label (
26+ float x ,
27+ float y ,
28+ byte [ ] text_data ,
29+ UIntPtr text_length ,
30+ byte [ ] font_family_data ,
31+ UIntPtr font_family_length ,
32+ float font_size
33+ ) ;
34+
35+ [ DllImport ( "__Internal" , CallingConvention = CallingConvention . Cdecl ) ]
36+ public static extern UIntPtr create_button (
37+ float x ,
38+ float y ,
39+ float width ,
40+ float height ,
41+ byte [ ] text_data ,
42+ UIntPtr text_length ,
43+ byte [ ] font_family_data ,
44+ UIntPtr font_family_length ,
45+ float font_size
46+ ) ;
47+
48+ [ DllImport ( "__Internal" , CallingConvention = CallingConvention . Cdecl ) ]
49+ public static extern UIntPtr create_text_input (
50+ float x ,
51+ float y ,
52+ float width ,
53+ float height ,
54+ byte [ ] text_data ,
55+ UIntPtr text_length ,
56+ byte [ ] font_family_data ,
57+ UIntPtr font_family_length ,
58+ float font_size
59+ ) ;
60+
61+ [ DllImport ( "__Internal" , CallingConvention = CallingConvention . Cdecl ) ]
62+ public static extern UIntPtr get_text_input_text (
63+ UIntPtr text_input ,
64+ [ In , Out ] byte [ ] buffer ,
65+ UIntPtr buffer_size
66+ ) ;
67+ }
68+ }
0 commit comments