public class Grid extends Container implements Orientable
This replaces GTK 2's VBox, HBox, and Table.
Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.Destroy, Widget.Draw, Widget.EnterNotifyEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.QueryTooltip, Widget.ScrollEvent, Widget.SizeAllocate, Widget.UnmapEvent, Widget.VisibilityNotifyEvent| Constructor and Description |
|---|
Grid()
Create a new Grid.
|
| Modifier and Type | Method and Description |
|---|---|
void |
attach(Widget child,
int left,
int top,
int width,
int height)
Add a child Widget to this Grid.
|
Widget |
getChildAt(int left,
int top)
Retrieve a widget at a specific cell or null if there isn't any.
|
Orientation |
getOrientation()
Get the orientation of this Orientable.
|
void |
setColumnSpacing(int spacing)
Set the (extra) spacing between all columns.
|
void |
setOrientation(Orientation orientation)
Set the orientation of this Orientable.
|
void |
setRowSpacing(int spacing)
Set the (extra) spacing between all rows.
|
add, getChildren, remove, setBorderWidthactivate, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, destroy, getAllocatedHeight, getAllocatedWidth, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getPreferredHeightForWidthMinimum, getPreferredHeightForWidthNatural, getPreferredHeightMinimum, getPreferredHeightNatural, getPreferredWidthForHeightMinimum, getPreferredWidthForHeightNatural, getPreferredWidthMinimum, getPreferredWidthNatural, getRequestMode, getRequisition, getSensitive, getStyleContext, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, isSensitive, overrideBackground, overrideColor, overrideFont, queueDraw, queueDrawArea, realize, setAlignHorizontal, setAlignVertical, setCanDefault, setCanFocus, setEvents, setExpandHorizontal, setExpandVertical, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAllpublic void attach(Widget child, int left, int top, int width, int height)
public Widget getChildAt(int left, int top)
public Orientation getOrientation()
OrientablegetOrientation in interface Orientablepublic void setColumnSpacing(int spacing)
public void setOrientation(Orientation orientation)
OrientablesetOrientation in interface Orientablepublic void setRowSpacing(int spacing)