InputFieldState

Description

struct Tinman.Engine.GUI.Components.InputFieldState

Describes the input state of an InputFieldGeneric.

Public / Constants

Valid


public static readonly attribute Valid → (InputFieldState)

The current input is valid.

Public / Constructors

Invalid

4 overloads


public static method Invalid1 → ()

returns → InputFieldState

The input state.

Creates a new instance of InputFieldState for invalid input.


public static method Invalid2 → (1)

range in : RangeI

The value to ErrorRange.

returns → InputFieldState

The input state.

Creates a new instance of InputFieldState for invalid input.


public static method Invalid3 → (2)

range in : RangeI

The value to ErrorRange.

message in : string

The value to ErrorMessage.

returns → InputFieldState

The input state.

Creates a new instance of InputFieldState for invalid input.


public static method Invalid4 → (1)

message in : string

The value to ErrorMessage.

returns → InputFieldState

The input state.

Creates a new instance of InputFieldState for invalid input.

Public / Attributes

Error​Message


public readonly attribute ErrorMessage → (string)

The error message or null.

Error​Range


public readonly attribute ErrorRange → (RangeI)

The input range that is invalid.

Is​Invalid


public attribute IsInvalid → (get)

value : bool

true if this state is invalid, false if not.

Does this state represent invalid input?

Is​Valid


public attribute IsValid → (get)

value : bool

true if this state is valid, false if not.

Does this state represent valid input?