forked from aparoksha/adwaita-swift
913 B
913 B
CLASS
GTUIApp
The GTUI application.
Properties
updateHandlers
The handlers which are called when a state changes.
body
The app's content.
sceneStorage
The scenes that are displayed.
overwriteParentID
A string signaling that the parent should not be overwritten.
Methods
init(_:body:)
Initialize the GTUI application.
- Parameters:
- id: The application id.
- body: The application's content.
onActivate()
The entry point of the application.
showWindow(_:)
Focus the window with a certain id. Create the window if it doesn't already exist.
- Parameters:
- id: The window's id.
addWindow(_:parent:)
Add a new window with the content of the window with a certain id.
- Parameters:
- id: The window's id.
- parent: The parent window.
setParentWindows()
Set the parents of every window having a parent window.