MCPcopy Create free account
hub / github.com/AlexandreRouma/SDRPlusPlus / GetWindowResizeBorderID

Method GetWindowResizeBorderID

core/src/imgui/imgui.cpp:5356–5364  ·  view source on GitHub ↗

Borders (Left, Right, Up, Down)

Source from the content-addressed store, hash-verified

5354
5355// Borders (Left, Right, Up, Down)
5356ImGuiID ImGui::GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir)
5357{
5358 IM_ASSERT(dir >= 0 && dir < 4);
5359 int n = (int)dir + 4;
5360 ImGuiID id = window->ID;
5361 id = ImHashStr("#RESIZE", 0, id);
5362 id = ImHashData(&n, sizeof(int), id);
5363 return id;
5364}
5365
5366// Handle resize for: Resize Grips, Borders, Gamepad
5367// 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