Represents the interior of a graphic shape. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.
More...
|
| Region () |
| Constructs a new instance of Region class. More...
|
|
| Region (const RectangleF &rect) |
| Constructs a new instance of Region class that represents a region defined by the specified rectangle. More...
|
|
| Region (const Rectangle &rect) |
| Constructs a new instance of Region class that represents a region defined by the specified rectangle. More...
|
|
| Region (const SharedPtr< Drawing2D::GraphicsPath > &path) |
| Constructs a new instance of Region class that represents a region defined by the specified path. More...
|
|
| Region (const SkPath &path) |
|
| Region (const SharedPtr< Drawing2D::RegionData > ®ion_data) |
| Constructs a new instance of Region class that represents a region defined by the specified RegionData object. More...
|
|
virtual | ~Region () |
| Destructor. More...
|
|
ArrayPtr< RectangleF > | GetRegionScans (const SharedPtr< Drawing2D::Matrix > &matrix) const |
| Returns an array of RectangleF structures that approximate this Region after the specified matrix transformation is applied. More...
|
|
RectangleF | GetBounds (const SharedPtr< Graphics > &graphics) const |
| Gets a RectangleF structure that represents a rectangle that bounds this Region on the drawing surface of a Graphics object. More...
|
|
void | Union (const RectangleF &rect) |
| Replaces the region represented by the current object with the result of union operation of this region and a region defined by the specified rectangle. More...
|
|
void | Union (const Rectangle &rect) |
| Replaces the region represented by the current object with the result of union of this region and a region defined by the specified rectangle. More...
|
|
void | Union (const SharedPtr< Drawing2D::GraphicsPath > &path) |
| Replaces the region represented by the current object with the result of union of this region and a region defined by the specified path. More...
|
|
void | Union (const SharedPtr< Region > ®ion) |
| Replaces the region represented by the current object with the result of union of this region and and the specified region. More...
|
|
SharedPtr< Region > | Clone () const |
| Returns a copy of the current object. More...
|
|
void | Intersect (const RectangleF &rect) |
| Replaces the region represented by the current object with the result of intersection of this region and a region defined by the specified rectangle. More...
|
|
void | Intersect (const Rectangle &rect) |
| Replaces the region represented by the current object with the result of intersection of this region and a region defined by the specified rectangle. More...
|
|
void | Intersect (const SharedPtr< Drawing2D::GraphicsPath > &path) |
| Replaces the region represented by the current object with the result of intersection of this region and a region defined by the specified path. More...
|
|
void | Intersect (const SharedPtr< Region > ®ion) |
| Replaces the region represented by the current object with the result of intersection of this region and the specified region. More...
|
|
void | Exclude (const RectangleF &rect) |
| Replaces the region represented by the current object with the result of exclusion of the region defined by the specified rectange from it. More...
|
|
void | Exclude (const Rectangle &rect) |
| Replaces the region represented by the current object with the result of exclusion of the region defined by the specified rectange from it. More...
|
|
void | Exclude (const SharedPtr< Drawing2D::GraphicsPath > &path) |
| Replaces the region represented by the current object with the result of exclusion of the region defined by the specified path from it. More...
|
|
void | Exclude (const SharedPtr< Region > ®ion) |
| Replaces the region represented by the current object with the result of exclusion of the specified region from it. More...
|
|
void | Translate (int dx, int dy) |
| Moves the coordinates of the region by the specified amount. More...
|
|
void | Translate (float dx, float dy) |
| Moves the coordinates of the region by the specified amount. More...
|
|
void | Transform (const SharedPtr< Drawing2D::Matrix > &matrix) |
| Transforms this region by the specified matrix. More...
|
|
void | Transform (const SkMatrix &matrix) |
| Transforms this region by the specified matrix. More...
|
|
void | Complement (const RectangleF &rect) |
| Replaces the region represented by the current object with the portion of the region defined by the specified recangle that does not intersect with this region. More...
|
|
void | Complement (const Rectangle &rect) |
| Replaces the region represented by the current object with the portion of the region defined by the specified recangle that does not intersect with this region. More...
|
|
void | Complement (const SharedPtr< Drawing2D::GraphicsPath > &path) |
| Replaces the region represented by the current object with the portion of the region defined by the specified path that does not intersect with this region. More...
|
|
void | Complement (const SharedPtr< Region > ®ion) |
| Replaces the region represented by the current object with the portion of the specified region that does not intersect with this region. More...
|
|
void | Xor (const RectangleF &rect) |
| Replaces the region represented by the current object with the portions of this region and the region defined by the specified recangle that do not intersect. More...
|
|
void | Xor (const Rectangle &rect) |
| Replaces the region represented by the current object with the portions of this region and the region defined by the specified recangle that do not intersect. More...
|
|
void | Xor (const SharedPtr< Drawing2D::GraphicsPath > &path) |
| Replaces the region represented by the current object with the portions of this region and the region defined by the specified path that do not intersect. More...
|
|
void | Xor (const SharedPtr< Region > ®ion) |
| Replaces the region represented by the current object with the portions of this region and the specified region that do not intersect. More...
|
|
bool | Equals (const SharedPtr< Region > &r, const SharedPtr< Graphics > &g) |
| Determines whether the specified region is identical to the region represented by the current object on the specified drawing surface. More...
|
|
bool | IsEmpty (const SharedPtr< Graphics > &g) const |
| Determines wheter the region represented by the current object has empty interior on the specified drawing surface. More...
|
|
bool | IsInfinite (const SharedPtr< Graphics > &g) const |
| Determines wheter the region represented by the current object has infinite interior on the specified drawing surface. More...
|
|
bool | IsVisible (const Point &point) const |
| Determines if the specified point is contained within the region represented by the current object. More...
|
|
bool | IsVisible (const PointF &point) const |
| Determines if the specified point is contained within the region represented by the current object. More...
|
|
bool | IsVisible (const Rectangle &rect) |
| Determines if any portion the specified rectangle is contained within the region represented by the current object. More...
|
|
bool | IsVisible (const RectangleF &rect) |
| Determines if any portion the specified rectangle is contained within the region represented by the current object. More...
|
|
bool | IsVisible (const Point &point, const SharedPtr< Graphics > &graphics) const |
| Determines if the specified point is contained within the region represented by the current object using the specified graphics. More...
|
|
bool | IsVisible (const PointF &point, const SharedPtr< Graphics > &graphics) const |
| Determines if the specified point is contained within the region represented by the current object using the specified graphics. More...
|
|
bool | IsVisible (const Rectangle &rect, const SharedPtr< Graphics > &graphics) |
| Determines if any portion the specified rectangle is contained within the region represented by the current object using the specified graphics. More...
|
|
bool | IsVisible (const RectangleF &rect, const SharedPtr< Graphics > &graphics) |
| Determines if any portion the specified rectangle is contained within the region represented by the current object using the specified graphics. More...
|
|
bool | IsVisible (float x, float y) const |
| Determines if the specified point is contained within the region represented by the current object. More...
|
|
bool | IsVisible (float x, float y, const SharedPtr< Graphics > &graphics) const |
| Determines if the specified point is contained within the region represented by the current object using the specified graphics. More...
|
|
void | Dispose () |
| Releases all operating system resources acquired by the current object. More...
|
|
void | MakeInfinite () |
| Initializes this region object to an infinite interior. More...
|
|
void | MakeEmpty () |
| Initializes the current object to empty interior. More...
|
|
SharedPtr< Drawing2D::RegionData > | GetRegionData () const |
| Returns a RegionData object containing data that defines the region represented by the current object. More...
|
|
| Object () |
| Creates object. Initializes all internal data structures. More...
|
|
virtual | ~Object () |
| Destroys object. Frees all internal data structures. More...
|
|
| Object (Object const &x) |
| Copy constructor. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
|
|
Object & | operator= (Object const &x) |
| Assignment operator. Doesn't copy anything, really, just initializes new object and enables copy constructing subclasses. More...
|
|
Object * | SharedRefAdded () |
| Increments shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
|
int | SharedRefRemovedSafe () |
| Decrements and returns shared reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
|
int | RemovedSharedRefs (int count) |
| Decreases shared reference count by specified value. More...
|
|
Detail::SmartPtrCounter * | WeakRefAdded () |
| Increments weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
|
void | WeakRefRemoved () |
| Decrements weak reference count. Shouldn't be called directly; instead, use smart pointers or ThisProtector. More...
|
|
Detail::SmartPtrCounter * | GetCounter () |
| Gets reference counter data structure associated with the object. More...
|
|
int | SharedCount () const |
| Gets current value of shared reference counter. More...
|
|
void | Lock () |
| Implements C# lock() statement locking. Call directly or use LockContext sentry object. More...
|
|
void | Unlock () |
| Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More...
|
|
virtual bool | Equals (ptr obj) |
| Compares objects using C# Object.Equals semantics. More...
|
|
virtual int32_t | GetHashCode () const |
| Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More...
|
|
virtual String | ToString () const |
| Analog of C# Object.ToString() method. Enables converting custom objects to string. More...
|
|
virtual ptr | MemberwiseClone () const |
| Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More...
|
|
virtual const TypeInfo & | GetType () const |
| Gets actual type of object. Analog of C# System.Object.GetType() call. More...
|
|
virtual bool | Is (const TypeInfo &targetType) const |
| Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More...
|
|
virtual void | SetTemplateWeakPtr (uint32_t argument) |
| Set n'th template argument a weak pointer (rather than shared). Allows switching pointers in containers to weak mode. More...
|
|
virtual bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
| For internal purposes only. More...
|
|
template<> |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
| Specialization of Object::ReferenceEquals for case of string and nullptr. More...
|
|
template<> |
bool | ReferenceEquals (String const &str1, String const &str2) |
| Specialization of Object::ReferenceEquals for case of strings. More...
|
|
|
typedef SmartPtr< Object > | ptr |
| Alias for smart pointer type. More...
|
|
static bool | ReferenceEquals (ptr const &objA, ptr const &objB) |
| Compares objects by reference. More...
|
|
template<typename T > |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, T const &objB) |
| Compares objects by reference. More...
|
|
template<typename T > |
static std::enable_if<!IsSmartPtr< T >::value, bool >::type | ReferenceEquals (T const &objA, std::nullptr_t) |
| Reference-compares value type object with nullptr. More...
|
|
template<typename T1 , typename T2 > |
static std::enable_if< IsSmartPtr< T1 >::value &&IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
| Compares reference type objects in C# style. More...
|
|
template<typename T1 , typename T2 > |
static std::enable_if<!IsSmartPtr< T1 >::value &&!IsSmartPtr< T2 >::value, bool >::type | Equals (T1 const &objA, T2 const &objB) |
| Compares value type objects in C# style. More...
|
|
static const TypeInfo & | Type () |
| Implements C# typeof(System.Object) construct. More...
|
|
template<> |
bool | Equals (float const &objA, float const &objB) |
| Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
|
|
template<> |
bool | Equals (double const &objA, double const &objB) |
| Emulates C#-style floating point comparison where two NaNs are considered equal even though according to IEC 60559:1989 NaN is not equal to any value, including NaN. More...
|
|
Represents the interior of a graphic shape. Objects of this class should only be allocated using System::MakeObject() function. Never create instance of this type on stack or using operator new, as it will result in runtime errors and/or assertion faults. Always wrap this class into System::SmartPtr pointer and use this pointer to pass it to functions as argument.