1 /++
2 + Machine generated D bindings for Sokol library.
3 + 
4 +     Source header: sokol_gfx_imgui.h
5 +     Module: sokol.gfximgui
6 + 
7 +     Do not edit manually; regenerate using gen_d.py.
8 +/
9 module sokol.gfximgui;
10 import sg = sokol.gfx;
11 import sapp = sokol.app;
12 
13 /++
14 + sgimgui_allocator_t
15 + 
16 +     Used in sgimgui_desc_t to provide custom memory-alloc and -free functions
17 +     to sokol_gfx_imgui.h. If memory management should be overridden, both the
18 +     alloc and free function must be provided (e.g. it's not valid to
19 +     override one function but not the other).
20 +/
21 extern(C) struct Allocator {
22     extern(C) void* function(size_t, void*) alloc_fn = null;
23     extern(C) void function(void*, void*) free_fn = null;
24     void* user_data = null;
25 }
26 /++
27 + sgimgui_desc_t
28 + 
29 +     Initialization options for sgimgui_init().
30 +/
31 extern(C) struct Desc {
32     Allocator allocator = {};
33 }
34 extern(C) void sgimgui_setup(const Desc* desc) @system @nogc nothrow pure;
35 void setup(scope ref Desc desc) @trusted @nogc nothrow pure {
36     sgimgui_setup(&desc);
37 }
38 extern(C) void sgimgui_shutdown() @system @nogc nothrow pure;
39 void shutdown() @trusted @nogc nothrow pure {
40     sgimgui_shutdown();
41 }
42 extern(C) void sgimgui_draw() @system @nogc nothrow pure;
43 void draw() @trusted @nogc nothrow pure {
44     sgimgui_draw();
45 }
46 extern(C) void sgimgui_draw_menu(const(char)* title) @system @nogc nothrow pure;
47 void drawMenu(const(char)* title) @trusted @nogc nothrow pure {
48     sgimgui_draw_menu(title);
49 }
50 extern(C) void sgimgui_draw_buffer_window_content() @system @nogc nothrow pure;
51 void drawBufferWindowContent() @trusted @nogc nothrow pure {
52     sgimgui_draw_buffer_window_content();
53 }
54 extern(C) void sgimgui_draw_image_window_content() @system @nogc nothrow pure;
55 void drawImageWindowContent() @trusted @nogc nothrow pure {
56     sgimgui_draw_image_window_content();
57 }
58 extern(C) void sgimgui_draw_sampler_window_content() @system @nogc nothrow pure;
59 void drawSamplerWindowContent() @trusted @nogc nothrow pure {
60     sgimgui_draw_sampler_window_content();
61 }
62 extern(C) void sgimgui_draw_shader_window_content() @system @nogc nothrow pure;
63 void drawShaderWindowContent() @trusted @nogc nothrow pure {
64     sgimgui_draw_shader_window_content();
65 }
66 extern(C) void sgimgui_draw_pipeline_window_content() @system @nogc nothrow pure;
67 void drawPipelineWindowContent() @trusted @nogc nothrow pure {
68     sgimgui_draw_pipeline_window_content();
69 }
70 extern(C) void sgimgui_draw_view_window_content() @system @nogc nothrow pure;
71 void drawViewWindowContent() @trusted @nogc nothrow pure {
72     sgimgui_draw_view_window_content();
73 }
74 extern(C) void sgimgui_draw_capture_window_content() @system @nogc nothrow pure;
75 void drawCaptureWindowContent() @trusted @nogc nothrow pure {
76     sgimgui_draw_capture_window_content();
77 }
78 extern(C) void sgimgui_draw_capabilities_window_content() @system @nogc nothrow pure;
79 void drawCapabilitiesWindowContent() @trusted @nogc nothrow pure {
80     sgimgui_draw_capabilities_window_content();
81 }
82 extern(C) void sgimgui_draw_frame_stats_window_content() @system @nogc nothrow pure;
83 void drawFrameStatsWindowContent() @trusted @nogc nothrow pure {
84     sgimgui_draw_frame_stats_window_content();
85 }
86 extern(C) void sgimgui_draw_buffer_window(const(char)* title) @system @nogc nothrow pure;
87 void drawBufferWindow(const(char)* title) @trusted @nogc nothrow pure {
88     sgimgui_draw_buffer_window(title);
89 }
90 extern(C) void sgimgui_draw_image_window(const(char)* title) @system @nogc nothrow pure;
91 void drawImageWindow(const(char)* title) @trusted @nogc nothrow pure {
92     sgimgui_draw_image_window(title);
93 }
94 extern(C) void sgimgui_draw_sampler_window(const(char)* title) @system @nogc nothrow pure;
95 void drawSamplerWindow(const(char)* title) @trusted @nogc nothrow pure {
96     sgimgui_draw_sampler_window(title);
97 }
98 extern(C) void sgimgui_draw_shader_window(const(char)* title) @system @nogc nothrow pure;
99 void drawShaderWindow(const(char)* title) @trusted @nogc nothrow pure {
100     sgimgui_draw_shader_window(title);
101 }
102 extern(C) void sgimgui_draw_pipeline_window(const(char)* title) @system @nogc nothrow pure;
103 void drawPipelineWindow(const(char)* title) @trusted @nogc nothrow pure {
104     sgimgui_draw_pipeline_window(title);
105 }
106 extern(C) void sgimgui_draw_view_window(const(char)* title) @system @nogc nothrow pure;
107 void drawViewWindow(const(char)* title) @trusted @nogc nothrow pure {
108     sgimgui_draw_view_window(title);
109 }
110 extern(C) void sgimgui_draw_capture_window(const(char)* title) @system @nogc nothrow pure;
111 void drawCaptureWindow(const(char)* title) @trusted @nogc nothrow pure {
112     sgimgui_draw_capture_window(title);
113 }
114 extern(C) void sgimgui_draw_capabilities_window(const(char)* title) @system @nogc nothrow pure;
115 void drawCapabilitiesWindow(const(char)* title) @trusted @nogc nothrow pure {
116     sgimgui_draw_capabilities_window(title);
117 }
118 extern(C) void sgimgui_draw_frame_stats_window(const(char)* title) @system @nogc nothrow pure;
119 void drawFrameStatsWindow(const(char)* title) @trusted @nogc nothrow pure {
120     sgimgui_draw_frame_stats_window(title);
121 }
122 extern(C) void sgimgui_draw_buffer_menu_item(const(char)* label) @system @nogc nothrow pure;
123 void drawBufferMenuItem(const(char)* label) @trusted @nogc nothrow pure {
124     sgimgui_draw_buffer_menu_item(label);
125 }
126 extern(C) void sgimgui_draw_image_menu_item(const(char)* label) @system @nogc nothrow pure;
127 void drawImageMenuItem(const(char)* label) @trusted @nogc nothrow pure {
128     sgimgui_draw_image_menu_item(label);
129 }
130 extern(C) void sgimgui_draw_sampler_menu_item(const(char)* label) @system @nogc nothrow pure;
131 void drawSamplerMenuItem(const(char)* label) @trusted @nogc nothrow pure {
132     sgimgui_draw_sampler_menu_item(label);
133 }
134 extern(C) void sgimgui_draw_shader_menu_item(const(char)* label) @system @nogc nothrow pure;
135 void drawShaderMenuItem(const(char)* label) @trusted @nogc nothrow pure {
136     sgimgui_draw_shader_menu_item(label);
137 }
138 extern(C) void sgimgui_draw_pipeline_menu_item(const(char)* label) @system @nogc nothrow pure;
139 void drawPipelineMenuItem(const(char)* label) @trusted @nogc nothrow pure {
140     sgimgui_draw_pipeline_menu_item(label);
141 }
142 extern(C) void sgimgui_draw_view_menu_item(const(char)* label) @system @nogc nothrow pure;
143 void drawViewMenuItem(const(char)* label) @trusted @nogc nothrow pure {
144     sgimgui_draw_view_menu_item(label);
145 }
146 extern(C) void sgimgui_draw_capture_menu_item(const(char)* label) @system @nogc nothrow pure;
147 void drawCaptureMenuItem(const(char)* label) @trusted @nogc nothrow pure {
148     sgimgui_draw_capture_menu_item(label);
149 }
150 extern(C) void sgimgui_draw_capabilities_menu_item(const(char)* label) @system @nogc nothrow pure;
151 void drawCapabilitiesMenuItem(const(char)* label) @trusted @nogc nothrow pure {
152     sgimgui_draw_capabilities_menu_item(label);
153 }
154 extern(C) void sgimgui_draw_frame_stats_menu_item(const(char)* label) @system @nogc nothrow pure;
155 void drawFrameStatsMenuItem(const(char)* label) @trusted @nogc nothrow pure {
156     sgimgui_draw_frame_stats_menu_item(label);
157 }