public final class Allocation extends Boxed
setSizeRequest() for a more
detailed discussion of the size request-allocation process. You get the
Allocation currently given to a Widget with Widget's
getAllocation().
Before the request-allocation process has occurred, you can expect this
class to report a size of 1x1 at position
-1,-1. You probably don't want to rely on those
numbers; but that's what the initial values are.
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
The height that has been allocated.
|
int |
getWidth()
The width that has been allocated.
|
int |
getX()
The horizontal co-ordinate of the top left corner of the rectangle.
|
int |
getY()
The vertical co-ordinate of the top left corner of the rectangle.
|
String |
toString() |
public int getHeight()
public int getWidth()
public int getX()
public int getY()
public String toString()
toString in class org.freedesktop.bindings.Pointer