|
java-gnome version 4.0.19 | ||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Objectorg.freedesktop.bindings.Pointer
org.freedesktop.bindings.Proxy
org.gnome.glib.Object
org.gnome.gtk.Object
org.gnome.gtk.Widget
org.gnome.gtk.Container
org.gnome.gtk.Layout
public class Layout
A Container that is able to hold present a limited view of Widgets laid out
on a larger canvas. Layouts are designed for scrolling and should be added
to a ScrolledWindow with 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()
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class org.gnome.gtk.Widget |
---|
Widget.ButtonPressEvent, Widget.ButtonReleaseEvent, Widget.EnterNotifyEvent, Widget.ExposeEvent, Widget.FocusInEvent, Widget.FocusOutEvent, Widget.Hide, Widget.KeyPressEvent, Widget.KeyReleaseEvent, Widget.LeaveNotifyEvent, Widget.MapEvent, Widget.MotionNotifyEvent, Widget.PopupMenu, Widget.ScrollEvent, Widget.UnmapEvent, Widget.VisibilityNotifyEvent |
Nested classes/interfaces inherited from class org.gnome.gtk.Object |
---|
Object.Destroy |
Constructor Summary | |
---|---|
Layout()
Construct a Layout with default adjustments. |
|
Layout(Adjustment hadjustment,
Adjustment vadjustment)
Construct a Layout, supplying the Adjustment object used to control the panning. |
Method Summary | |
---|---|
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. |
Methods inherited from class org.gnome.gtk.Container |
---|
add, getChildren, remove, setBorderWidth |
Methods inherited from class org.gnome.gtk.Widget |
---|
activate, addEvents, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, connect, getAllocation, getCanDefault, getCanFocus, getHasFocus, getName, getParent, getRequisition, getSensitive, getToplevel, getWindow, grabAdd, grabDefault, grabFocus, grabRemove, hide, isSensitive, modifyBackground, modifyBase, modifyFont, modifyText, queueDraw, queueDrawArea, realize, setCanDefault, setCanFocus, setColormap, setEvents, setName, setSensitive, setSizeRequest, setTooltipMarkup, setTooltipText, show, showAll |
Methods inherited from class org.gnome.gtk.Object |
---|
connect, destroy |
Methods inherited from class org.freedesktop.bindings.Pointer |
---|
toString |
Methods inherited from class Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Layout()
public Layout(Adjustment hadjustment, Adjustment vadjustment)
Method Detail |
---|
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)
|
![]() java-gnome |
||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES All Classes | ||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |