Window
public final class Window
A window.
-
The application the window belongs to.
Declaration
Swift
public var application: Application { get }
-
The screen that (most of) the window is on.
nil
if the window is completely off-screen.Declaration
Swift
public var screen: Screen? { get }
-
Whether or not the window referred to by this type remains valid. Windows usually become invalid because they are destroyed (in which case a WindowDestroyedEvent will be emitted). They can also become invalid because they do not have all the required properties, or because the application that owns them is otherwise not giving a well-behaved response.
Declaration
Swift
public var isValid: Bool { get }
-
The position of the top-left corner of the window in screen coordinates.
Declaration
Swift
public var position: WriteableProperty<OfType<CGPoint>> { get }
-
The size of the window in screen coordinates.
Declaration
Swift
public var size: WriteableProperty<OfType<CGSize>> { get }
-
The window title.
-
Whether the window is minimized.
Declaration
Swift
public var isMinimized: WriteableProperty<OfType<Bool>> { get }
-
Whether the window is fullscreen or not.
Declaration
Swift
public var isFullscreen: WriteableProperty<OfType<Bool>> { get }
-
Declaration
Swift
public var debugDescription: String { get }