|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.gnu.gtk.Allocation
org.gnome.gtk.Allocation
.
You should be aware that there is a considerably different API
in the new library: the architecture is completely different
and most notably internals are no longer exposed to public view.
public final class Allocation
When the top-level widget has determined how much space its child would like to have, the second phase of the size negotiation, size allocation, begins. A child's size allocation is represented by an Allocation object. This class contains not only a width and height, but also a position (i.e. X and Y coordinates), so that containers can tell their children not only how much space they have gotten, but also where they are positioned inside the space available to the container.
Constructor Summary | |
---|---|
Allocation(int x,
int y,
int width,
int height)
Deprecated. Construct a new Allocation. |
Method Summary | |
---|---|
int |
getHeight()
Deprecated. |
int |
getWidth()
Deprecated. |
int |
getX()
Deprecated. |
int |
getY()
Deprecated. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Allocation(int x, int y, int width, int height)
x
- the X position of the widget's area relative to its parents
allocation.y
- the Y position of the widget's area relative to its parents
allocation.width
- the width of the widget's allocated area.height
- the height of the widget's allocated area.Widget.getAllocation()
Method Detail |
---|
public final int getX()
public final int getY()
public final int getWidth()
public final int getHeight()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |