Atlas Engine
API Referencegraphite

UIStyleStateSnapshot

Current interaction flags used when resolving a UI style.

Module: graphite

Current interaction flags used when resolving a UI style.

Declaration

export type UIStyleStateSnapshot = {
        /**
         * Whether the pointer is hovering over the element.
         */
        hovered: boolean;
        /**
         * Whether the element is currently pressed.
         */
        pressed: boolean;
        /**
         * Whether the element is disabled.
         */
        disabled: boolean;
        /**
         * Whether the text field has keyboard focus.
         */
        focused: boolean;
        /**
         * Whether the checkbox is checked.
         */
        checked: boolean;
    };

Properties

hovered

Whether the pointer is hovering over the element.

hovered: boolean;

pressed

Whether the element is currently pressed.

pressed: boolean;

disabled

Whether the element is disabled.

disabled: boolean;

focused

Whether the text field has keyboard focus.

focused: boolean;

checked

Whether the checkbox is checked.

checked: boolean;

On this page