Borders (Left, Right, Up, Down)
| 7188 | |
| 7189 | // Borders (Left, Right, Up, Down) |
| 7190 | ImGuiID ImGui::GetWindowResizeBorderID(ImGuiWindow* window, ImGuiDir dir) |
| 7191 | { |
| 7192 | IM_ASSERT(dir >= 0 && dir < 4); |
| 7193 | int n = (int)dir + 4; |
| 7194 | ImGuiID id = window->DockIsActive ? window->DockNode->HostWindow->ID : window->ID; |
| 7195 | id = ImHashStr("#RESIZE", 0, id); |
| 7196 | id = ImHashData(&n, sizeof(int), id); |
| 7197 | return id; |
| 7198 | } |
| 7199 | |
| 7200 | // Handle resize for: Resize Grips, Borders, Gamepad |
| 7201 | // Return true when using auto-fit (double-click on resize grip) |
nothing calls this directly
no test coverage detected