StateFlags
public struct StateFlags : OptionSet
Describes a widget state.
Widget states are used to match the widget against CSS pseudo-classes. Note that GTK extends the regular CSS classes and sometimes uses different names.
-
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
gintvalueDeclaration
Swift
@inlinable public var int: gint { get set } -
The equivalent underlying
GtkStateFlagsenum valueDeclaration
Swift
@inlinable public var value: GtkStateFlags { 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
GtkStateFlagsenum valueDeclaration
Swift
@inlinable public init(_ enumValue: GtkStateFlags) -
Creates a new instance with the specified Int value
Declaration
Swift
@inlinable public init<I>(_ intValue: I) where I : BinaryInteger -
State during normal operation
Declaration
Swift
public static let normal: StateFlags -
Widget is active
Declaration
Swift
public static let active: StateFlags -
Widget has a mouse pointer over it
Declaration
Swift
public static let prelight: StateFlags -
Widget is selected
Declaration
Swift
public static let selected: StateFlags -
Widget is insensitive
Declaration
Swift
public static let insensitive: StateFlags -
Widget is inconsistent
Declaration
Swift
public static let inconsistent: StateFlags -
Widget has the keyboard focus
Declaration
Swift
public static let focused: StateFlags -
Widget is in a background toplevel window
Declaration
Swift
public static let backdrop: StateFlags -
Widget is in left-to-right text direction
Declaration
Swift
public static let dirLtr: StateFlags -
Widget is in right-to-left text direction
Declaration
Swift
public static let dirRtl: StateFlags -
Widget is a link
Declaration
Swift
public static let link: StateFlags -
The location the widget points to has already been visited
Declaration
Swift
public static let visited: StateFlags -
Widget is checked
Declaration
Swift
public static let checked: StateFlags -
Widget is highlighted as a drop target for DND
Declaration
Swift
public static let dropActive: StateFlags -
Widget has the visible focus
Declaration
Swift
public static let focusVisible: StateFlags -
Widget contains the keyboard focus
Declaration
Swift
public static let focusWithin: StateFlags
View on GitHub
Install in Dash
StateFlags Structure Reference