Lines Matching defs:backup
5304 // Store a backup of SizeFull which we will use next frame to decide if we need scrollbars.
5759 ImGuiColorMod backup;
5760 backup.Col = idx;
5761 backup.BackupValue = g.Style.Colors[idx];
5762 g.ColorModifiers.push_back(backup);
5769 ImGuiColorMod backup;
5770 backup.Col = idx;
5771 backup.BackupValue = g.Style.Colors[idx];
5772 g.ColorModifiers.push_back(backup);
5781 ImGuiColorMod& backup = g.ColorModifiers.back();
5782 g.Style.Colors[backup.Col] = backup.BackupValue;
5863 // We avoid a generic memcpy(data, &backup.Backup.., GDataTypeSize[info->Type] * info->Count), the overhead in Debug is not worth it.
5864 ImGuiStyleMod& backup = g.StyleModifiers.back();
5865 const ImGuiStyleVarInfo* info = GetStyleVarInfo(backup.VarIdx);
5867 if (info->Type == ImGuiDataType_Float && info->Count == 1) { ((float*)data)[0] = backup.BackupFloat[0]; }
5868 else if (info->Type == ImGuiDataType_Float && info->Count == 2) { ((float*)data)[0] = backup.BackupFloat[0]; ((float*)data)[1] = backup.BackupFloat[1]; }