ToplevelState
public struct ToplevelState : OptionSet
Specifies the state of a toplevel surface.
On platforms that support information about individual edges, the
GDK_TOPLEVEL_STATE_TILED
state will be set whenever any of the individual
tiled states is set. On platforms that lack that support, the tiled state
will give an indication of tiledness without any of the per-edge states
being set.
-
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 }
-
The equivalent raw
gint
valueDeclaration
Swift
@inlinable public var int: gint { get set }
-
The equivalent underlying
GdkToplevelState
enum valueDeclaration
Swift
@inlinable public var value: GdkToplevelState { 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
GdkToplevelState
enum valueDeclaration
Swift
@inlinable public init(_ enumValue: GdkToplevelState)
-
Creates a new instance with the specified Int value
Declaration
Swift
@inlinable public init<I>(_ intValue: I) where I : BinaryInteger
-
the surface is minimized
Declaration
Swift
public static let minimized: ToplevelState
-
the surface is maximized
Declaration
Swift
public static let maximized: ToplevelState
-
the surface is sticky
Declaration
Swift
public static let sticky: ToplevelState
-
the surface is maximized without decorations
Declaration
Swift
public static let fullscreen: ToplevelState
-
the surface is kept above other surfaces
Declaration
Swift
public static let above: ToplevelState
-
the surface is kept below other surfaces
Declaration
Swift
public static let below: ToplevelState
-
the surface is presented as focused (with active decorations)
Declaration
Swift
public static let focused: ToplevelState
-
the surface is in a tiled state
Declaration
Swift
public static let tiled: ToplevelState
-
whether the top edge is tiled
Declaration
Swift
public static let topTiled: ToplevelState
-
whether the top edge is resizable
Declaration
Swift
public static let topResizable: ToplevelState
-
whether the right edge is tiled
Declaration
Swift
public static let rightTiled: ToplevelState
-
whether the right edge is resizable
Declaration
Swift
public static let rightResizable: ToplevelState
-
whether the bottom edge is tiled
Declaration
Swift
public static let bottomTiled: ToplevelState
-
whether the bottom edge is resizable
Declaration
Swift
public static let bottomResizable: ToplevelState
-
whether the left edge is tiled
Declaration
Swift
public static let leftTiled: ToplevelState
-
whether the left edge is resizable
Declaration
Swift
public static let leftResizable: ToplevelState