Window
public final class Window
extension Window: Equatable
extension Window: CustomDebugStringConvertible
extension Window: CustomStringConvertible
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 frame of the window.
The origin of the frame is the bottom-left corner of the window in screen coordinates.
Declaration
Swift
public var frame: WriteableProperty<OfType<CGRect>> { get }
-
The size of the window in screen coordinates.
Declaration
Swift
public var size: WriteableProperty<OfType<CGSize>> { get }
-
The window title.
Declaration
Swift
public var title: Property<OfDefaultedType<String>> { get }
-
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 }
-
Declaration
Swift
public var description: String { get }