MCPcopy Create free account
hub / github.com/crosire/reshade / init_imgui_function_table_18971

Function init_imgui_function_table_18971

source/imgui_function_table_18971.cpp:211–707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

209}
210
211const imgui_function_table_18971 init_imgui_function_table_18971() { return {
212 []() -> imgui_io_18971 & {
213 static imgui_io_18971 io = {};
214 convert(g_imgui_function_table_19000.GetIO(), io);
215 return io;
216 },
217 []() -> imgui_style_18971 & {
218 static imgui_style_18971 style = {};
219 convert(g_imgui_function_table_19000.GetStyle(), style);
220 return style;
221 },
222 g_imgui_function_table_19000.GetVersion,
223 [](const char *name, bool *p_open, ImGuiWindowFlags flags) -> bool {
224 return g_imgui_function_table_19000.Begin(name, p_open, convert_window_flags(flags));
225 },
226 g_imgui_function_table_19000.End,
227 [](const char *str_id, const ImVec2 &size, bool border, ImGuiWindowFlags flags) -> bool {
228 ImGuiChildFlags child_flags = 0;
229 if (border)
230 child_flags |= 1 << 0; // ImGuiChildFlags_Border
231 if (flags & (1 << 16))
232 child_flags |= 1 << 1; // ImGuiChildFlags_AlwaysUseWindowPadding
233 ImVec2 full_size = size;
234 if (flags & (1 << 6)) // ImGuiWindowFlags_AlwaysAutoResize
235 {
236 flags ^= 1 << 6;
237 child_flags |= (1 << 4) | (1 << 5) | (1 << 6); // ImGuiChildFlags_AutoResizeX | ImGuiChildFlags_AutoResizeY | ImGuiChildFlags_AlwaysAutoResize
238 if (size.x == 0.0f)
239 full_size.x = g_imgui_function_table_19000.GetContentRegionAvail().x;
240 if (size.y == 0.0f)
241 full_size.y = g_imgui_function_table_19000.GetContentRegionAvail().y;
242 }
243 return g_imgui_function_table_19000.BeginChild(str_id, full_size, child_flags, convert_window_flags(flags));
244 },
245 [](ImGuiID id, const ImVec2 &size, bool border, ImGuiWindowFlags flags) -> bool {
246 ImGuiChildFlags child_flags = 0;
247 if (border)
248 child_flags |= 1 << 0; // ImGuiChildFlags_Border
249 if (flags & (1 << 16))
250 child_flags |= 1 << 1; // ImGuiChildFlags_AlwaysUseWindowPadding
251 ImVec2 full_size = size;
252 if (flags & (1 << 6)) // ImGuiWindowFlags_AlwaysAutoResize
253 {
254 flags ^= 1 << 6;
255 child_flags |= (1 << 4) | (1 << 5) | (1 << 6); // ImGuiChildFlags_AutoResizeX | ImGuiChildFlags_AutoResizeY | ImGuiChildFlags_AlwaysAutoResize
256 if (size.x == 0.0f)
257 full_size.x = g_imgui_function_table_19000.GetContentRegionAvail().x;
258 if (size.y == 0.0f)
259 full_size.y = g_imgui_function_table_19000.GetContentRegionAvail().y;
260 }
261 return g_imgui_function_table_19000.BeginChild2(id, full_size, child_flags, convert_window_flags(flags));
262 },
263 g_imgui_function_table_19000.EndChild,
264 g_imgui_function_table_19000.IsWindowAppearing,
265 g_imgui_function_table_19000.IsWindowCollapsed,
266 g_imgui_function_table_19000.IsWindowFocused,
267 [](ImGuiHoveredFlags flags) -> bool { return g_imgui_function_table_19000.IsWindowHovered(convert_hovered_flags(flags)); },
268 g_imgui_function_table_19000.GetWindowDrawList,

Callers 1

Calls 7

convert_hovered_flagsFunction · 0.85
convert_keyFunction · 0.85
convertFunction · 0.70
convert_window_flagsFunction · 0.70
convert_style_varFunction · 0.70
convert_tree_node_flagsFunction · 0.70
BeginMethod · 0.45

Tested by

no test coverage detected