MCPcopy Create free account
hub / github.com/danoon2/Boxedwine / Update

Method Update

lib/imgui/imgui_widgets.cpp:6069–6085  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6067}
6068
6069void ImGuiMenuColumns::Update(int count, float spacing, bool clear)
6070{
6071 IM_ASSERT(count == IM_ARRAYSIZE(Pos));
6072 IM_UNUSED(count);
6073 Width = NextWidth = 0.0f;
6074 Spacing = spacing;
6075 if (clear)
6076 memset(NextWidths, 0, sizeof(NextWidths));
6077 for (int i = 0; i < IM_ARRAYSIZE(Pos); i++)
6078 {
6079 if (i > 0 && NextWidths[i] > 0.0f)
6080 Width += Spacing;
6081 Pos[i] = IM_FLOOR(Width);
6082 Width += NextWidths[i];
6083 NextWidths[i] = 0.0f;
6084 }
6085}
6086
6087float ImGuiMenuColumns::DeclColumns(float w0, float w1, float w2) // not using va_arg because they promote float to double
6088{

Callers 6

SDL_SensorOpenFunction · 0.45
SDL_SensorUpdateFunction · 0.45
SDL_JoystickOpenFunction · 0.45
SDL_JoystickUpdateFunction · 0.45
HAIKU_JoystickUpdateFunction · 0.45
BeginMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected