Gtk.Table.prototype.attach_defaults
function attach_defaults(widget:Gtk.Widget, left_attach:Number, right_attach:Number, top_attach:Number, bottom_attach:Number):void { // Gjs wrapper for gtk_table_attach_defaults() }
As there are many options associated with Gtk.Table.prototype.attach, this convenience function provides the programmer with a means to add children to a table with identical padding and expansion options. The values used for the Gtk.AttachOptions are <literal>GTK_EXPAND | GTK_FILL</literal>, and the padding is set to 0.
- widget
The child widget to add.
- left_attach
The column number to attach the left side of the child widget to.
- right_attach
The column number to attach the right side of the child widget to.
- top_attach
The row number to attach the top of the child widget to.
- bottom_attach
The row number to attach the bottom of the child widget to.