[IoId("00000000-6ad7-4315-8852-32959a4b89a6")] public sealed class Guises : IStorable
A set of related Guise states for use in both standard and selected drawing.

Constructors

Guises

#
public Guises(Guise standard, Guise selected)
Create a guise collection.
standard (Guise)Guise for unselected displays.
selected (Guise)Guise for selected displays.

Guises

#
public Guises(IReader reader)
reader (IReader)

Properties

Id

#
public Guid Id { get; }
Gets the identifier of this instance. This can be handy for when you have to decide whether or not to wipe a cache.

Selected

#
public Guise Selected { get; }
Gets the partially resolved guise for selected display. Unset values in this guise must revert either to the Standard or some other guaranteed value.

SelectedUnresolved

#
public Guise SelectedUnresolved { get; }
Gets the guise for selected display. This guise may feature many unset properties and is not suitable for use in drawing routines. Use the Selected guise instead which has fully resolved properties.

Standard

#
public Guise Standard { get; }
Gets the fully resolved guise for normal (unselected) display. Use this when drawing shapes in the viewports.

StandardUnresolved

#
public Guise StandardUnresolved { get; }
Gets the guise for standard (i.e. unselected) display. This guise may feature many unset properties and is not suitable for use in drawing routines. Use the Standard guise instead which has fully resolved properties.

Methods

Store

#
public void Store(IWriter writer)
writer (IWriter)
Store

WithSelected

#
public Guises WithSelected(Guise selected)
selected (Guise)

WithStandard

#
public Guises WithStandard(Guise standard)
standard (Guise)