This widget is similar to DrawingArea in that it's a "blank slate" and
doesn't do anything but paint a blank background by default. It's different
in that it supports scrolling natively and it contains child widgets since
it is a Container.
addChild
public void addChild(Widget child,
int x,
int y)
Add a child Widget to this Layout.
child
- The child Widget to add to this Layout.x
- The X coordinate to position the child.y
- The Y coordinate to position the child.
getHorizontalAdjustment
public Adjustment getHorizontalAdjustment()
Return the Horizontal Adjustment.
getSize
public Requisition getSize()
Retrieve the size of the scrollabel area of the layout.
- The size of the scrollabel area.
getType
public static Type getType()
Retrieve the runtime type used by the GLib library.
- getType in interface Container
getVerticalAdjustment
public Adjustment getVerticalAdjustment()
Return the Vertical Adjustment.
gtk_layout_get_hadjustment
protected static final Handle gtk_layout_get_hadjustment(Handle layout)
gtk_layout_get_size
protected static final void gtk_layout_get_size(Handle layout,
int[] width,
int[] height)
gtk_layout_get_type
protected static final int gtk_layout_get_type()
gtk_layout_get_vadjustment
protected static final Handle gtk_layout_get_vadjustment(Handle layout)
gtk_layout_move
protected static final void gtk_layout_move(Handle layout,
Handle childWidget,
int x,
int y)
gtk_layout_new
protected static final Handle gtk_layout_new(Handle hadjustment,
Handle vadjustment)
gtk_layout_put
protected static final void gtk_layout_put(Handle layout,
Handle childWidget,
int x,
int y)
gtk_layout_set_hadjustment
protected static final void gtk_layout_set_hadjustment(Handle layout,
Handle adjustment)
gtk_layout_set_size
protected static final void gtk_layout_set_size(Handle layout,
int width,
int height)
gtk_layout_set_vadjustment
protected static final void gtk_layout_set_vadjustment(Handle layout,
Handle adjustment)
moveChild
public void moveChild(Widget child,
int x,
int y)
Move a child Widget to a new position
child
- The child Widget to move.x
- The X coordinate for the new position.y
- The Y coordinate for the new position.
setHorizontalAdjustment
public void setHorizontalAdjustment(Adjustment adjust)
Set the Horizontal Adjustment.
setSize
public void setSize(int width,
int height)
Set the size of the scrollable area of the layout.
width
- The width for the new size.height
- The height for the new size.
setVerticalAdjustment
public void setVerticalAdjustment(Adjustment adjust)
Set the Vertical Adjustment.