MCPcopy Create free account
hub / github.com/Wemino/MarkerPatch / PushStyleVar

Method PushStyleVar

include/imgui/imgui.cpp:3699–3707  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

3697}
3698
3699void ImGui::PushStyleVar(ImGuiStyleVar idx, float val)
3700{
3701 ImGuiContext& g = *GImGui;
3702 const ImGuiStyleVarInfo* var_info = GetStyleVarInfo(idx);
3703 IM_ASSERT_USER_ERROR_RET(var_info->DataType == ImGuiDataType_Float && var_info->Count == 1, "Calling PushStyleVar() variant with wrong type!");
3704 float* pvar = (float*)var_info->GetVarPtr(&g.Style);
3705 g.StyleVarStack.push_back(ImGuiStyleMod(idx, *pvar));
3706 *pvar = val;
3707}
3708
3709void ImGui::PushStyleVarX(ImGuiStyleVar idx, float val_x)
3710{

Callers

nothing calls this directly

Calls 3

ImGuiStyleModClass · 0.85
GetVarPtrMethod · 0.80
push_backMethod · 0.45

Tested by

no test coverage detected