MCPcopy Create free account
hub / github.com/Aegel5/SimpleSwitcher / GetWindowResizeBorderID

Method GetWindowResizeBorderID

imgui_tiny_app/imgui/imgui.cpp:7200–7208  ·  view source on GitHub ↗

Borders (Left, Right, Up, Down)

Source from the content-addressed store, hash-verified

7198
7199// Borders (Left, Right, Up, Down)
7200ImGuiID ImGui::GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir)
7201{
7202 IM_ASSERT(dir >= 0 && dir < 4);
7203 int n = (int)dir + 4;
7204 ImGuiID id = window->DockIsActive ? window->DockNode->HostWindow->ID : window->ID;
7205 id = ImHashStr("#RESIZE", 0, id);
7206 id = ImHashData(&n, sizeof(int), id);
7207 return id;
7208}
7209
7210// Handle resize for: Resize Grips, Borders, Gamepad
7211// Return true when using auto-fit (double-click on resize grip)

Callers

nothing calls this directly

Calls 2

ImHashStrFunction · 0.85
ImHashDataFunction · 0.85

Tested by

no test coverage detected