public class Layout extends Container
add()
.
Note that this Widget has the same limitations as Fixed due to it
positioning child Widgets by co-ordinates and not by box packing (no layout
management, no resizing, likelihood of rendering collisions, etc). You are
better off adding a proper Container and adding scrolling with
ScrolledWindow's addWithViewport()
.
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 |
---|
Layout()
Construct a Layout with default adjustments.
|
Layout(Adjustment hadjustment,
Adjustment vadjustment)
Construct a Layout, supplying the Adjustment object used to control the
panning.
|
Modifier and Type | Method and Description |
---|---|
Adjustment |
getHAdjustment()
Get the Adjustment that is being used to drive the horizontal position
of the viewport showing over this Layout's canvas.
|
Adjustment |
getVAdjustment()
Get the Adjustment that is being used to drive the vertical position of
the viewport showing over this Layout's canvas.
|
void |
move(Widget child,
int x,
int y)
Relocate a child Widget to the specified co-ordinates.
|
void |
put(Widget child,
int x,
int y)
Add a child Widget at the specified co-ordinates.
|
void |
setSize(int width,
int height)
Set the total extent of the canvas that this Layout will scroll its
viewport over.
|
add, getChildren, remove, setBorderWidth
activate, 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, showAll
public Layout()
public Layout(Adjustment hadjustment, Adjustment vadjustment)
public Adjustment getHAdjustment()
public Adjustment getVAdjustment()
public void move(Widget child, int x, int y)
public void put(Widget child, int x, int y)
public void setSize(int width, int height)