WindowState

public struct WindowState : OptionSet

Specifies the state of a toplevel window.

  • The corresponding value of the raw type

    Declaration

    Swift

    public var rawValue: UInt32
  • The equivalent raw Int value

    Declaration

    Swift

    @inlinable
    public var intValue: Int { get set }
  • int

    The equivalent raw gint value

    Declaration

    Swift

    @inlinable
    public var int: gint { get set }
  • The equivalent underlying GdkWindowState enum value

    Declaration

    Swift

    @inlinable
    public var value: GdkWindowState { get set }
  • Creates a new instance with the specified raw value

    Declaration

    Swift

    @inlinable
    public init(rawValue: UInt32)
  • Creates a new instance with the specified GdkWindowState enum value

    Declaration

    Swift

    @inlinable
    public init(_ enumValue: GdkWindowState)
  • Creates a new instance with the specified Int value

    Declaration

    Swift

    @inlinable
    public init<I>(_ intValue: I) where I : BinaryInteger
  • the window is not shown.

    Declaration

    Swift

    public static let withdrawn: WindowState
  • the window is minimized.

    Declaration

    Swift

    public static let iconified: WindowState
  • the window is maximized.

    Declaration

    Swift

    public static let maximized: WindowState
  • the window is sticky.

    Declaration

    Swift

    public static let sticky: WindowState
  • the window is maximized without decorations.

    Declaration

    Swift

    public static let fullscreen: WindowState
  • the window is kept above other windows.

    Declaration

    Swift

    public static let above: WindowState
  • the window is kept below other windows.

    Declaration

    Swift

    public static let below: WindowState
  • the window is presented as focused (with active decorations).

    Declaration

    Swift

    public static let focused: WindowState
  • the window is in a tiled state, Since 3.10. Since 3.22.23, this is deprecated in favor of per-edge information.

    Declaration

    Swift

    public static let tiled: WindowState
  • whether the top edge is tiled, Since 3.22.23

    Declaration

    Swift

    public static let topTiled: WindowState
  • whether the top edge is resizable, Since 3.22.23

    Declaration

    Swift

    public static let topResizable: WindowState
  • whether the right edge is tiled, Since 3.22.23

    Declaration

    Swift

    public static let rightTiled: WindowState
  • whether the right edge is resizable, Since 3.22.23

    Declaration

    Swift

    public static let rightResizable: WindowState
  • whether the bottom edge is tiled, Since 3.22.23

    Declaration

    Swift

    public static let bottomTiled: WindowState
  • whether the bottom edge is resizable, Since 3.22.23

    Declaration

    Swift

    public static let bottomResizable: WindowState
  • whether the left edge is tiled, Since 3.22.23

    Declaration

    Swift

    public static let leftTiled: WindowState
  • whether the left edge is resizable, Since 3.22.23

    Declaration

    Swift

    public static let leftResizable: WindowState