Enumeration UIElementState

Type of UI element states.

Constructors

  • Parameters

    • do_not_: undefined
    • construct_: undefined
    • this_: undefined
    • type_: undefined

    Returns UIElementState

Values

Active = 1024

State when element is being clicked.

Focused = 2

State when the element has input focus and pointer is not hovering over the element.

FocusedActive = 1026

State when the element has input focus and the element is being clicked.

FocusedActiveHover = 1538

State when the element has input focus and the element is being clicked.

FocusedActiveHoverOn = 1794

Same as FocusedActive, if the element is also in the "on" state.

FocusedActiveOn = 1282

Same as FocusedActive, if the element is also in the "on" state.

FocusedHover = 514

State when the element has input focus and pointer is hovering over the element.

FocusedHoverOn = 770

Same as FocusedHover, if the element is also in the "on" state.

FocusedOn = 258

Same as Focused, if the element is also in the "on" state.

Hover = 512

State when pointer is hovering over the element.

Normal = 1

Normal state when element is not being interacted with.

NormalActive = 1025

Same as Normal, if the element is also in the "on" state.

NormalActiveHover = 1537

Same as Normal, if the element is also in the "on" state.

NormalActiveHoverOn = 1793

Same as Normal, if the element is also in the "on" and "active" state.

NormalActiveOn = 1281

Same as Normal, if the element is also in the "on" and "active" state.

NormalHover = 513

Same as Normal, if the element is also in the "hover" state.

NormalHoverOn = 769

Same as Normal, if the element is also in the "on" and "hover" state.

NormalOn = 257

Same as Normal, if the element is also in the "on" state.

On = 256

State when element is in the "on" state.

Methods

  • Takes an array of enum values and combines them as a single enum flag value. This assumes that the target enum is a flag enum that can have their values combined using bitwise operators.

    Type Parameters

    Parameters

    Returns EnumValueTyped<T, number>

    The combined enum value.

  • Type Parameters

    • T

    Parameters

    Returns string

    Compatibility

  • Returns string[]

    Compatibility

  • Parameters

    • index: number

    Returns number

    Compatibility

  • Returns number[]

    Compatibility

  • Gets the name for the enumeration value that matches the specified enumValue.

    Type Parameters

    • T

    Parameters

    Returns string

    The enumeration value or undefined if not found.

  • Gets the enumeration names

    Returns string[]

    The enumeration names.

  • Gets the enumeration value at the specified index.

    Type Parameters

    • T = number

    Parameters

    • index: number

      The index.

    Returns EnumValueTyped<T, number>

    The enumeration value or undefined if not found.

  • Determines if the enum value has the flags set.

    Type Parameters

    Parameters

    Returns boolean

  • Determines if the enum bits were changed from previousValue to currentValue.

    Type Parameters

    Parameters

    Returns boolean

  • Iterates the enumeration names

    Returns Generator<string, any, any>

    The enumeration names.

  • Iterates the enumeration values

    Type Parameters

    • T = any

    Returns Generator<EnumValueTyped<T, number>, any, any>

    The enumeration values.

  • Takes a single enum value and splits it into separated flag values set on the value. This assumes that the target enum is a flag enum that can have their values combined using bitwise operators.

    Type Parameters

    Parameters

    • value: number | BrandedType<number, "enum"> | BrandedType<T, "enum">

      The enum value to have it's value split using bitwise-and operator.

    Returns EnumValueTyped<T, number>[]

    An array of each "bit flag" set in the enum.