struct Gtk::Widget::MapSignal

Overview

Emitted when @widget is going to be mapped.

A widget is mapped when the widget is visible (which is controlled with Gtk::Widget#visible) and all its parents up to the toplevel widget are also visible.

The ::map signal can be used to determine whether a widget will be drawn, for instance it can resume an animation that was stopped during the emission of Gtk::Widget::#unmap.

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/widget.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(Nil)) : GObject::SignalConnection #

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

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

def emit : Nil #

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

The signal name