david-swift d8de611510 Add support for auto-generated widget bindings
Additionally fix an update problem occurring with custom views
2024-01-22 21:45:31 +01:00

34 lines
855 B
Swift

//
// SceneStorage.swift
// Adwaita
//
// Created by david-swift on 31.08.23.
//
/// A storage for an app's window.
public class WindowStorage {
/// The window's identifier.
public var id: String
/// The identifier of the window's parent window.
public var parentID: String?
/// Whether the reference to the window should disappear in the next update.
public var destroy = false
/// The window.
public var window: WindowType
/// The content's storage.
public var view: ViewStorage?
/// Initialize a window storage.
/// - Parameters:
/// - id: The window's identifier.
/// - window: The window.
/// - view: The content's storage.
public init(id: String, window: WindowType, view: ViewStorage?) {
self.id = id
self.window = window
self.view = view
}
}