Gdk.Rectangle Members

The members of Gdk.Rectangle are listed below.

See Also: Inherited members from System.ValueType

Public Constructors

Creates a rectangle from a point and a size.
Initializes a rectangle from the given values.

Public Fields

Heightint. The rectangle height.
Widthint. The rectangle width
Xint. The X element of the rectangle.
Yint. The Y element of the rectangle.
static
ZeroRectangle. A zero initialized rectangle.

Public Properties

[read-only]
Bottomint. The Y coordinate of the bottom of the rectangle.
[read-only]
static
GTypeGLib.GType. GType Property.
[read-only]
IsEmptybool. Gets if the area of the rectangle is zero
[read-only]
Leftint. The X coordinate of the left of the rectangle.
LocationPoint. Gets the point represented by (X, Y)
[read-only]
Rightint. The X coordinate of the right of the rectangle.
SizeSize. Gets the size represented by (Width, Height)
[read-only]
Topint. The Y coordinate of the top of the rectangle.

Public Methods

Contains(Point) : bool
Does hit testing for a point
Contains(Rectangle) : bool
Tests if a rectangle is contained in this rectangle.
Contains(int, int) : bool
Does hit testing for a point
static
FromLTRB(int, int, int, int) : Rectangle
Creates a rectangle given the left, right, top, and bottom.
Inflate(Size)
Inflates this rectangle by a given size.
static
Inflate(Rectangle, Size) : Rectangle
Changes the size of each side of the rectangle by the specified amount.
Inflate(int, int)
Inflates this rectangle by a given size.
static
Inflate(Rectangle, int, int) : Rectangle
Changes the size of each side of the rectangle by the specified amount.
Intersect(Rectangle)
Modifies this rectangle to be the intersection with another rectangle
static
Intersect(Rectangle, Rectangle) : Rectangle
Gets the largest rectangle (if any) which is contained by both parameters.
Intersect(Rectangle, out Rectangle) : bool
Obtains the intersection of a this Gdk.Rectangle and another.
IntersectsWith(Rectangle) : bool
Tests if there is any overlap of this rectangle and another
static
New(IntPtr) : Rectangle
Makes a new rectangle.
Offset(Point)
Offsets this rectangle by the vector dr
static
Offset(Rectangle, Point) : Rectangle
Returns a rectangle shifted by the vector dr
Offset(int, int)
Offsets this rectangle by (dx,dy)
static
Offset(Rectangle, int, int) : Rectangle
Returns the rectangle shifted by (dx,dy)
Union(Rectangle) : Rectangle
Obtains the union of a this Gdk.Rectangle and another.
static
Union(Rectangle, Rectangle) : Rectangle
Gets the smallest rectangle that contains both parameters

Public Operators

static
Equality(Rectangle, Rectangle)Documentation for this section has not yet been entered.
static
Inequality(Rectangle, Rectangle)Documentation for this section has not yet been entered.
static
Conversion to GLib.Value(Explicit)Documentation for this section has not yet been entered.
static
Conversion to Gdk.Rectangle(Explicit)Documentation for this section has not yet been entered.