struct Gtk::Overlay::GetChildPositionSignal

Overview

Emitted to determine the position and size of any overlay child widgets.

A handler for this signal should fill allocation with the desired position and size for widget, relative to the 'main' child of overlay.

The default handler for this signal uses the widget's halign and valign properties to determine the position and gives the widget its natural size (except that an alignment of %GTK_ALIGN_FILL will cause the overlay to be full-width/height). If the main child is a Gtk::ScrolledWindow, the overlays are placed relative to its contents.

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/overlay.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(Gtk::Widget, Bool)) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(Gtk::Widget, Bool), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def connect(handler : Proc(Gtk::Overlay, Gtk::Widget, Bool), *, after : Bool = false) : GObject::SignalConnection #

[View source]
def emit(widget : Gtk::Widget) : Nil #

[View source]
def name : String #
Description copied from struct GObject::Signal

The signal name


[View source]