struct Gtk::DrawingArea::ResizeSignal

Overview

Emitted once when the widget is realized, and then each time the widget is changed while realized.

This is useful in order to keep state up to date with the widget size, like for instance a backing surface.

Defined in:

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

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

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

def emit(width : Int32, height : Int32) : Nil #

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

The signal name