SignalFlags

public struct SignalFlags : OptionSet

The signal flags are used to specify a signal’s behaviour, the overall signal description outlines how especially the RUN flags control the stages of a signal emission.

  • The corresponding value of the raw type

    Declaration

    Swift

    public var rawValue: UInt32
  • The equivalent raw Int value

    Declaration

    Swift

    public var intValue: Int { get set }
  • int

    The equivalent raw gint value

    Declaration

    Swift

    public var int: gint { get set }
  • The equivalent underlying GSignalFlags enum value

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

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

    Declaration

    Swift

    public init(_ intValue: Int)
  • Creates a new instance with the specified gint value

    Declaration

    Swift

    public init(_ gintValue: gint)
  • 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
  • Invoke the object method handler in the first emission stage.

    Declaration

    Swift

    @available(*, deprecated)
    public static let run_first: SignalFlags
  • Invoke the object method handler in the third emission stage.

    Declaration

    Swift

    @available(*, deprecated)
    public static let run_last: SignalFlags
  • Invoke the object method handler in the last emission stage.

    Declaration

    Swift

    @available(*, deprecated)
    public static let run_cleanup: 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

    @available(*, deprecated)
    public static let no_recurse: SignalFlags
  • No emissions hooks are supported for this signal.

    Declaration

    Swift

    @available(*, deprecated)
    public static let no_hooks: SignalFlags
  • Varargs signal emission will always collect the arguments, even if there are no signal handlers connected. Since 2.30.

    Declaration

    Swift

    @available(*, deprecated)
    public static let must_collect: SignalFlags