Skip to content

Class InspectorMeta

Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll

What an inspector needs to know about a property or a component field besides its type: a range for a slider, a step for a drag field, a heading, hidden, read-only. All optional.

public sealed record InspectorMeta : IEquatable<InspectorMeta>

Inheritance

object ← InspectorMeta

Implements

IEquatable<InspectorMeta>

Inherited Members

object.Equals(object?), object.Equals(object?, object?), object.GetHashCode(), object.GetType(), object.ReferenceEquals(object?, object?), object.ToString()

Constructors

InspectorMeta(double, double, double, string?, bool, bool)

What an inspector needs to know about a property or a component field besides its type: a range for a slider, a step for a drag field, a heading, hidden, read-only. All optional.

public InspectorMeta(double Min = NaN, double Max = NaN, double Step = NaN, string? Category = null, bool Hidden = false, bool ReadOnly = false)

Parameters

Min double

Max double

Step double

Category string?

Hidden bool

ReadOnly bool

Properties

Category

public string? Category { get; init; }

Property Value

string?

HasRange

Whether both ends of the range are given (a slider can be drawn).

public bool HasRange { get; }

Property Value

bool

Hidden

public bool Hidden { get; init; }

Property Value

bool

Max

public double Max { get; init; }

Property Value

double

Min

public double Min { get; init; }

Property Value

double

RangeText

The range as text for documentation: 0 to 10, from 0, up to 10, or empty.

public string RangeText { get; }

Property Value

string

ReadOnly

public bool ReadOnly { get; init; }

Property Value

bool

Step

public double Step { get; init; }

Property Value

double