attach_next_to


Description:

public void attach_next_to (Widget child, Widget? sibling, PositionType side, int width = 1, int height = 1)

Adds a widget to the grid.

The widget is placed next to sibling, on the side determined by side. When sibling is null, the widget is placed in row (for left or right placement) or column 0 (for top or bottom placement ), at the end indicated by side.

Attaching widgets labeled [1], [2], [3] with sibling == null and side == gtk_pos_left yields a layout of 3[1].

Parameters:

this

a Grid

child

the widget to add

sibling

the child of this that child will be placed next to, or null to place child at the beginning or end

side

the side of sibling that child is positioned next to

width

the number of columns that child will span

height

the number of rows that child will span




2022 vala-language.org