SignalFlags
public struct SignalFlags : OptionSet
The signal flags are used to specify a signal’s behaviour.
-
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
GSignalFlags
enum valueDeclaration
Swift
@inlinable public var value: GSignalFlags { 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
GSignalFlags
enum valueDeclaration
Swift
@inlinable public init(_ enumValue: GSignalFlags)
-
Creates a new instance with the specified Int value
Declaration
Swift
@inlinable public init<I>(_ intValue: I) where I : BinaryInteger
-
Invoke the object method handler in the first emission stage.
Declaration
Swift
public static let runFirst: SignalFlags
-
Invoke the object method handler in the third emission stage.
Declaration
Swift
public static let runLast: SignalFlags
-
Invoke the object method handler in the last emission stage.
Declaration
Swift
public static let runCleanup: SignalFlags
-
Signals being emitted for an object while currently being in emission for this very object will not be emitted recursively, but instead cause the first emission to be restarted.
Declaration
Swift
public static let noRecurse: SignalFlags
-
This signal supports “
detail
” appendices to the signal name upon handler connections and emissions.Declaration
Swift
public static let detailed: SignalFlags
-
Action signals are signals that may freely be emitted on alive objects from user code via
g_signal_emit()
and friends, without the need of being embedded into extra code that performs pre or post emission adjustments on the object. They can also be thought of as object methods which can be called generically by third-party code.Declaration
Swift
public static let action: SignalFlags
-
No emissions hooks are supported for this signal.
Declaration
Swift
public static let noHooks: SignalFlags
-
Varargs signal emission will always collect the arguments, even if there are no signal handlers connected. Since 2.30.
Declaration
Swift
public static let mustCollect: SignalFlags
-
The signal is deprecated and will be removed in a future version. A warning will be generated if it is connected while running with G_ENABLE_DIAGNOSTIC=1. Since 2.32.
Declaration
Swift
public static let deprecated: SignalFlags
-
Only used in
GSignalAccumulator
accumulator functions for theGSignalInvocationHint::run_type
field to mark the first call to the accumulator function for a signal emission. Since 2.68.Declaration
Swift
public static let accumulatorFirstRun: SignalFlags