Class WindowGroup

Class representing several windows opened at the same. For example, UI.StandardWindow is a window group that consists of several separate windows.

Hierarchy (view full)

Implements

Constructors

Methods

  • Adds window instance with specified name to the group.

    Parameters

    • name: string

      window name

    • window: IWindow

      window to be added to the group

    Returns void

  • Closes window without container. Use only if the window was opened without container.

    Returns void

  • Called up to 66 times a second to update window's content.

    Parameters

    • time: number

      current time in milliseconds

    Returns void

  • Parameters

    • name: string

      window name

    Returns Window

    Window from the group by it's name or null if no window with such a name was added.

  • Forces ui drawables of the window to refresh.

    Parameters

    • onCurrentThread: boolean

      if true, the drawables will be refreshed immediately, otherwise refresh event will be posted; ensure you are in the UI thread if you pass true as the parameter

    Returns void

    onCurrentThread: false
    
  • Forces ui elements of the window to refresh.

    Parameters

    • onCurrentThread: boolean

      if true, the drawables will be refreshed immediately, otherwise refresh event will be posted; ensure you are in the UI thread if you pass true as the parameter

    Returns void

    onCurrentThread: false
    
  • Moves window with specified name to the top of the group.

    Parameters

    • name: string

      window name

    Returns void

  • Forces window refresh by it's name.

    Parameters

    • name: string

      name of the window to refresh

    Returns void

  • Removes window from group by it's name.

    Parameters

    • name: string

      window name

    Returns void

  • Gives the property to be closed on pressing back navigation button to the given window group.

    Parameters

    • val: boolean

    Returns void

  • Turns debug mode for the window on and off.

    Parameters

    • enabled: boolean

      if true, additional debug information will be drawn on the window canvas

    Returns void

  • Sets content for the window by it's name.

    Parameters

    Returns void

Properties

closeOnBackPressed: boolean

Copyright © 2024 Nernar. Copyright © 2020 #mineprogramming. Built with ❤ and TypeDoc.