|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.gnu.glib.GObject | +--org.gnu.gtk.GtkObject | +--org.gnu.gtk.Widget | +--org.gnu.gtk.Container | +--org.gnu.gtk.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(int 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. |
Adjustment |
getHorizontalAdjustment()
Return the Horizontal Adjustment. |
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, getBorderWidth, getEventListenerClass, getEventType, getResizeMode, remove, removeListener, resizeChildren, setBorderWidth, setResizeMode |
Methods inherited from class org.gnu.glib.GObject |
addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, addEventHandler, equals, getData, getHandle, removeEventHandler, setData |
Methods inherited from class java.lang.Object |
getClass, hashCode, 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(int handle)
Method Detail |
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()
|
Please send any bug reports, comments, or suggestions for the API or documentation to java-gnome-developer@lists.sf.net | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |