Table.attach

Adds a widget to a table. The number of 'cells' that a widget will occupy is specified by left_attach, right_attach, top_attach and bottom_attach. These each represent the leftmost, rightmost, uppermost and lowest column and row numbers of the table. (Columns and rows are indexed from zero).

  1. void attach(Widget child)
  2. void attach(Widget child, uint leftAttach, uint rightAttach, uint topAttach, uint bottomAttach, GtkAttachOptions xoptions, GtkAttachOptions yoptions, uint xpadding, uint ypadding)

Parameters

child Widget

The widget to add.

leftAttach uint

the column number to attach the left side of a child widget to.

rightAttach uint

the column number to attach the right side of a child widget to.

topAttach uint

the row number to attach the top of a child widget to.

bottomAttach uint

the row number to attach the bottom of a child widget to.

xoptions GtkAttachOptions

Used to specify the properties of the child widget when the table is resized.

yoptions GtkAttachOptions

The same as xoptions, except this field determines behaviour of vertical resizing.

xpadding uint

An integer value specifying the padding on the left and right of the widget being added to the table.

ypadding uint

The amount of padding above and below the child widget.

Meta