Table of Contents

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

unmanagedName string
managedName string

Properties

Id

The Id of the signal in GObject/C

public uint Id { get; }

Property Value

uint

ManagedName

The name of the signal in dotnet.

public string ManagedName { get; }

Property Value

string

UnmanagedName

The name of the signal in GObject/C.

public string UnmanagedName { get; }

Property Value

string

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 TSender

The object on which connect the handler.

signalHandler SignalHandler<TSender>

The signal handler function.

after bool

Define if this action must be called before or after the default handler of this signal.

detail string

Define 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 TSender

The object from which disconnect the handler.

signalHandler SignalHandler<TSender>

The signal handler function.