MCPcopy Create free account
hub / github.com/Overload-Technologies/Overload / GetWindowResizeBorderID

Method GetWindowResizeBorderID

Dependencies/ImGui/src/imgui.cpp:6812–6820  ·  view source on GitHub ↗

Borders (Left, Right, Up, Down)

Source from the content-addressed store, hash-verified

6810
6811// Borders (Left, Right, Up, Down)
6812ImGuiID ImGui::GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir)
6813{
6814 IM_ASSERT(dir >= 0 && dir < 4);
6815 int n = (int)dir + 4;
6816 ImGuiID id = window->DockIsActive ? window->DockNode->HostWindow->ID : window->ID;
6817 id = ImHashStr("#RESIZE", 0, id);
6818 id = ImHashData(&n, sizeof(int), id);
6819 return id;
6820}
6821
6822// Handle resize for: Resize Grips, Borders, Gamepad
6823// 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