| 7425 | } |
| 7426 | |
| 7427 | float ImGuiMenuColumns::DeclColumns(float w_icon, float w_label, float w_shortcut, float w_mark) |
| 7428 | { |
| 7429 | Widths[0] = ImMax(Widths[0], (ImU16)w_icon); |
| 7430 | Widths[1] = ImMax(Widths[1], (ImU16)w_label); |
| 7431 | Widths[2] = ImMax(Widths[2], (ImU16)w_shortcut); |
| 7432 | Widths[3] = ImMax(Widths[3], (ImU16)w_mark); |
| 7433 | CalcNextTotalWidth(false); |
| 7434 | return (float)ImMax(TotalWidth, NextTotalWidth); |
| 7435 | } |
| 7436 | |
| 7437 | // FIXME: Provided a rectangle perhaps e.g. a BeginMenuBarEx() could be used anywhere.. |
| 7438 | // Currently the main responsibility of this function being to setup clip-rect + horizontal layout + menu navigation layer. |
no test coverage detected