org.gnu.gdk

Class Rectangle


public class Rectangle
extends Boxed

Represents a rectangle with x, y, width and height members.

Field Summary

Fields inherited from class org.gnu.glib.Boxed

handle

Constructor Summary

Rectangle(Handle handle)

Method Summary

protected void
finalize()
protected static void
free(Handle obj)
protected static boolean
gdk_rectangle_intersect(Handle src1, Handle src2, Handle dest)
protected static void
gdk_rectangle_union(Handle src1, Handle src2, Handle dest)
int
getHeight()
Retrieve the height of the Rectangle.
protected static int
getHeight(Handle obj)
int
getWidth()
Retrieve the width of the Rectangle.
protected static int
getWidth(Handle obj)
int
getX()
Retrieve the x coordinate for the Rectangle.
protected static int
getX(Handle obj)
int
getY()
Retrieve the y coordinate for the Rectangle.
protected static int
getY(Handle obj)
Rectangle
intersect(Rectangle rect)
Returns the intersection of this Rectangle and the provided Rectangle or null if there is no intersection.
void
setHeight(int heigth)
Set the height of the Rectangle.
protected void
setHeight(Handle obj, int height)
void
setWidth(int width)
Set the width of the Rectangle.
protected void
setWidth(Handle obj, int width)
void
setX(int x)
Set the x coordinate for the Rectangle.
protected void
setX(Handle obj, int x)
void
setY(int y)
Set the y coordinate for the Rectangle.
protected void
setY(Handle obj, int y)
Rectangle
union(Rectangle rect)
Returns the union of this Rectangle and the provided Rectangle or null if there is no union.

Methods inherited from class org.gnu.glib.Boxed

equals, getHandle, hashCode, setHandle

Constructor Details

Rectangle

public Rectangle(Handle handle)

Method Details

finalize

protected void finalize()
            throws Throwable


free

protected static final void free(Handle obj)


gdk_rectangle_intersect

protected static final boolean gdk_rectangle_intersect(Handle src1,
                                                       Handle src2,
                                                       Handle dest)


gdk_rectangle_union

protected static final void gdk_rectangle_union(Handle src1,
                                                Handle src2,
                                                Handle dest)


getHeight

public int getHeight()
Retrieve the height of the Rectangle.


getHeight

protected static final int getHeight(Handle obj)


getWidth

public int getWidth()
Retrieve the width of the Rectangle.


getWidth

protected static final int getWidth(Handle obj)


getX

public int getX()
Retrieve the x coordinate for the Rectangle.


getX

protected static final int getX(Handle obj)


getY

public int getY()
Retrieve the y coordinate for the Rectangle.


getY

protected static final int getY(Handle obj)


intersect

public Rectangle intersect(Rectangle rect)
Returns the intersection of this Rectangle and the provided Rectangle or null if there is no intersection.

Parameters:
rect -


setHeight

public void setHeight(int heigth)
Set the height of the Rectangle.

Parameters:
heigth -


setHeight

protected final void setHeight(Handle obj,
                               int height)


setWidth

public void setWidth(int width)
Set the width of the Rectangle.

Parameters:
width -


setWidth

protected final void setWidth(Handle obj,
                              int width)


setX

public void setX(int x)
Set the x coordinate for the Rectangle.

Parameters:
x -


setX

protected final void setX(Handle obj,
                          int x)


setY

public void setY(int y)
Set the y coordinate for the Rectangle.

Parameters:
y -


setY

protected final void setY(Handle obj,
                          int y)


union

public Rectangle union(Rectangle rect)
Returns the union of this Rectangle and the provided Rectangle or null if there is no union.

Parameters:
rect -