MCPcopy Create free account
hub / github.com/cinder/Cinder / GetWindowResizeBorderID

Method GetWindowResizeBorderID

src/imgui/imgui.cpp:6718–6726  ·  view source on GitHub ↗

Borders (Left, Right, Up, Down)

Source from the content-addressed store, hash-verified

6716
6717// Borders (Left, Right, Up, Down)
6718ImGuiID ImGui::GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir)
6719{
6720 IM_ASSERT(dir >= 0 && dir < 4);
6721 int n = (int)dir + 4;
6722 ImGuiID id = window->ID;
6723 id = ImHashStr("#RESIZE", 0, id);
6724 id = ImHashData(&n, sizeof(int), id);
6725 return id;
6726}
6727
6728// Handle resize for: Resize Grips, Borders, Gamepad
6729// 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