Contains region native API.
Protected Static Methods | |
static intptr | create () |
Creates a region with an infinite interior. | |
static intptr | create_from_rect (float x, float y, float width, float height) |
Creates a region from the specified rectangle. | |
static intptr | create_from_graphics_path (intptr path) |
Creates a region with the specified graphics path. | |
static void | destroy (intptr handle) |
Destroys the region. | |
static void | complement (intptr handle, intptr region) |
Updates thie region to contain the portion of the specified region that does not intersect with the region. | |
static void | exclude (intptr handle, intptr region) |
Updates the region to contain only the portion of its interior that does not intersect with the specified region. | |
static intptr | from_hrgn (intptr hrgn) |
Creates a region from a handle to the specified existing GDI region. | |
static void | get_bounds (intptr handle, float &x, float &y, float &width, float &height) |
Gets a rectangle that represents a rectangle that bounds in pixels the region. | |
static intptr | get_hrgn (intptr handle, intptr grpahics) |
Returns a Windows handle to the region in the specified graphics context. | |
static void | intersect (intptr handle, intptr region) |
Updates the region to the intersection of itself with the specified region. | |
static bool | is_empty (intptr handle) |
Tests whether the region has an empty interior. | |
static bool | is_empty (intptr handle, intptr grpahics) |
Tests whether the region has an empty interior on the specified drawing surface. | |
static bool | is_infinite (intptr handle) |
Tests whether the region has an infinite interior. | |
static bool | is_infinite (intptr handle, intptr grpahics) |
Tests whether the region has an infinite interior on the specified drawing surface. | |
static bool | is_visible (intptr handle, float x, float y) |
Tests whether the specified point is contained within the region when drawn using the specified graphics. | |
static bool | is_visible (intptr handle, float x, float y, intptr grpahics) |
Tests whether the specified point is contained within the region when drawn using the specified graphics. | |
static bool | is_visible (intptr handle, float x, float y, float width, float height) |
Tests whether any portion of the specified rectangle is contained within the region. | |
static bool | is_visible (intptr handle, float x, float y, float width, float height, intptr grpahics) |
Tests whether any portion of the specified rectangle is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics. | |
static void | make_empty (intptr handle) |
Initializes the region to an empty interior. | |
static void | make_union (intptr handle, intptr region) |
Updates the region to the union of itself and the specified region. | |
static void | make_xor (intptr handle, intptr region) |
Updates the region to the union minus the intersection of itself with the specified region. | |
static void | release_hrgn (intptr region_handle) |
Releases the handle of the region. | |
static void | translate (intptr handle, float dx, float dy) |
Offsets the coordinates of the region by the specified amount. | |
|
staticprotected |
Creates a region with an infinite interior.
|
staticprotected |
Creates a region from the specified rectangle.
x | A x-coordinate of rectangle that defines the interior of the region. |
y | A y-coordinate of rectangle that defines the interior of the region. |
width | A width of rectangle that defines the interior of the region. |
height | A height of rectangle that defines the interior of the region. |
|
staticprotected |
Creates a region with the specified graphics path.
path | A graphics path handle that defines the region. |
|
staticprotected |
Destroys the region.
handle | The region handle to destroy. |
|
staticprotected |
Updates thie region to contain the portion of the specified region that does not intersect with the region.
handle | The region handle. |
region | The region handle to complement the region. |
Updates the region to contain only the portion of its interior that does not intersect with the specified region.
handle | The region handle. |
region | The region handle to exclude from the region. |
Creates a region from a handle to the specified existing GDI region.
hrgn | A handle to an existing region. |
|
staticprotected |
Gets a rectangle that represents a rectangle that bounds in pixels the region.
handle | The region handle. |
x | The x-coordinate of rectangle that represents the bounding rectangle in pixels for the region. |
y | The y-coordinate of rectangle that represents the bounding rectangle in pixels for the region. |
width | The width of rectangle that represents the bounding rectangle in pixels for the region. |
height | The height of rectangle that represents the bounding rectangle in pixels for the region. |
|
staticprotected |
Returns a Windows handle to the region in the specified graphics context.
handle | The region handle. |
graphics | The graphics handle on which the region is drawn. |
|
staticprotected |
Updates the region to the intersection of itself with the specified region.
handle | The region handle. |
region | The region handle to intersect with the region. |
|
staticprotected |
Tests whether the region has an empty interior.
handle | The region handle. |
|
staticprotected |
Tests whether the region has an empty interior on the specified drawing surface.
handle | The region handle. |
graphics | A graphics handle that represents a drawing surface. |
|
staticprotected |
Tests whether the region has an infinite interior.
handle | The region handle. |
|
staticprotected |
Tests whether the region has an infinite interior on the specified drawing surface.
handle | The region handle. |
graphics | A graphics handle that represents a drawing surface. |
|
staticprotected |
Tests whether the specified point is contained within the region when drawn using the specified graphics.
handle | The region handle. |
x | The x-coordinate of the point to test. |
y | The y-coordinate of the point to test. |
|
staticprotected |
Tests whether the specified point is contained within the region when drawn using the specified graphics.
handle | The region handle. |
x | The x-coordinate of the point to test. |
y | The y-coordinate of the point to test. |
graphics | The graphics handle that represents a draing surface. |
|
staticprotected |
Tests whether any portion of the specified rectangle is contained within the region.
handle | The region handle. |
x | The x-coordinate of the upper-left corner of the rectangle to test. |
y | The y-coordinate of the upper-left corner of the rectangle to test. |
width | The width of the rectangle to test. |
height | The height of the rectangle to test. |
|
staticprotected |
Tests whether any portion of the specified rectangle is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics.
handle | The region handle. |
x | The x-coordinate of the upper-left corner of the rectangle to test. |
y | The y-coordinate of the upper-left corner of the rectangle to test. |
width | The width of the rectangle to test. |
height | The height of the rectangle to test. |
graphics | A graphics handle that represents a graphics context. |
|
staticprotected |
Initializes the region to an empty interior.
handle | The region handle. |
|
staticprotected |
Updates the region to the union of itself and the specified region.
handle | The region handle. |
region | The region handle to unite with the region. |
Updates the region to the union minus the intersection of itself with the specified region.
handle | The region handle. |
path | The region handle to Xor with this xtd::drawing::region. |
|
staticprotected |
Releases the handle of the region.
region_handle | The handle to the region. |
|
staticprotected |
Offsets the coordinates of the region by the specified amount.
handle | The region handle. |
dx | The amount to offset the region horizontally. |
dy | The amount to offset the region vertically. |