Options
All
  • Public
  • Public/Protected
  • All
Menu

Class WindowCreator

WindowCreator

ウインドウスタイルを設定し、ウインドウを生成する役。

Hierarchy

  • WindowCreator

Index

Constructors

constructor

Properties

Private create

create: (addContents: (ui: Gui) => void, style: WindowStyle) => void

Type declaration

    • Parameters

      Returns void

Private style

Methods

position

  • position(x: number, y: number): this
  • ウインドウの位置を設定する。

    Parameters

    • x: number

      X座標。

    • y: number

      Y座標。

    Returns this

    this

resizable

  • resizable(v: boolean): this
  • リサイズの可否を設定する。

    Parameters

    • v: boolean

      真の時、リサイズ可能になる。

    Returns this

    this

scrollable

  • scrollable(v: boolean): this
  • スクロールバーの利用可否を設定する。

    Parameters

    • v: boolean

      真の時、スクロールバーを利用可能にする。

    Returns this

    this

show

  • show(addContents: (ui: Gui) => void): void
  • ウインドウを表示する。

    Parameters

    • addContents: (ui: Gui) => void

      ウインドウにウィジェットを追加する関数。

        • (ui: Gui): void
        • Parameters

          Returns void

    Returns void

size

  • size(width: number, height: number): this
  • ウインドウの大きさを設定する。

    Parameters

    • width: number

      横幅[px]。

    • height: number

      縦幅[px]。

    Returns this

    this

titleBar

  • titleBar(v: boolean): this
  • タイトルバーの表示・非表示を設定する。

    Parameters

    • v: boolean

      真の時、表示する。

    Returns this

    this

Generated using TypeDoc