Interface Frame

interface Frame {
    beginItem(w: number, h: number): void;
    buildItemStyleSelector(name: string, state: null | string): string;
    endItem(): void;
    getInput(): Input;
    getLayout(): Layout;
    getNextItemWidth(): null | number;
    getPainter(): Painter;
    getRect(): Rect;
    getScale(): number;
    getSpacing(): Vector2;
    getStyle(): Style;
    isItemClicked(control: number): boolean;
    isItemDisabled(): boolean;
    isItemHovered(): boolean;
    isItemPressed(control: number): boolean;
    setMouseCursor(mouseCursor: number): void;
    showOnScreenKeyboard(title: string, text: string, maxTextLength: number): void;
    tryGetOnScreenKeyboardResult(): null | string;
}

Methods

  • Parameters

    • w: number
    • h: number

    Returns void

  • Parameters

    • name: string
    • state: null | string

    Returns string

  • Returns null | number

  • Parameters

    • control: number

      0 - MouseLeftButton (default), 1 - MouseRightButton, 2 - MouseScrollWheelUp, 3 - MouseScrollWheelDown

    Returns boolean

  • Parameters

    • control: number

      0 - MouseLeftButton (default), 1 - MouseRightButton, 2 - MouseScrollWheelUp, 3 - MouseScrollWheelDown

    Returns boolean

  • Parameters

    • mouseCursor: number

    Returns void

  • Parameters

    • title: string
    • text: string
    • maxTextLength: number

    Returns void

  • Returns null | string