Show / Hide Table of Contents

Struct ImGuiGuardedValue<T>

Makes a copy of a value and allows it to be changed. The change can be committed or reverted.

Inherited Members
ValueType.Equals(object)
ValueType.GetHashCode()
ValueType.ToString()
object.GetType()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: SadConsole.ImGuiSystem
Assembly: SadConsole.Debug.MonoGame.dll
Syntax
public struct ImGuiGuardedValue<T> where T : struct
Type Parameters
Name Description
T

A structure.

Constructors

ImGuiGuardedValue(T)

Creates a new instance of this structure, wrapping the provided value.

Declaration
public ImGuiGuardedValue(T value)
Parameters
Type Name Description
T value

The original value.

Fields

CurrentValue

The current value.

Declaration
public T CurrentValue
Field Value
Type Description
T

OriginalValue

The original value.

Declaration
public T OriginalValue
Field Value
Type Description
T

Methods

Commit()

Sets the original value to the current value.

Declaration
public void Commit()

IsChanged()

Returns true when the original value doesn't equal the current value.

Declaration
public bool IsChanged()
Returns
Type Description
bool

A value to indicate changed state.

Reset()

Sets the current value to the original value.

Declaration
public void Reset()

Extension Methods

ExtensionsSystem.GetDebuggerDisplayValue(object)
In this article

Back to top

Back to top Generated by DocFX