struct Adw::AlertDialog::ResponseSignal

Overview

This signal is emitted when the dialog is closed. response will be set to the response ID of the button that had been activated.

if the dialog was closed by pressing Escape or with a system action, response will be set to the value of [property@AlertDialog:close-response].

Defined in:

lib/gi-crystal/src/auto/adw-1/alert_dialog.cr

Instance Method Summary

Instance methods inherited from struct GObject::Signal

[](detail : String) : self [], name : String name

Constructor methods inherited from struct GObject::Signal

new(source : GObject::Object, detail : Nil | String = nil) new

Instance Method Detail

def connect(*, after : Bool = false, &block : Proc(String, Nil)) : GObject::SignalConnection #

def connect(handler : Proc(String, Nil), *, after : Bool = false) : GObject::SignalConnection #

def connect(handler : Proc(Adw::AlertDialog, String, Nil), *, after : Bool = false) : GObject::SignalConnection #

def emit(response : String) : Nil #

def name : String #
Description copied from struct GObject::Signal

The signal name