FIXME-LAYOUT: To be done automatically via layout mode once we rework ItemSize/ItemAdd into ItemLayout.
| 23755 | |
| 23756 | // FIXME-LAYOUT: To be done automatically via layout mode once we rework ItemSize/ItemAdd into ItemLayout. |
| 23757 | static void SameLineOrWrap(const ImVec2& size) |
| 23758 | { |
| 23759 | ImGuiContext& g = *GImGui; |
| 23760 | ImGuiWindow* window = g.CurrentWindow; |
| 23761 | ImVec2 pos(window->DC.CursorPosPrevLine.x + g.Style.ItemSpacing.x, window->DC.CursorPosPrevLine.y); |
| 23762 | if (window->WorkRect.Contains(ImRect(pos, pos + size))) |
| 23763 | ImGui::SameLine(); |
| 23764 | } |
| 23765 | |
| 23766 | static void ShowDebugLogFlag(const char* name, ImGuiDebugLogFlags flags) |
| 23767 | { |
no test coverage detected