MCPcopy Create free account
hub / github.com/VictorGordan/opengl-tutorials / GetWindowResizeBorderID

Method GetWindowResizeBorderID

ImGUI GLFW Tutorial/imgui/imgui.cpp:5355–5363  ·  view source on GitHub ↗

Borders (Left, Right, Up, Down)

Source from the content-addressed store, hash-verified

5353
5354// Borders (Left, Right, Up, Down)
5355ImGuiID ImGui::GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir)
5356{
5357 IM_ASSERT(dir >= 0 && dir < 4);
5358 int n = (int)dir + 4;
5359 ImGuiID id = window->ID;
5360 id = ImHashStr("#RESIZE", 0, id);
5361 id = ImHashData(&n, sizeof(int), id);
5362 return id;
5363}
5364
5365// Handle resize for: Resize Grips, Borders, Gamepad
5366// Return true when using auto-fit (double click on resize grip)

Callers

nothing calls this directly

Calls 2

ImHashStrFunction · 0.70
ImHashDataFunction · 0.70

Tested by

no test coverage detected