struct Adw::MessageDialog::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@MessageDialog:close-response].

Defined in:

lib/gi-crystal/src/auto/adw-1/message_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 : 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::MessageDialog, String, Nil), *, after : Bool = false) : GObject::SignalConnection #

def emit(response : String) : Nil #

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

The signal name