ImGuiGuardedValue<T> Struct
Definition
Section titled “Definition”Makes a copy of a value and allows it to be changed. The change can be committed or reverted.
public struct ImGuiGuardedValue<T> where T : structType Parameters
Section titled “Type Parameters”T
A structure.
Constructors
Section titled “Constructors”ImGuiGuardedValue(T)
Section titled “ImGuiGuardedValue(T)”Creates a new instance of this structure, wrapping the provided value.
public ImGuiGuardedValue(T value)Parameters
Section titled “Parameters”value T
The original value.
Fields
Section titled “Fields”OriginalValue
Section titled “OriginalValue”The original value.
public T OriginalValueCurrentValue
Section titled “CurrentValue”The current value.
public T CurrentValueMethods
Section titled “Methods”IsChanged()
Section titled “IsChanged()”Returns true when the original value doesn’t equal the current value.
public bool IsChanged()Returns
Section titled “Returns”bool
A value to indicate changed state.
Commit()
Section titled “Commit()”Sets the original value to the current value.
public void Commit()Reset()
Section titled “Reset()”Sets the current value to the original value.
public void Reset()