|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.gnu.glib.Struct
org.gnu.glib.GObject
org.gnu.gtk.GtkObject
org.gnu.gtk.Widget
org.gnu.gtk.Container
org.gnu.gtk.Layout
public class Layout
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.
Container| Constructor Summary | |
|---|---|
Layout(Adjustment hAdj,
Adjustment vAdj)
Construct a new Layout object. |
|
Layout(org.gnu.glib.Handle handle)
Construct a new Layout from a handle to a native resource. |
|
| Method Summary | |
|---|---|
void |
addChild(Widget child,
int x,
int y)
Add a child Widget to this Layout. |
Window |
getBinWindow()
Return the Layout's bin window, into which content is drawn. |
Adjustment |
getHorizontalAdjustment()
Return the Horizontal Adjustment. |
static Layout |
getLayout(org.gnu.glib.Handle handle)
Construct a new Layout from a handle to a native resource. |
Requisition |
getSize()
Retrieve the size of the scrollabel area of the layout. |
static Type |
getType()
Retrieve the runtime type used by the GLib library. |
Adjustment |
getVerticalAdjustment()
Return the Vertical Adjustment. |
void |
moveChild(Widget child,
int x,
int y)
Move a child Widget to a new position |
void |
setHorizontalAdjustment(Adjustment adjust)
Set the Horizontal Adjustment. |
void |
setSize(int width,
int height)
Set the size of the scrollable area of the layout. |
void |
setVerticalAdjustment(Adjustment adjust)
Set the Vertical Adjustment. |
| Methods inherited from class org.gnu.gtk.Container |
|---|
add, addListener, getBooleanChildProperty, getBorderWidth, getChildProperty, getChildren, getEventListenerClass, getEventType, getIntChildProperty, getResizeMode, remove, removeListener, resizeChildren, setBooleanChildProperty, setBorderWidth, setChildProperty, setIntChildProperty, setResizeMode |
| Methods inherited from class org.gnu.gtk.GtkObject |
|---|
destroy, sink |
| Methods inherited from class org.gnu.glib.Struct |
|---|
equals, getHandle, getNullHandle, hashCode |
| Methods inherited from class java.lang.Object |
|---|
getClass, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Layout(Adjustment hAdj,
Adjustment vAdj)
hAdj - The horizontal Adjustment object.vAdj - The vertical Adjustment object.public Layout(org.gnu.glib.Handle handle)
| Method Detail |
|---|
public static Layout getLayout(org.gnu.glib.Handle handle)
public void addChild(Widget child,
int x,
int y)
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.
public void moveChild(Widget child,
int x,
int y)
child - The child Widget to move.x - The X coordinate for the new position.y - The Y coordinate for the new position.
public void setSize(int width,
int height)
width - The width for the new size.height - The height for the new size.public Requisition getSize()
public Adjustment getHorizontalAdjustment()
public void setHorizontalAdjustment(Adjustment adjust)
public Adjustment getVerticalAdjustment()
public void setVerticalAdjustment(Adjustment adjust)
public static Type getType()
public Window getBinWindow()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||