LocalAtom<T> class
Namespace: Arlecchino.Atoms.Local · Assembly: Arlecchino.Core
An atom the undo stack never sees: a filter, a cursor, a load in progress, a selection — state the user did not author and would not expect to travel back through. It notifies and repaints exactly as a TrackedAtom does.
public sealed class LocalAtom<T> : Atom<T>, IReadableAtom<T>
Inherits from Atom<T>
Implements IReadableAtom<T>
Constructors
| Member | Summary |
|---|---|
LocalAtom(T, IEqualityComparer<T>) | Creates an atom holding a starting value, outside the undo history. |
Properties
| Member | Summary |
|---|---|
RecordsHistory |
Constructors in detail
LocalAtom(T, IEqualityComparer<T>)
public LocalAtom(T initial, IEqualityComparer<T> comparer);
Creates an atom holding a starting value, outside the undo history.
Parameters
| Name | Type | Description |
|---|---|---|
initial | T | The value to start with. |
comparer | IEqualityComparer<T><T> | How to decide that writing to it changed nothing; the default comparer for T is used when omitted. |
Properties in detail
RecordsHistory
public virtual bool RecordsHistory { get; }
Type bool