[ Version ( since = "2.4" ) ]
public void attach (Widget child, uint left_attach, uint right_attach, uint top_attach, uint bottom_attach)
Adds a new MenuItem to a (table) menu.
The number of “cells” that an item will occupy is specified by left_attach
, right_attach
, top_attach
and bottom_attach
. These each represent the leftmost, rightmost, uppermost and lower column and row numbers of the
table. (Columns and rows are indexed from zero).
Note that this function is not related to detach.
this |
a Menu |
child |
a MenuItem |
left_attach |
The column number to attach the left side of the item to |
right_attach |
The column number to attach the right side of the item to |
top_attach |
The row number to attach the top of the item to |
bottom_attach |
The row number to attach the bottom of the item to |