Class Signal<TSender>
- Namespace
- GObject
- Assembly
- GObject-2.0.dll
Describes a GSignal.
public class Signal<TSender> : SignalDefinition where TSender : Object, GTypeProvider
Type Parameters
TSender
- Inheritance
-
Signal<TSender>
- Implements
- Inherited Members
Constructors
Signal(string, string)
public Signal(string unmanagedName, string managedName)
Parameters
Properties
Id
The Id of the signal in GObject/C
public uint Id { get; }
Property Value
ManagedName
The name of the signal in dotnet.
public string ManagedName { get; }
Property Value
UnmanagedName
The name of the signal in GObject/C.
public string UnmanagedName { get; }
Property Value
Methods
Connect(TSender, SignalHandler<TSender>, bool, string?)
Connects a signalHandler
to this signal.
public void Connect(TSender sender, SignalHandler<TSender> signalHandler, bool after = false, string? detail = null)
Parameters
sender
TSenderThe object on which connect the handler.
signalHandler
SignalHandler<TSender>The signal handler function.
after
boolDefine if this action must be called before or after the default handler of this signal.
detail
stringDefine for which signal detail the connection should be made.
Disconnect(TSender, SignalHandler<TSender>)
Disconnects a signalHandler
previously connected to this signal.
public void Disconnect(TSender sender, SignalHandler<TSender> signalHandler)
Parameters
sender
TSenderThe object from which disconnect the handler.
signalHandler
SignalHandler<TSender>The signal handler function.