MCPcopy Create free account
hub / github.com/cinder/Cinder / DeclColumns

Method DeclColumns

src/imgui/imgui_widgets.cpp:8921–8929  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

8919}
8920
8921float ImGuiMenuColumns::DeclColumns(float w_icon, float w_label, float w_shortcut, float w_mark)
8922{
8923 Widths[0] = ImMax(Widths[0], (ImU16)w_icon);
8924 Widths[1] = ImMax(Widths[1], (ImU16)w_label);
8925 Widths[2] = ImMax(Widths[2], (ImU16)w_shortcut);
8926 Widths[3] = ImMax(Widths[3], (ImU16)w_mark);
8927 CalcNextTotalWidth(false);
8928 return (float)ImMax(TotalWidth, NextTotalWidth);
8929}
8930
8931// FIXME: Provided a rectangle perhaps e.g. a BeginMenuBarEx() could be used anywhere..
8932// 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