Toast Engine
Loading...
Searching...
No Matches
editor.Editors.GenericFieldVM Class Reference
Inheritance diagram for editor.Editors.GenericFieldVM:
Collaboration diagram for editor.Editors.GenericFieldVM:

Public Member Functions

void SetFieldTypesRecursive (IReadOnlyList< string > types)
object ToTomlValue ()

Static Public Member Functions

static string FormatFieldName (string raw)
static GenericFieldVM FromToml (string name, object tomlValue, string typeHint="")

Static Public Attributes

static readonly IReadOnlyList< string > AllFieldTypes
static readonly IReadOnlyList< string > BasicFieldTypes

Properties

IReadOnlyList< string > FieldTypes = AllFieldTypes [get, set]
IReadOnlyList< string > Variants = [] [get, set]
bool ChildrenEditable [get]
Func< GenericFieldVM >? ArrayItemFactory [get, set]
IReadOnlyList< string > EnumAllowedValues [get, set]
ObservableCollection< GenericFieldVM > Children = [] [get]
Action? NotifyDirty [get, set]
Action< GenericFieldVM >? RemoveCallback [get, set]
bool IsFloat [get]
bool IsInt [get]
bool IsBool [get]
bool IsString [get]
bool IsNode [get]
bool IsAsset [get]
bool IsVec2 [get]
bool IsVec3 [get]
bool IsColor3 [get]
bool IsColor4 [get]
bool IsObject [get]
bool IsArray [get]
bool IsEnum [get]
bool IsVectorLayout [get]
bool IsScalar [get]
bool IsScalarOrVec [get]
bool HasEnumOptions [get]
bool IsEnumWithOptions [get]
bool IsEnumWithoutOptions [get]
bool IsNamedScalar [get]
bool IsArrayItem [get]
bool IsNamedField [get]
bool IsUnnamedScalar [get]
string DisplayLabel [get]
bool ShouldSplitRow [get]
bool RowVisible [get]
bool IsStructRow [get]

Member Data Documentation

◆ AllFieldTypes

readonly IReadOnlyList<string> editor.Editors.GenericFieldVM.AllFieldTypes
static
Initial value:
= [
"bool", "int", "float", "string", "enum", "node", "asset",
"vec2", "vec3", "color3", "color4", "object", "array"
]

◆ BasicFieldTypes

readonly IReadOnlyList<string> editor.Editors.GenericFieldVM.BasicFieldTypes
static
Initial value:
= [
"bool", "int", "float", "string", "object", "array"
]

Property Documentation

◆ IsStructRow

bool editor.Editors.GenericFieldVM.IsStructRow
get

◆ RowVisible

bool editor.Editors.GenericFieldVM.RowVisible
get

◆ ShouldSplitRow

bool editor.Editors.GenericFieldVM.ShouldSplitRow
get

The documentation for this class was generated from the following file:
  • editor/Editors/GenericModels.cs