| 6067 | } |
| 6068 | |
| 6069 | void ImGuiMenuColumns::Update(int count, float spacing, bool clear) |
| 6070 | { |
| 6071 | IM_ASSERT(count == IM_ARRAYSIZE(Pos)); |
| 6072 | IM_UNUSED(count); |
| 6073 | Width = NextWidth = 0.0f; |
| 6074 | Spacing = spacing; |
| 6075 | if (clear) |
| 6076 | memset(NextWidths, 0, sizeof(NextWidths)); |
| 6077 | for (int i = 0; i < IM_ARRAYSIZE(Pos); i++) |
| 6078 | { |
| 6079 | if (i > 0 && NextWidths[i] > 0.0f) |
| 6080 | Width += Spacing; |
| 6081 | Pos[i] = IM_FLOOR(Width); |
| 6082 | Width += NextWidths[i]; |
| 6083 | NextWidths[i] = 0.0f; |
| 6084 | } |
| 6085 | } |
| 6086 | |
| 6087 | float ImGuiMenuColumns::DeclColumns(float w0, float w1, float w2) // not using va_arg because they promote float to double |
| 6088 | { |
no outgoing calls
no test coverage detected