struct GObject::SignalConnection

Overview

This object represents a signal connection, it's used to disconnect a signal.

If an object have any signal connection it will never be collected by the GC, so remember to disconnect all signals if you want your object to be garbage collected.

Defined in:

lib/gi-crystal/src/bindings/g_object/signal_connection.cr

Constructors

Instance Method Summary

Constructor Detail

def self.new(source : GObject::Object, handler : UInt64) #

Instance Method Detail

def connected? : Bool #

Returns true if the signal connection is active.


def disconnect #

Disconnect the signal.


def handler : UInt64 #

The GObject signal handler ID.


def source : Object #

Source of this signal connection