| 6714 | } |
| 6715 | |
| 6716 | float ImGuiMenuColumns::DeclColumns(float w_icon, float w_label, float w_shortcut, float w_mark) |
| 6717 | { |
| 6718 | Widths[0] = ImMax(Widths[0], (ImU16)w_icon); |
| 6719 | Widths[1] = ImMax(Widths[1], (ImU16)w_label); |
| 6720 | Widths[2] = ImMax(Widths[2], (ImU16)w_shortcut); |
| 6721 | Widths[3] = ImMax(Widths[3], (ImU16)w_mark); |
| 6722 | CalcNextTotalWidth(false); |
| 6723 | return (float)ImMax(TotalWidth, NextTotalWidth); |
| 6724 | } |
| 6725 | |
| 6726 | // FIXME: Provided a rectangle perhaps e.g. a BeginMenuBarEx() could be used anywhere.. |
| 6727 | // Currently the main responsibility of this function being to setup clip-rect + horizontal layout + menu navigation layer. |
no test coverage detected