MCPcopy Create free account
hub / github.com/InteractiveComputerGraphics/SPlisHSPlasH / GetWindowResizeBorderID

Method GetWindowResizeBorderID

extern/imgui/imgui.cpp:6253–6261  ·  view source on GitHub ↗

Borders (Left, Right, Up, Down)

Source from the content-addressed store, hash-verified

6251
6252// Borders (Left, Right, Up, Down)
6253ImGuiID ImGui::GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir)
6254{
6255 IM_ASSERT(dir >= 0 && dir < 4);
6256 int n = (int)dir + 4;
6257 ImGuiID id = window->DockIsActive ? window->DockNode->HostWindow->ID : window->ID;
6258 id = ImHashStr("#RESIZE", 0, id);
6259 id = ImHashData(&n, sizeof(int), id);
6260 return id;
6261}
6262
6263// Handle resize for: Resize Grips, Borders, Gamepad
6264// 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