Application code must explicitly invoke the Region.dispose()
method to release the operating system resources managed by each instance
when those instances are no longer required.
| Modifier and Type | Field and Description |
|---|---|
| public long | handle
the OS resource for the region (Warning: This field is platform dependent) Important Note This field is not part of the SWT public API. |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| pack-priv |
| Modifier and Type | Method and Description |
|---|---|
| public void | add(int[]
points that describe the polygon to merge with the receiver pointArray)Adds the given polygon to the collection of polygons the receiver maintains to describe its area. |
| public void | |
| public void | add(int
the x coordinate of the rectangle x, int the y coordinate of the rectangle y, int the width coordinate of the rectangle width, int the height coordinate of the rectangle height)Adds the given rectangle to the collection of polygons the receiver maintains to describe its area. |
| public void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv static void | |
| public boolean | Returns: true if the region contains the point and false otherwisethe x coordinate of the point to test for containment x, int the y coordinate of the point to test for containment y)Returns |
| public boolean | |
| pack-priv boolean | |
| pack-priv boolean | |
| pack-priv void | |
| public boolean | Returns: true if the object is the same as this object and false otherwisethe object to compare with this object object)Overrides java. |
| pack-priv static long | |
| public Rectangle | Returns: a bounding rectangle for the regionReturns a rectangle which represents the rectangular union of the collection of polygons the receiver maintains to describe its area. |
| pack-priv Rectangle | |
| public static Region | |
| public int | Returns: the receiver's hashOverrides java. |
| public void | |
| public void | intersect(int
the x coordinate of the rectangle x, int the y coordinate of the rectangle y, int the width coordinate of the rectangle width, int the height coordinate of the rectangle height)Intersects the given rectangle to the collection of polygons the receiver maintains to describe its area. |
| public void | |
| pack-priv void | |
| pack-priv void | |
| public boolean | Returns: true if the rectangle intersects with the receiver, and false otherwisethe x coordinate of the origin of the rectangle x, int the y coordinate of the origin of the rectangle y, int the width of the rectangle width, int the height of the rectangle height)Returns |
| public boolean | Returns: true if the rectangle intersects with the receiver, and false otherwisethe rectangle to test for intersection rect)Returns |
| pack-priv boolean | |
| pack-priv boolean | |
| public boolean | Returns: true when the region is disposed, and false otherwiseImplements abstract org. true if the region has been disposed,
and false otherwise.
|
| public boolean | Returns: true if the receiver is empty, and false otherwiseReturns |
| public void | subtract(int[]
points that describe the polygon to merge with the receiver pointArray)Subtracts the given polygon from the collection of polygons the receiver maintains to describe its area. |
| public void | |
| public void | subtract(int
the x coordinate of the rectangle x, int the y coordinate of the rectangle y, int the width coordinate of the rectangle width, int the height coordinate of the rectangle height)Subtracts the given rectangle from the collection of polygons the receiver maintains to describe its area. |
| public void | |
| pack-priv void | |
| pack-priv void | |
| pack-priv void | |
| public String | Returns: a string representation of the receiverOverrides java. |
| public void | translate(int
the x coordinate of the point to translate x, int the y coordinate of the point to translate y)Translate all of the polygons the receiver maintains to describe its area by the specified point. |
| public void | |
| pack-priv void |
| handle | back to summary |
|---|---|
| public long handle the OS resource for the region (Warning: This field is platform dependent) Important Note This field is not part of the SWT public API. It is marked public only so that it can be shared within the packages provided by SWT. It is not available on all platforms and should never be accessed from application code. | |
| Region | back to summary |
|---|---|
| public Region() Constructs a new empty region. You must dispose the region when it is no longer required. | |
| Region | back to summary |
|---|---|
| public Region(Device device) Constructs a new empty region. You must dispose the region when it is no longer required.
| |
| Region | back to summary |
|---|---|
| pack-priv Region(Device device, long handle) | |
| add | back to summary |
|---|---|
| public void add(int[] pointArray) Adds the given polygon to the collection of polygons the receiver maintains to describe its area.
| |
| add | back to summary |
|---|---|
| public void add(Rectangle rect) Adds the given rectangle to the collection of polygons the receiver maintains to describe its area.
| |
| add | back to summary |
|---|---|
| public void add(int x, int y, int width, int height) Adds the given rectangle to the collection of polygons the receiver maintains to describe its area.
| |
| add | back to summary |
|---|---|
| public void add(Region region) Adds all of the polygons which make up the area covered by the argument to the collection of polygons the receiver maintains to describe its area.
| |
| addInPixels | back to summary |
|---|---|
| pack-priv void addInPixels(int[] pointArray) | |
| addInPixels | back to summary |
|---|---|
| pack-priv void addInPixels(Rectangle rect) | |
| addInPixels | back to summary |
|---|---|
| pack-priv void addInPixels(int x, int y, int width, int height) | |
| cairo_region_get_rectangles | back to summary |
|---|---|
| pack-priv static void cairo_region_get_rectangles(long region, long[] rectangles, int[] n_rectangles) | |
| contains | back to summary |
|---|---|
| public boolean contains(int x, int y) Returns
| |
| contains | back to summary |
|---|---|
| public boolean contains(Point pt) Returns
| |
| containsInPixels | back to summary |
|---|---|
| pack-priv boolean containsInPixels(int x, int y) | |
| containsInPixels | back to summary |
|---|---|
| pack-priv boolean containsInPixels(Point pt) | |
| destroy | back to summary |
|---|---|
| pack-priv void destroy() Overrides org.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object object) Overrides java. Compares the argument to the receiver, and returns true if they represent the same object using a class specific comparison. | |
| gdk_region_polygon | back to summary |
|---|---|
| pack-priv static long gdk_region_polygon(int[] pointArray, int npoints, int fill_rule) | |
| getBounds | back to summary |
|---|---|
| public Rectangle getBounds() Returns a rectangle which represents the rectangular union of the collection of polygons the receiver maintains to describe its area.
| |
| getBoundsInPixels | back to summary |
|---|---|
| pack-priv Rectangle getBoundsInPixels() | |
| gtk_new | back to summary |
|---|---|
| public static Region gtk_new(Device device, long handle) Invokes platform specific functionality to allocate a new region. Important Note This method is not part of the public
API for | |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Returns an integer hash code for the receiver. Any two
objects that return | |
| intersect | back to summary |
|---|---|
| public void intersect(Rectangle rect) Intersects the given rectangle to the collection of polygons the receiver maintains to describe its area.
| |
| intersect | back to summary |
|---|---|
| public void intersect(int x, int y, int width, int height) Intersects the given rectangle to the collection of polygons the receiver maintains to describe its area.
| |
| intersect | back to summary |
|---|---|
| public void intersect(Region region) Intersects all of the polygons which make up the area covered by the argument to the collection of polygons the receiver maintains to describe its area.
| |
| intersectInPixels | back to summary |
|---|---|
| pack-priv void intersectInPixels(Rectangle rect) | |
| intersectInPixels | back to summary |
|---|---|
| pack-priv void intersectInPixels(int x, int y, int width, int height) | |
| intersects | back to summary |
|---|---|
| public boolean intersects(int x, int y, int width, int height) Returns
| |
| intersects | back to summary |
|---|---|
| public boolean intersects(Rectangle rect) Returns
| |
| intersectsInPixels | back to summary |
|---|---|
| pack-priv boolean intersectsInPixels(int x, int y, int width, int height) | |
| intersectsInPixels | back to summary |
|---|---|
| pack-priv boolean intersectsInPixels(Rectangle rect) | |
| isDisposed | back to summary |
|---|---|
| public boolean isDisposed() Implements abstract org. Returns
This method gets the dispose state for the region.
When a region has been disposed, it is an error to
invoke any other method (except
| |
| isEmpty | back to summary |
|---|---|
| public boolean isEmpty() Returns
| |
| subtract | back to summary |
|---|---|
| public void subtract(int[] pointArray) Subtracts the given polygon from the collection of polygons the receiver maintains to describe its area.
| |
| subtract | back to summary |
|---|---|
| public void subtract(Rectangle rect) Subtracts the given rectangle from the collection of polygons the receiver maintains to describe its area.
| |
| subtract | back to summary |
|---|---|
| public void subtract(int x, int y, int width, int height) Subtracts the given rectangle from the collection of polygons the receiver maintains to describe its area.
| |
| subtract | back to summary |
|---|---|
| public void subtract(Region region) Subtracts all of the polygons which make up the area covered by the argument from the collection of polygons the receiver maintains to describe its area.
| |
| subtractInPixels | back to summary |
|---|---|
| pack-priv void subtractInPixels(int[] pointArray) | |
| subtractInPixels | back to summary |
|---|---|
| pack-priv void subtractInPixels(Rectangle rect) | |
| subtractInPixels | back to summary |
|---|---|
| pack-priv void subtractInPixels(int x, int y, int width, int height) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Returns a string containing a concise, human-readable description of the receiver. | |
| translate | back to summary |
|---|---|
| public void translate(int x, int y) Translate all of the polygons the receiver maintains to describe its area by the specified point.
| |
| translate | back to summary |
|---|---|
| public void translate(Point pt) Translate all of the polygons the receiver maintains to describe its area by the specified point.
| |
| translateInPixels | back to summary |
|---|---|
| pack-priv void translateInPixels(int x, int y) | |