| 209 | } |
| 210 | |
| 211 | const 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, |
no test coverage detected