Skip to content

GOval extends GObject

Factory Functions

function GOval(width, height)
function GOval(x, y, width, height)
Creates a new GOval that fits into the rectangle of a given width and height. The object's x and y coordinates can also be specified — if left unspecified, defaults to 0, 0.

Methods

Warning

These functions will all throw an error if this object has been transformed by GObject::rotate, GObject::scale, GObject::shear, or GObject::translate.

function GOval::setSize(object)
Sets this GOval's width/height to match that of the passed-in object of type GDimension, GRectangle, or GObject.
function GOval::setSize(width, height)
Sets this GOval's width and height as specified.
function GOval::setBounds(object)
Sets this GOval's x/y/width/height to match that of the passed-in object of type GRectangle or GObject.
function GOval::setBounds(positionObject, sizeObject)
Sets this GOval's x/y to match that of the passed-in positionObject, and its width/height to match that of the passed-in sizeObject.
These objects should be of type GRectangle or GObject. Additionally, positionObject can be a GPoint, and positionObject can be a GDimension.
function GOval::setBounds(x, y, width, height)
Sets this GOval's x, y, width, and height as specified.