3#if !defined(__XTD_DRAWING_NATIVE_LIBRARY__)
4#error "Do not include this file: Internal use only"
11#include <xtd/drawing_native_export.h>
87 static void get_bounds(
intptr handle,
float& x,
float& y,
float& width,
float& height);
Contains region native API.
Definition region.h:31
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 graph...
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 bool is_empty(intptr handle, intptr grpahics)
Tests whether the region has an empty interior on the specified drawing surface.
static void destroy(intptr handle)
Destroys the region.
static bool is_infinite(intptr handle)
Tests whether the region has an infinite interior.
static intptr get_hrgn(intptr handle, intptr grpahics)
Returns a Windows handle to the region in the specified graphics context.
static void translate(intptr handle, float dx, float dy)
Offsets the coordinates of the region by the specified amount.
static void exclude(intptr handle, intptr region)
Updates the region to contain only the portion of its interior that does not intersect with the speci...
static intptr create_from_rect(float x, float y, float width, float height)
Creates a region from the specified rectangle.
static void intersect(intptr handle, intptr region)
Updates the region to the intersection of itself with the specified 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 r...
static bool is_empty(intptr handle)
Tests whether the region has an empty interior.
static void make_xor(intptr handle, intptr region)
Updates the region to the union minus the intersection of itself with the specified region.
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 graph...
static void make_empty(intptr handle)
Initializes the region to an empty interior.
static intptr create()
Creates a region with an infinite interior.
static void make_union(intptr handle, intptr region)
Updates the region to the union of itself and the specified region.
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, 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 wh...
static intptr create_from_graphics_path(intptr path)
Creates a region with the specified graphics path.
static intptr from_hrgn(intptr hrgn)
Creates a region from a handle to the specified existing GDI region.
static void release_hrgn(intptr region_handle)
Releases the handle of the region.
Describes the interior of a graphics shape composed of rectangles and paths. This class cannot be inh...
Definition region.h:32
#define static_
This keyword is use to represent a static object. A static object can't be instantiated (constructors...
Definition static.h:37
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.h:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10
Contains xtd::static_object class.
Contains xtd fundamental types.