| 5991 | }; |
| 5992 | |
| 5993 | static ImRect GetResizeBorderRect(ImGuiWindow* window, int border_n, float perp_padding, float thickness) |
| 5994 | { |
| 5995 | ImRect rect = window->Rect(); |
| 5996 | if (thickness == 0.0f) |
| 5997 | rect.Max -= ImVec2(1, 1); |
| 5998 | if (border_n == ImGuiDir_Left) { return ImRect(rect.Min.x - thickness, rect.Min.y + perp_padding, rect.Min.x + thickness, rect.Max.y - perp_padding); } |
| 5999 | if (border_n == ImGuiDir_Right) { return ImRect(rect.Max.x - thickness, rect.Min.y + perp_padding, rect.Max.x + thickness, rect.Max.y - perp_padding); } |
| 6000 | if (border_n == ImGuiDir_Up) { return ImRect(rect.Min.x + perp_padding, rect.Min.y - thickness, rect.Max.x - perp_padding, rect.Min.y + thickness); } |
| 6001 | if (border_n == ImGuiDir_Down) { return ImRect(rect.Min.x + perp_padding, rect.Max.y - thickness, rect.Max.x - perp_padding, rect.Max.y + thickness); } |
| 6002 | IM_ASSERT(0); |
| 6003 | return ImRect(); |
| 6004 | } |
| 6005 | |
| 6006 | // 0..3: corners (Lower-right, Lower-left, Unused, Unused) |
| 6007 | ImGuiID ImGui::GetWindowResizeCornerID(ImGuiWindow* window, int n) |
no test coverage detected