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) #

[View source]

Instance Method Detail

def connected? : Bool #

Returns true if the signal connection is active.


[View source]
def disconnect #

Disconnect the signal.


[View source]
def handler : UInt64 #

The GObject signal handler ID.


[View source]
def source : Object #

Source of this signal connection


[View source]