Color legend plain property method
What a markup made, returned by LoadDocument and LoadDocumentFile: the elements under <Ui>, every element made for them, which Dispose disposes, the markup’s elements as written, with where each one is, and its animations. For a UI that goes away as a whole, a screen left or a markup loaded again in its place, and for a tool that shows a markup’s elements or plays its animations.
A sealed class of the BorrowedTorch.UI.Markup package (namespace BorrowedTorch.UI.Markup), IDisposable. The markup page shows it in context.
Names are colored by what they are: a property, a method or an event; values and fields keep the plain color.
Properties
Animations 🠆
IReadOnlyList<MarkupAnimation> · Read-only. The animations of the markup’s <Ui.Animations> and of the UIs it includes, each with its Start, Stop and Seek. Empty once the document is disposed. See animations.
Elements 🠆
IReadOnlyList<BaseElement> · Read-only. The elements under <Ui>, in the order they are written, not added anywhere yet: add them to the root (AddElementToRoot) or to an element of your own.
Nodes 🠆
IReadOnlyList<MarkupNode> · Read-only. The markup’s elements as written, in a tree of MarkupNodes: the ones under <Ui>, with the elements written in them, an include holding the elements of its UI. See the elements as written.
Methods
Dispose() 🠆
Dispose() · Stops the markup’s animations, which would otherwise set the properties of disposed elements, and empties Animations. Then disposes every element the markup made, the items and contents of its panels included, which disposing a panel leaves alone (it only detaches them). A disposed element leaves its parent, the root as well. Elements added to them since are only detached, as a panel’s own items are.
FindAnimation() 🠆
FindAnimation(string key) · The animation of the key, null for none (or for a null key).
| Parameter | Type | Description |
|---|---|---|
key |
string |
An animation’s Key, with the include’s name before it for one of an included UI: left.pulse for the pulse of a UI included with Name="left". |
NodeAt() 🠆
NodeAt(string position) · The node at a position, null where there is none (or for a null position). The same position in the markup loaded again after an edit elsewhere in it is the same element, so a tool keeps its selection across reloads.
| Parameter | Type | Description |
|---|---|---|
position |
string |
A node’s Position: 1/0/2. |
NodeOf() 🠆
NodeOf(BaseElement element) · The node of an element the markup has, null for one it doesn’t (or for null). A part a control made for itself, such as a slider’s thumb, has none: walk up its Parents to the element written.
| Parameter | Type | Description |
|---|---|---|
element |
BaseElement |
An element, for example the one clicked in a tool’s view. |
StartLoadAnimations() 🠆
StartLoadAnimations() · Starts the animations started as the markup is loaded (a StartOn with Load), from their beginnings: what a load does, unless its context’s StartsLoadAnimations is false. For a tool that shows the UI as it is written until it plays it.