MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / GetWindowResizeID

Method GetWindowResizeID

lib/imgui/imgui.cpp:4962–4969  ·  view source on GitHub ↗

0..3: corners (Lower-right, Lower-left, Unused, Unused) 4..7: borders (Top, Right, Bottom, Left)

Source from the content-addressed store, hash-verified

4960// 0..3: corners (Lower-right, Lower-left, Unused, Unused)
4961// 4..7: borders (Top, Right, Bottom, Left)
4962ImGuiID ImGui::GetWindowResizeID(ImGuiWindow* window, int n)
4963{
4964 IM_ASSERT(n >= 0 && n <= 7);
4965 ImGuiID id = window->ID;
4966 id = ImHashStr("#RESIZE", 0, id);
4967 id = ImHashData(&n, sizeof(int), id);
4968 return id;
4969}
4970
4971// Handle resize for: Resize Grips, Borders, Gamepad
4972// 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