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

    @inlinable
    func signalQuery(signalID: Int)
  • signalID Extension method

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

    Declaration

    Swift

    @inlinable
    var signalID: guint { get set }
  • signalName Extension method

    The signal name.

    Declaration

    Swift

    @inlinable
    var signalName: UnsafePointer<gchar>! { get set }
  • itype Extension method

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

    Declaration

    Swift

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

    The signal flags as passed in to g_signal_new().

    Declaration

    Swift

    @inlinable
    var signalFlags: SignalFlags { get set }
  • returnType Extension method

    The return type for user callbacks.

    Declaration

    Swift

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

    The number of parameters that user callbacks take.

    Declaration

    Swift

    @inlinable
    var nParams: guint { get set }
  • paramTypes Extension method

    The individual parameter types for user callbacks, note that the effective callback signature is:

    (C Language Example):

     @return_type callback (#gpointer     data1,
     [param_types param_names,]
     gpointer     data2);
    
    

    Declaration

    Swift

    @inlinable
    var paramTypes: UnsafePointer<GType>! { get set }