Show / Hide Table of Contents

Class DiffAwareGridViewSerialized<T>

Serializable (pure-data) object representing a DiffAwareGridView<T>.

Inheritance
Object
DiffAwareGridViewSerialized<T>
Namespace: SadRogue.Primitives.SerializedTypes.GridViews
Assembly: TheSadRogue.Primitives.dll
Syntax
public sealed class DiffAwareGridViewSerialized<T> : ValueType where T : struct, ValueType
Type Parameters
Name Description
T

Type of value being changed.

Fields

AutoCompress

Whether or not to automatically compress diffs when the currently applied diff is changed.

Declaration
public bool AutoCompress
Field Value
Type Description
Boolean

BaseGrid

The grid view whose changes are being recorded in diffs.

Declaration
public ISettableGridView<T> BaseGrid
Field Value
Type Description
ISettableGridView<T>

CurrentDiffIndex

The index of the diff whose ending state is currently reflected in BaseGrid.

Declaration
public int CurrentDiffIndex
Field Value
Type Description
Int32

Diffs

All diffs recorded for the current grid view, and their changes.

Declaration
public List<DiffSerialized<T>> Diffs
Field Value
Type Description
List<DiffSerialized<T>>

Operators

Implicit(DiffAwareGridView<T> to DiffAwareGridViewSerialized<T>)

Converts DiffAwareGridView<T> to DiffAwareGridViewSerialized<T>.

Declaration
public static implicit operator DiffAwareGridViewSerialized<T>(DiffAwareGridView<T> view)
Parameters
Type Name Description
DiffAwareGridView<T> view
Returns
Type Description
DiffAwareGridViewSerialized<T>

Implicit(DiffAwareGridViewSerialized<T> to DiffAwareGridView<T>)

Converts DiffAwareGridViewSerialized<T> to DiffAwareGridView<T>.

Declaration
public static implicit operator DiffAwareGridView<T>(DiffAwareGridViewSerialized<T> view)
Parameters
Type Name Description
DiffAwareGridViewSerialized<T> view
Returns
Type Description
DiffAwareGridView<T>

Extension Methods

PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>)
PropertyChangedEventHelpers.SafelySetProperty<TObject, TProperty>(TObject, ref TProperty, TProperty, EventHandler<ValueChangedEventArgs<TProperty>>, EventHandler<ValueChangedEventArgs<TProperty>>)
In This Article
Back to top Generated by DocFX