MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / DeclColumns

Method DeclColumns

TheForceEngine/TFE_Ui/imGUI/imgui_widgets.cpp:7427–7435  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

7425}
7426
7427float 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.

Callers 2

BeginMenuExMethod · 0.80
MenuItemExMethod · 0.80

Calls 1

ImMaxFunction · 0.85

Tested by

no test coverage detected