Android Guides | Samples

Android.Graphics.Region Class

See Also: Region

Syntax

[Android.Runtime.Register("android/graphics/Region", DoNotGenerateAcw=true)]
public class Region : Object, IParcelable, IDisposable

Remarks

Requirements

Namespace: Android.Graphics
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Graphics.Region are listed below.

See Also: Object

Public Constructors

Create an empty region
Return a region set to the specified rectangle
Return a copy of the specified region
Return a region set to the specified rectangle

Protected Constructors

A constructor used when creating managed representations of JNI objects; called by the runtime.

Public Properties

[read-only]
BoundaryPathPath. Return the boundary of the region as a new Path.
[read-only]
BoundsRect. Return a new Rect set to the bounds of the region.
[read-only]
static
CreatorIParcelableCreator.
[read-only]
IsComplexBoolean. Return true if the region contains more than one rectangle
[read-only]
IsEmptyBoolean. Return true if this region is empty
[read-only]
IsRectBoolean. Return true if the region contains a single rectangle

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

Contains(Int32, Int32) : Boolean
Return true if the region contains the specified point
DescribeContents() : Int32
Describe the kinds of special objects contained in this Parcelable's marshalled representation.
GetBoundaryPath(Path) : Boolean
Set the path to the boundary of the region.
GetBounds(Rect) : Boolean
Set the Rect to the bounds of the region.
InvokeOp(Rect, Region+Op) : Boolean
Perform the specified Op on this region and the specified rect.
InvokeOp(Region, Region+Op) : Boolean
Perform the specified Op on this region and the specified region.
InvokeOp(Rect, Region, Region+Op) : Boolean
Set this region to the result of performing the Op on the specified rect and region.
InvokeOp(Region, Region, Region+Op) : Boolean
Set this region to the result of performing the Op on the specified regions.
InvokeOp(Int32, Int32, Int32, Int32, Region+Op) : Boolean
Perform the specified Op on this region and the specified rect.
QuickContains(Rect) : Boolean
Return true if the region is a single rectangle (not complex) and it contains the specified rectangle.
QuickContains(Int32, Int32, Int32, Int32) : Boolean
Return true if the region is a single rectangle (not complex) and it contains the specified rectangle.
QuickReject(Rect) : Boolean
Return true if the region is empty, or if the specified rectangle does not intersect the region.
QuickReject(Region) : Boolean
Return true if the region is empty, or if the specified region does not intersect the region.
QuickReject(Int32, Int32, Int32, Int32) : Boolean
Return true if the region is empty, or if the specified rectangle does not intersect the region.
Set(Rect) : Boolean
Set the region to the specified rectangle
Set(Region) : Boolean
Set the region to the specified region.
Set(Int32, Int32, Int32, Int32) : Boolean
Set the region to the specified rectangle
SetEmpty()
Set the region to the empty region
SetPath(Path, Region) : Boolean
Set the region to the area described by the path and clip.
Translate(Int32, Int32)
Translate the region by [dx, dy].
Translate(Int32, Int32, Region)
Set the dst region to the result of translating this region by [dx, dy].
Union(Rect) : Boolean
WriteToParcel(Parcel, ParcelableWriteFlags)
Write the region and its pixels to the parcel.