| 3697 | } |
| 3698 | |
| 3699 | void 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 | |
| 3709 | void ImGui::PushStyleVarX(ImGuiStyleVar idx, float val_x) |
| 3710 | { |
nothing calls this directly
no test coverage detected