Hosanna UI API v2.3.0-next
    Preparing search index...

    Type Parameters

    Hierarchy

    • ViewStruct<SkeletonRectangleState>
      • SkeletonRectangleViewStruct
    Index

    Constructors

    Properties

    __isViewStruct: boolean = true
    __viewClassName: "SkeletonRectangleView"
    _cacheKey: string = 'viewStruct'
    _children: ViewStruct<ViewState>[] = []
    _hid: string
    eventHandlers: Record<string, Function> = {}
    parentId?: string
    state: SkeletonRectangleState = ...

    The initial state of the view.

    Methods

    • Sets the children of the view. NOTE - Children is not the same as subViews SubViews are the views OWNED by and created to render our view. Children are the views that are part of the view tree, when this view is conceptually a group view, like HGroup or VGroup, or Group.

      Parameters

      • children: ViewStruct<ViewState>[]

        The children to set.

      Returns SkeletonRectangleViewStruct<T, R>

      The current instance of ViewStruct.

    • Sets the clipping rectangle of the view.

      Parameters

      • clippingRect: [number, number, number, number]

        The clipping rectangle value to set.

      Returns SkeletonRectangleViewStruct<T, R>

      The current instance of ViewStruct.

    • Parameters

      • color: string

      Returns this

    • Gets the view instance.

      Returns any

      The view instance or undefined.

    • Sets whether the view should be included in the layout.

      Parameters

      • includeInLayout: boolean

        The value indicating whether to include in layout.

      Returns SkeletonRectangleViewStruct<T, R>

      The current instance of ViewStruct.

    • Parameters

      • cond: boolean

      Returns this

    • Sets the focus map for this view to determine next focusable behavior.

      Parameters

      • focusMap: ViewFocusMap

        The focus map configuration for directional navigation.

      Returns SkeletonRectangleViewStruct<T, R>

      The current instance of ViewStruct.

    • Registers an event handler for the resolve focus event.

      Parameters

      • handler: onFindNextFocusableHandler

        The event handler function.

      Returns SkeletonRectangleViewStruct<T, R>

      The current instance of ViewStruct.

    • Registers an event handler for key events.

      Parameters

      • handler: onInputEventHandler

        The event handler function.

      Returns SkeletonRectangleViewStruct<T, R>

      The current instance of ViewStruct.

    • Returns void

    • Sets the scaleRotateCenter of the view.

      Parameters

      • scaleRotateCenter: [number, number]

        The scaleRotateCenter value to set.

      Returns SkeletonRectangleViewStruct<T, R>

      The current instance of ViewStruct.

    • Parameters

      • state: SkeletonRectangleState

      Returns void

    • Sets the size of the view.

      Parameters

      • width: number

        The width value to set.

      • height: number

        The height value to set.

      Returns SkeletonRectangleViewStruct<T, R>

      The current instance of ViewStruct.