MCPcopy Create free account
hub / github.com/KebsCS/KBotExt / GetWindowResizeBorderID

Method GetWindowResizeBorderID

KBotExt/imgui/imgui.cpp:5779–5787  ·  view source on GitHub ↗

Borders (Left, Right, Up, Down)

Source from the content-addressed store, hash-verified

5777
5778// Borders (Left, Right, Up, Down)
5779ImGuiID ImGui::GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir)
5780{
5781 IM_ASSERT(dir >= 0 && dir < 4);
5782 int n = (int)dir + 4;
5783 ImGuiID id = window->ID;
5784 id = ImHashStr("#RESIZE", 0, id);
5785 id = ImHashData(&n, sizeof(int), id);
5786 return id;
5787}
5788
5789// Handle resize for: Resize Grips, Borders, Gamepad
5790// 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