SignalQueryProtocol
public protocol SignalQueryProtocol
A structure holding in-depth information for a specific signal.
See also: g_signal_query()
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.
-
Untyped pointer to the underlying
GSignalQuery
instance.Declaration
Swift
var ptr: UnsafeMutableRawPointer! { get }
-
_ptr
Default implementationTyped 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 }
-
Required Initialiser for types conforming to
SignalQueryProtocol
Declaration
Swift
init(raw: UnsafeMutableRawPointer)
-
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 theGSignalQuery
is 0. All members filled into theGSignalQuery
structure should be considered constant and have to be left untouched.Declaration
Swift
@inlinable func signalQuery(signalID: Int)
-
signalID
Extension methodThe 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 methodThe signal name.
Declaration
Swift
@inlinable var signalName: UnsafePointer<gchar>! { get set }
-
itype
Extension methodThe interface/instance type that this signal can be emitted for.
Declaration
Swift
@inlinable var itype: GType { get set }
-
signalFlags
Extension methodThe signal flags as passed in to
g_signal_new()
.Declaration
Swift
@inlinable var signalFlags: GLibObject.SignalFlags { get set }
-
returnType
Extension methodThe return type for user callbacks.
Declaration
Swift
@inlinable var returnType: GType { get set }
-
nParams
Extension methodThe number of parameters that user callbacks take.
Declaration
Swift
@inlinable var nParams: guint { get set }
-
paramTypes
Extension methodThe 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 }