MCPcopy Create free account
hub / github.com/RenderKit/embree / DeclColumns

Method DeclColumns

tutorials/common/imgui/imgui_widgets.cpp:6785–6793  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6783}
6784
6785float ImGuiMenuColumns::DeclColumns(float w_icon, float w_label, float w_shortcut, float w_mark)
6786{
6787 Widths[0] = ImMax(Widths[0], (ImU16)w_icon);
6788 Widths[1] = ImMax(Widths[1], (ImU16)w_label);
6789 Widths[2] = ImMax(Widths[2], (ImU16)w_shortcut);
6790 Widths[3] = ImMax(Widths[3], (ImU16)w_mark);
6791 CalcNextTotalWidth(false);
6792 return (float)ImMax(TotalWidth, NextTotalWidth);
6793}
6794
6795// FIXME: Provided a rectangle perhaps e.g. a BeginMenuBarEx() could be used anywhere..
6796// 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