forked from ThisDevDane/odin-imgui
-
Notifications
You must be signed in to change notification settings - Fork 0
/
copies.odin
46 lines (25 loc) · 1.03 KB
/
copies.odin
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
package imgui;
ImID :: distinct u32;
Draw_Idx :: distinct u16;
Wchar :: distinct u16;
Wchar16 :: distinct u16;
Wchar32 :: distinct u32;
Texture_ID :: distinct rawptr;
File_Handle :: distinct uintptr;
Alloc_Func :: #type proc "c" (size: i64, user_data: rawptr) -> rawptr;
Free_Func :: #type proc "c" (ptr: rawptr, user_data: rawptr);
Mem_Alloc_Func :: #type proc "c" (size: i64, user_data: rawptr) -> rawptr;
Mem_Free_Func :: #type proc "c" (ptr: rawptr, user_data: rawptr);
Items_Getter_Proc :: #type proc "c" (data: rawptr, idx: i32, out_text: ^cstring) -> bool;
Value_Getter_Proc :: #type proc "c" (data: rawptr, idx: i32) -> f32;
Draw_Callback :: #type proc "c" (parent_list: ^Draw_List, cmd: ^Draw_Cmd);
Input_Text_Callback :: #type proc "c" (data: ^Input_Text_Callback_Data) -> int;
Size_Callback :: #type proc "c" (data: ^Size_Callback_Data);
Draw_List_Shared_Data :: struct {};
Context :: struct {};
Font_Builder_Io :: struct {};
Im_Vector :: struct(T : typeid) {
size: i32,
capacity: i32,
data: ^T,
}