Describes the interior of a graphics shape composed of rectangles and paths. This class cannot be inherited.
Public Constructors | |
| region () | |
| Initializes a new xtd::drawing::region. | |
| region (const xtd::drawing::drawing_2d::graphics_path &path) | |
| Initializes a new xtd::drawing::region with the specified xtd::drawing::graphics_path. | |
| region (const xtd::drawing::rectangle &rect) | |
| Initializes a new xtd::drawing::region from the specified xtd::drawing::rectangle structure. | |
| region (const xtd::drawing::rectangle_f &rect) | |
| Initializes a new xtd::drawing::region from the specified xtd::drawing::rectangle_f structure. | |
Public Properties | |
| auto | handle () const noexcept -> xtd::intptr |
| Gets the handle of the region. | |
Public Methods | |
| auto | complement (const xtd::drawing::drawing_2d::graphics_path &path) noexcept -> void |
| Updates this xtd::drawing::region to contain the portion of the specified xtd::drawing::graphics_path that does not intersect with this xtd::drawing::region. | |
| auto | complement (const xtd::drawing::rectangle &rect) noexcept -> void |
| Updates this xtd::drawing::region to contain the portion of the specified xtd::drawing::rectangle structure that does not intersect with this xtd::drawing::region. | |
| auto | complement (const xtd::drawing::rectangle_f &rect) noexcept -> void |
| Updates this xtd::drawing::region to contain the portion of the specified xtd::drawing::rectangle_f structure that does not intersect with this xtd::drawing::region. | |
| auto | complement (const xtd::drawing::region ®ion) noexcept -> void |
| Updates this xtd::drawing::region to contain the portion of the specified xtd::drawing::region that does not intersect with this xtd::drawing::region. | |
| auto | equals (const xtd::object &obj) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | equals (const region &other) const noexcept -> bool override |
| Determines whether the specified object is equal to the current object. | |
| auto | get_hash_code () const noexcept -> xtd::usize override |
| Serves as a hash function for a particular type. | |
| auto | exclude (const xtd::drawing::drawing_2d::graphics_path &path) noexcept -> void |
| Updates this xtd::drawing::region to contain only the portion of its interior that does not intersect with the specified xtd::drawing::graphics_path. | |
| auto | exclude (const xtd::drawing::rectangle &rect) noexcept -> void |
| Updates this xtd::drawing::region to contain only the portion of its interior that does not intersect with the specified xtd::drawing::rectangle structure. | |
| auto | exclude (const xtd::drawing::rectangle_f &rect) noexcept -> void |
| The xtd::drawing::rectangle_f structure to exclude from this xtd::drawing::region. | |
| auto | exclude (const xtd::drawing::region ®ion) noexcept -> void |
| Updates this xtd::drawing::region to contain only the portion of its interior that does not intersect with the specified xtd::drawing::region. | |
| auto | get_bounds () const noexcept -> xtd::drawing::rectangle_f |
| Gets a xtd::drawing::rectangle_f structure that represents a rectangle that bounds this xtd::drawing::region on the drawing surface of a xtd::drawing::graphics object. | |
| auto | get_bounds (const xtd::drawing::graphics &g) const noexcept -> xtd::drawing::rectangle_f |
| Gets a xtd::drawing::rectangle_f structure that represents a rectangle that bounds this xtd::drawing::region on the drawing surface of a xtd::drawing::graphics object. | |
| auto | get_hrgn (const xtd::drawing::graphics &g) const noexcept -> xtd::intptr |
| Returns a Windows handle to this xtd::drawing::region in the specified graphics context. | |
| auto | intersect (const xtd::drawing::drawing_2d::graphics_path &path) noexcept -> void |
| Updates this xtd::drawing::region to the intersection of itself with the specified xtd::drawing::graphics_path. | |
| auto | intersect (const xtd::drawing::rectangle &rect) noexcept -> void |
| Updates this xtd::drawing::region to the intersection of itself with the specified xtd::drawing::rectangle structure. | |
| auto | intersect (const xtd::drawing::rectangle_f &rect) noexcept -> void |
| Updates this xtd::drawing::region to the intersection of itself with the specified xtd::drawing::rectangle_f structure. | |
| auto | intersect (const xtd::drawing::region ®ion) noexcept -> void |
| Updates this xtd::drawing::region to the intersection of itself with the specified xtd::drawing::region. | |
| auto | is_empty () const noexcept -> bool |
| Tests whether this xtd::drawing::region has an empty interior. | |
| auto | is_empty (const xtd::drawing::graphics &g) const noexcept -> bool |
| Tests whether this xtd::drawing::region has an empty interior on the specified drawing surface. | |
| auto | is_infinite () const noexcept -> bool |
| Tests whether this xtd::drawing::region has an infinite interior. | |
| auto | is_infinite (const xtd::drawing::graphics &g) const noexcept -> bool |
| Tests whether this xtd::drawing::region has an infinite interior on the specified drawing surface. | |
| auto | is_visible (const xtd::drawing::rectangle_f &rect, const xtd::drawing::graphics &g) const noexcept -> bool |
| Tests whether any portion of the specified xtd::drawing::rectangle_f structure is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics. | |
| auto | is_visible (float x, float y, float width, float height, const xtd::drawing::graphics &g) const noexcept -> bool |
| Tests whether any portion of the specified rectangle is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics. | |
| auto | is_visible (const xtd::drawing::rectangle &rect, const xtd::drawing::graphics &g) const noexcept -> bool |
| Tests whether any portion of the specified xtd::drawing::rectangle structure is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics. | |
| auto | is_visible (xtd::int32 x, xtd::int32 y, xtd::int32 width, xtd::int32 height, const xtd::drawing::graphics &g) const noexcept -> bool |
| Tests whether any portion of the specified rectangle is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics. | |
| auto | is_visible (const xtd::drawing::rectangle_f &rect) const noexcept -> bool |
| Tests whether any portion of the specified xtd::drawing::rectangle_f structure is contained within this xtd::drawing::region. | |
| auto | is_visible (float x, float y, float width, float height) const noexcept -> bool |
| Tests whether any portion of the specified rectangle is contained within this xtd::drawing::region. | |
| auto | is_visible (const xtd::drawing::rectangle &rect) const noexcept -> bool |
| Tests whether any portion of the specified xtd::drawing::rectangle structure is contained within this xtd::drawing::region. | |
| auto | is_visible (xtd::int32 x, xtd::int32 y, xtd::int32 width, xtd::int32 height) const noexcept -> bool |
| Tests whether any portion of the specified rectangle is contained within this xtd::drawing::region. | |
| auto | is_visible (xtd::drawing::point_f pt, const xtd::drawing::graphics &g) const noexcept -> bool |
| Tests whether the specified PointF structure is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics. | |
| auto | is_visible (float x, float y, const xtd::drawing::graphics &g) const noexcept -> bool |
| Tests whether the specified point is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics. | |
| auto | is_visible (xtd::drawing::point pt, const xtd::drawing::graphics &g) const noexcept -> bool |
| Tests whether the specified Point structure is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics. | |
| auto | is_visible (xtd::int32 x, xtd::int32 y, const xtd::drawing::graphics &g) const noexcept -> bool |
| Tests whether the specified point is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics. | |
| auto | is_visible (xtd::drawing::point_f pt) const noexcept -> bool |
| Tests whether the specified PointF structure is contained within this xtd::drawing::region. | |
| auto | is_visible (float x, float y) const noexcept -> bool |
| Tests whether the specified point is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics. | |
| auto | is_visible (xtd::drawing::point pt) const noexcept -> bool |
| Tests whether the specified Point structure is contained within this xtd::drawing::region. | |
| auto | is_visible (xtd::int32 x, xtd::int32 y) const noexcept -> bool |
| Tests whether the specified point is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics. | |
| auto | make_empty () -> void |
| Initializes this xtd::drawing::region to an empty interior. | |
| auto | make_infinite () noexcept -> void |
| Initializes this xtd::drawing::region object to an infinite interior. | |
| auto | make_union (const xtd::drawing::drawing_2d::graphics_path &path) noexcept -> void |
| Updates this xtd::drawing::region to the union of itself and the specified xtd::drawing::graphics_path. | |
| auto | make_union (const xtd::drawing::rectangle &rect) noexcept -> void |
| Updates this xtd::drawing::region to the union of itself and the specified xtd::drawing::rectangle structure. | |
| auto | make_union (const xtd::drawing::rectangle_f &rect) noexcept -> void |
| Updates this xtd::drawing::region to the union of itself and the specified xtd::drawing::rectangle_f structure. | |
| auto | make_union (const xtd::drawing::region ®ion) noexcept -> void |
| Updates this xtd::drawing::region to the union of itself and the specified xtd::drawing::region. | |
| auto | make_xor (const xtd::drawing::drawing_2d::graphics_path &path) noexcept -> void |
| Updates this xtd::drawing::region to the union minus the intersection of itself with the specified xtd::drawing::graphics_path. | |
| auto | make_xor (const xtd::drawing::rectangle &rect) noexcept -> void |
| Updates this xtd::drawing::region to the union minus the intersection of itself with the specified xtd::drawing::rectangle structure. | |
| auto | make_xor (const xtd::drawing::rectangle_f &rect) noexcept -> void |
| Updates this xtd::drawing::region to the union minus the intersection of itself with the specified xtd::drawing::rectangle_f structure. | |
| auto | make_xor (const xtd::drawing::region ®ion) noexcept -> void |
| Updates this xtd::drawing::region to the union minus the intersection of itself with the specified xtd::drawing::region. | |
| auto | release_hrgn (xtd::intptr region_handle) -> void |
| Releases the handle of the xtd::drawing::region. | |
| auto | translate (xtd::int32 dx, xtd::int32 dy) noexcept -> void |
| Offsets the coordinates of this xtd::drawing::region by the specified amount. | |
| auto | translate (float dx, float dy) noexcept -> void |
| Offsets the coordinates of this xtd::drawing::region by the specified amount. | |
Public Static Methods | |
| static auto | equals (const region ®ion, const xtd::drawing::graphics &g) noexcept -> bool |
| Tests whether the specified Region is identical to this xtd::drawing::region on the specified drawing surface. | |
| static auto | from_hrgn (xtd::intptr hrgn) -> xtd::drawing::region |
| Initializes a new xtd::drawing::region from a handle to the specified existing GDI region. | |
Additional Inherited Members | |
| object ()=default | |
| Create a new instance of the ultimate base class object. | |
| virtual auto | get_type () const noexcept -> type_object |
| Gets the type of the current instance. | |
| template<typename object_t> | |
| auto | memberwise_clone () const -> xtd::unique_ptr_object< object_t > |
| Creates a shallow copy of the current object. | |
| virtual auto | to_string () const -> xtd::string |
| Returns a xtd::string that represents the current object. | |
| virtual auto | equals (const region &) const noexcept -> bool=0 |
| Indicates whether the current object is equal to another object of the same type. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are considered equal. | |
| template<typename object_a_t, typename object_b_t> | |
| static auto | reference_equals (const object_a_t &object_a, const object_b_t &object_b) noexcept -> bool |
| Determines whether the specified object instances are the same instance. | |
| xtd::drawing::region::region | ( | ) |
Initializes a new xtd::drawing::region.
|
explicit |
Initializes a new xtd::drawing::region with the specified xtd::drawing::graphics_path.
| path | A xtd::drawing::graphics_path that defines the new xtd::drawing::region. |
|
explicit |
Initializes a new xtd::drawing::region from the specified xtd::drawing::rectangle structure.
| rect | A xtd::drawing::rectangle structure that defines the interior of the new xtd::drawing::region. |
|
explicit |
Initializes a new xtd::drawing::region from the specified xtd::drawing::rectangle_f structure.
| rect | A xtd::drawing::rectangle_f structure that defines the interior of the new xtd::drawing::region. |
|
nodiscardnoexcept |
Gets the handle of the region.
|
noexcept |
Updates this xtd::drawing::region to contain the portion of the specified xtd::drawing::graphics_path that does not intersect with this xtd::drawing::region.
| path | The xtd::drawing::graphics_path to complement this xtd::drawing::region. |
|
noexcept |
Updates this xtd::drawing::region to contain the portion of the specified xtd::drawing::rectangle structure that does not intersect with this xtd::drawing::region.
| rect | The xtd::drawing::rectangle structure to complement this xtd::drawing::region. |
|
noexcept |
Updates this xtd::drawing::region to contain the portion of the specified xtd::drawing::rectangle_f structure that does not intersect with this xtd::drawing::region.
| rect | The xtd::drawing::rectangle_f structure to complement this xtd::drawing::region. |
|
noexcept |
Updates this xtd::drawing::region to contain the portion of the specified xtd::drawing::region that does not intersect with this xtd::drawing::region.
| region | The xtd::drawing::region object to complement this xtd::drawing::region object. |
|
nodiscardoverridevirtualnoexcept |
Determines whether the specified object is equal to the current object.
| obj | The object to compare with the current object. |
Reimplemented from xtd::object.
|
nodiscardoverridenoexcept |
Determines whether the specified object is equal to the current object.
| other | The object to compare with the current object. |
|
nodiscardoverridevirtualnoexcept |
Serves as a hash function for a particular type.
Reimplemented from xtd::object.
|
noexcept |
Updates this xtd::drawing::region to contain only the portion of its interior that does not intersect with the specified xtd::drawing::graphics_path.
| path | The xtd::drawing::graphics_path to exclude from this xtd::drawing::region. |
|
noexcept |
Updates this xtd::drawing::region to contain only the portion of its interior that does not intersect with the specified xtd::drawing::rectangle structure.
| rect | The xtd::drawing::rectangle structure to exclude from this xtd::drawing::region. |
|
noexcept |
The xtd::drawing::rectangle_f structure to exclude from this xtd::drawing::region.
|
noexcept |
Updates this xtd::drawing::region to contain only the portion of its interior that does not intersect with the specified xtd::drawing::region.
| region | The xtd::drawing::region to exclude from this xtd::drawing::region. |
|
nodiscardnoexcept |
Gets a xtd::drawing::rectangle_f structure that represents a rectangle that bounds this xtd::drawing::region on the drawing surface of a xtd::drawing::graphics object.
| g | The xtd::drawing::graphics on which this xtd::drawing::region is drawn. |
|
nodiscardnoexcept |
Gets a xtd::drawing::rectangle_f structure that represents a rectangle that bounds this xtd::drawing::region on the drawing surface of a xtd::drawing::graphics object.
| g | The xtd::drawing::graphics on which this xtd::drawing::region is drawn. |
|
nodiscardnoexcept |
Returns a Windows handle to this xtd::drawing::region in the specified graphics context.
| g | The xtd::drawing::graphics on which this xtd::drawing::region is drawn. |
|
noexcept |
Updates this xtd::drawing::region to the intersection of itself with the specified xtd::drawing::graphics_path.
| path | The xtd::drawing::graphics_path to intersect with this xtd::drawing::region. |
|
noexcept |
Updates this xtd::drawing::region to the intersection of itself with the specified xtd::drawing::rectangle structure.
| The | xtd::drawing::rectangle structure to intersect with this xtd::drawing::region. |
|
noexcept |
Updates this xtd::drawing::region to the intersection of itself with the specified xtd::drawing::rectangle_f structure.
| rect | The xtd::drawing::rectangle_f structure to intersect with this xtd::drawing::region. |
|
noexcept |
Updates this xtd::drawing::region to the intersection of itself with the specified xtd::drawing::region.
| region | The xtd::drawing::region to intersect with this xtd::drawing::region. |
|
nodiscardnoexcept |
Tests whether this xtd::drawing::region has an empty interior.
|
nodiscardnoexcept |
Tests whether this xtd::drawing::region has an empty interior on the specified drawing surface.
| g | A xtd::drawing::graphics that represents a drawing surface. |
|
nodiscardnoexcept |
Tests whether this xtd::drawing::region has an infinite interior.
|
nodiscardnoexcept |
Tests whether this xtd::drawing::region has an infinite interior on the specified drawing surface.
| g | A xtd::drawing::graphics that represents a drawing surface. |
|
nodiscardnoexcept |
Tests whether any portion of the specified xtd::drawing::rectangle_f structure is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics.
| rect | The xtd::drawing::rectangle_f structure to test. |
| g | A xtd::drawing::graphics that represents a graphics context. |
|
nodiscardnoexcept |
Tests whether any portion of the specified rectangle is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics.
| 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. |
| g | A xtd::drawing::graphics that represents a graphics context. |
|
nodiscardnoexcept |
Tests whether any portion of the specified xtd::drawing::rectangle structure is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics.
| rect | The xtd::drawing::rectangle structure to test. |
| g | A xtd::drawing::graphics that represents a graphics context. |
|
nodiscardnoexcept |
Tests whether any portion of the specified rectangle is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics.
| 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. |
| g | A xtd::drawing::graphics that represents a graphics context. |
|
nodiscardnoexcept |
Tests whether any portion of the specified xtd::drawing::rectangle_f structure is contained within this xtd::drawing::region.
| rect | The xtd::drawing::rectangle_f structure to test. |
|
nodiscardnoexcept |
Tests whether any portion of the specified rectangle is contained within this xtd::drawing::region.
| 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. |
|
nodiscardnoexcept |
Tests whether any portion of the specified xtd::drawing::rectangle structure is contained within this xtd::drawing::region.
| rect | The xtd::drawing::rectangle structure to test. |
|
nodiscardnoexcept |
Tests whether any portion of the specified rectangle is contained within this xtd::drawing::region.
| 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. |
|
nodiscardnoexcept |
Tests whether the specified PointF structure is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics.
| pt | The PointF structure to test. |
| g | A xtd::drawing::graphics that represents a graphics context. |
|
nodiscardnoexcept |
Tests whether the specified point is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics.
| x | The x-coordinate of the point to test. |
| y | The y-coordinate of the point to test. |
| g | A xtd::drawing::graphics that represents a graphics context. |
|
nodiscardnoexcept |
Tests whether the specified Point structure is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics.
| pt | The Point structure to test. |
| g | A xtd::drawing::graphics that represents a graphics context. |
|
nodiscardnoexcept |
Tests whether the specified point is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics.
| x | The x-coordinate of the point to test. |
| y | The y-coordinate of the point to test. |
| g | A xtd::drawing::graphics that represents a graphics context. |
|
nodiscardnoexcept |
Tests whether the specified PointF structure is contained within this xtd::drawing::region.
| pt | The PointF structure to test. |
|
nodiscardnoexcept |
Tests whether the specified point is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics.
| x | The x-coordinate of the point to test. |
| y | The y-coordinate of the point to test. |
|
nodiscardnoexcept |
Tests whether the specified Point structure is contained within this xtd::drawing::region.
| pt | The Point structure to test. |
|
nodiscardnoexcept |
Tests whether the specified point is contained within this xtd::drawing::region when drawn using the specified xtd::drawing::graphics.
| x | The x-coordinate of the point to test. |
| y | The y-coordinate of the point to test. |
| auto xtd::drawing::region::make_empty | ( | ) | -> void |
Initializes this xtd::drawing::region to an empty interior.
|
noexcept |
Initializes this xtd::drawing::region object to an infinite interior.
|
noexcept |
Updates this xtd::drawing::region to the union of itself and the specified xtd::drawing::graphics_path.
| path | The xtd::drawing::graphics_path to unite with this xtd::drawing::region. |
|
noexcept |
Updates this xtd::drawing::region to the union of itself and the specified xtd::drawing::rectangle structure.
| rect | The xtd::drawing::rectangle structure to unite with this xtd::drawing::region. |
|
noexcept |
Updates this xtd::drawing::region to the union of itself and the specified xtd::drawing::rectangle_f structure.
| rect | The xtd::drawing::rectangle_f structure to unite with this xtd::drawing::region. |
|
noexcept |
Updates this xtd::drawing::region to the union of itself and the specified xtd::drawing::region.
| region | The xtd::drawing::region to unite with this xtd::drawing::region. |
|
noexcept |
Updates this xtd::drawing::region to the union minus the intersection of itself with the specified xtd::drawing::graphics_path.
| path | The xtd::drawing::graphics_path to Xor with this xtd::drawing::region. |
|
noexcept |
Updates this xtd::drawing::region to the union minus the intersection of itself with the specified xtd::drawing::rectangle structure.
| path | The xtd::drawing::rectangle structure to Xor with this xtd::drawing::region. |
|
noexcept |
Updates this xtd::drawing::region to the union minus the intersection of itself with the specified xtd::drawing::rectangle_f structure.
| path | The xtd::drawing::rectangle_f structure to Xor with this xtd::drawing::region. |
|
noexcept |
Updates this xtd::drawing::region to the union minus the intersection of itself with the specified xtd::drawing::region.
| path | The xtd::drawing::region to Xor with this xtd::drawing::region. |
| auto xtd::drawing::region::release_hrgn | ( | xtd::intptr | region_handle | ) | -> void |
Releases the handle of the xtd::drawing::region.
| region_handle | The handle to the xtd::drawing::region. |
|
noexcept |
Offsets the coordinates of this xtd::drawing::region by the specified amount.
| dx | The amount to offset this xtd::drawing::region horizontally. |
| dy | The amount to offset this xtd::drawing::region vertically. |
|
noexcept |
Offsets the coordinates of this xtd::drawing::region by the specified amount.
| dx | The amount to offset this xtd::drawing::region horizontally. |
| dy | The amount to offset this xtd::drawing::region vertically. |
|
staticnodiscardnoexcept |
Tests whether the specified Region is identical to this xtd::drawing::region on the specified drawing surface.
| region | The Region to test. |
| g | A xtd::drawing::graphics that represents a drawing surface. |
|
staticnodiscard |
Initializes a new xtd::drawing::region from a handle to the specified existing GDI region.
| hrgn | A handle to an existing xtd::drawing::region. |