SignalQueryProtocol

public protocol SignalQueryProtocol

The SignalQueryProtocol protocol exposes the methods and properties of an underlying GSignalQuery instance. The default implementation of these can be found in the protocol extension below. For a concrete class that implements these methods and properties, see SignalQuery. Alternatively, use SignalQueryRef as a lighweight, unowned reference if you already have an instance you just want to use.

A structure holding in-depth information for a specific signal. It is filled in by the g_signal_query() function.

  • ptr

    Untyped pointer to the underlying GSignalQuery instance.

    Declaration

    Swift

    var ptr: UnsafeMutableRawPointer { get }
  • _ptr Default implementation

    Typed pointer to the underlying GSignalQuery instance.

    Default Implementation

    Return the stored, untyped pointer as a typed pointer to the GSignalQuery instance.

    Declaration

    Swift

    var _ptr: UnsafeMutablePointer<GSignalQuery> { get }

SignalQuery Record: SignalQueryProtocol extension (methods and fields)

  • signalQuery(signalID:) Extension method

    Queries the signal system for in-depth information about a specific signal. This function will fill in a user-provided structure to hold signal-specific information. If an invalid signal id is passed in, the signal_id member of the GSignalQuery is 0. All members filled into the GSignalQuery structure should be considered constant and have to be left untouched.

    Declaration

    Swift

    func signalQuery(signalID signal_id: CUnsignedInt)
  • signalID Extension method

    The signal id of the signal being queried, or 0 if the signal to be queried was unknown.

    Declaration

    Swift

    var signalID: Int { get set }
  • signalName Extension method

    The signal name.

    Declaration

    Swift

    var signalName: UnsafePointer<CChar> { get set }
  • itype Extension method

    The interface/instance type that this signal can be emitted for.

    Declaration

    Swift

    var itype: GType { get set }
  • signalFlags Extension method

    The signal flags as passed in to g_signal_new().

    Declaration

    Swift

    var signalFlags: GSignalFlags { get set }
  • returnType Extension method

    The return type for user callbacks.

    Declaration

    Swift

    var returnType: GType { get set }
  • nParams Extension method

    The number of parameters that user callbacks take.

    Declaration

    Swift

    var nParams: Int { get set }