| Modifier and Type | Method and Description |
|---|---|
GObject |
setBounds(float x,
float y,
float width,
float height)
Changes the bounds of this object to the specified values.
|
GObject |
setBounds(GRectangle bounds)
Changes the bounds of this object to the values from the specified
GRectangle. |
GObject |
setSize(float width,
float height)
Changes the size of this object to the specified width and height.
|
GObject |
setSize(GDimension size)
Changes the size of this object as specified by the
GDimension
object. |
GObject setSize(float width, float height)
width - The new width of the objectheight - The new height of the objectGObject setSize(GDimension size)
GDimension
object.size - A GDimension object specifying the new sizeGObject setBounds(float x, float y, float width, float height)
x - The new x-coordinate for the objecty - The new y-coordinate for the objectwidth - The new width of the objectheight - The new height of the objectGObject setBounds(GRectangle bounds)
GRectangle.bounds - A GRectangle specifying the new bounds