1.1 KiB

STRUCT

Window

A structure representing a simple window type.

Note that multiple instances of a window can be opened at the same time.

Properties

id

The window's identifier.

content

The window's content.

open

Whether an instance of the window type should be opened when the app is starting up.

appShortcuts

The keyboard shortcuts on the app level.

Methods

init(id:open:content:)

Create a window type with a certain identifier and user interface.

  • Parameters:
    • id: The identifier.
    • open: The number of instances of the window type when the app is starting.
    • content: The window's content.

createWindow(app:)

Get the storage for the window.

  • Parameter app: The application.
  • Returns: The storage.

createGTUIWindow(app:)

Get the window.

  • Parameter app: The application.
  • Returns: The window.

getViewStorage(window:)

Get the storage of the content view.

  • Parameter window: The window.
  • Returns: The storage of the content of the window.

update(_:app:)

Update a window storage's content.

  • Parameters:
    • storage: The storage to update.
    • app: The application.