Inherits System::Object.
Public Member Functions | |
ASPOSECPP_SHARED_API | Pen (const Color &color) |
ASPOSECPP_SHARED_API | Pen (const Color &color, float width) |
ASPOSECPP_SHARED_API | Pen (const SharedPtr< Brush > &brush) |
ASPOSECPP_SHARED_API | Pen (const SharedPtr< Brush > &brush, float width) |
ASPOSECPP_SHARED_API Drawing2D::PenAlignment | get_Alignment () const |
Returns a value that indicates the alignment of the current Pen object. More... | |
ASPOSECPP_SHARED_API void | set_Alignment (Drawing2D::PenAlignment value) |
ASPOSECPP_SHARED_API float | get_Width () const |
Returns the width of the current Pen object. More... | |
ASPOSECPP_SHARED_API void | set_Width (float value) |
ASPOSECPP_SHARED_API Drawing2D::LineCap | get_StartCap () const |
Returns a value that indicates the starting line cap of the current Pen object. More... | |
ASPOSECPP_SHARED_API void | set_StartCap (Drawing2D::LineCap value) |
ASPOSECPP_SHARED_API Drawing2D::LineCap | get_EndCap () const |
Returns a value that indicates the ending line cap of the current Pen object. More... | |
ASPOSECPP_SHARED_API void | set_EndCap (Drawing2D::LineCap value) |
ASPOSECPP_SHARED_API Drawing2D::LineJoin | get_LineJoin () const |
Returns a value that indicates how the lines drawn by this Pen object are joined. More... | |
ASPOSECPP_SHARED_API void | set_LineJoin (Drawing2D::LineJoin value) |
ASPOSECPP_SHARED_API float | get_MiterLimit () const |
Returns the limit of the thickness of the join on a mitered corner. More... | |
ASPOSECPP_SHARED_API void | set_MiterLimit (float value) |
ASPOSECPP_SHARED_API float | get_DashOffset () const |
Returns the distance from the start of a line to the beginning of a dash pattern. More... | |
ASPOSECPP_SHARED_API void | set_DashOffset (float value) |
ASPOSECPP_SHARED_API Drawing2D::DashCap | get_DashCap () const |
Returns a value that indicates the cap used at the both ends of a dashed line. More... | |
ASPOSECPP_SHARED_API void | set_DashCap (Drawing2D::DashCap value) |
ASPOSECPP_SHARED_API Drawing2D::DashStyle | get_DashStyle () const |
Returns a value that indicates the dash style of the current Pen object. More... | |
ASPOSECPP_SHARED_API void | set_DashStyle (Drawing2D::DashStyle value) |
ASPOSECPP_SHARED_API System::ArrayPtr< float > | get_DashPattern () const |
Returns an array indicating custom dash pattern in a dashed line. More... | |
ASPOSECPP_SHARED_API void | set_DashPattern (const System::ArrayPtr< float > &value) |
ASPOSECPP_SHARED_API System::ArrayPtr< float > | get_CompoundArray () const |
Returns an array of values that specifies a compound pen. More... | |
ASPOSECPP_SHARED_API void | set_CompoundArray (const System::ArrayPtr< float > &value) |
ASPOSECPP_SHARED_API SharedPtr< Drawing2D::Matrix > | get_Transform () |
ASPOSECPP_SHARED_API void | set_Transform (const SharedPtr< Drawing2D::Matrix > &value) |
ASPOSECPP_SHARED_API void | set_CustomStartCap (const SharedPtr< Drawing2D::CustomLineCap > &value) |
ASPOSECPP_SHARED_API void | set_CustomEndCap (const SharedPtr< Drawing2D::CustomLineCap > &value) |
ASPOSECPP_SHARED_API void | set_Brush (const SharedPtr< Brush > &brush) |
ASPOSECPP_SHARED_API SharedPtr< Brush > | get_Brush () |
Returns this pen's Brush object. More... | |
ASPOSECPP_SHARED_API void | set_Color (const Color &color) |
ASPOSECPP_SHARED_API Color | get_Color () const |
Returns this pen's color. More... | |
ASPOSECPP_SHARED_API SharedPtr< Pen > | Clone () |
Returns a copy of the current object. More... | |
ASPOSECPP_SHARED_API void | ResetTransform () |
Resets the current object's transform matrix so that it becomes an identity matrix. More... | |
ASPOSECPP_SHARED_API void | MultiplyTransform (const SharedPtr< Drawing2D::Matrix > &matrix, Drawing2D::MatrixOrder order=Drawing2D::MatrixOrder::Prepend) |
ASPOSECPP_SHARED_API void | RotateTransform (float angle, Drawing2D::MatrixOrder order=Drawing2D::MatrixOrder::Prepend) |
ASPOSECPP_SHARED_API void | ScaleTransform (float sx, float sy, Drawing2D::MatrixOrder order=Drawing2D::MatrixOrder::Prepend) |
ASPOSECPP_SHARED_API void | TranslateTransform (float dx, float dy, Drawing2D::MatrixOrder order=Drawing2D::MatrixOrder::Prepend) |
ASPOSECPP_SHARED_API void | SetLineCap (Drawing2D::LineCap startCap, Drawing2D::LineCap endCap, Drawing2D::DashCap dashCap) |
ASPOSECPP_SHARED_API Drawing2D::PenType | get_PenType () const |
void | Dispose () |
Releases all operating resources acquired by the current object. More... | |
Public Member Functions inherited from System::Object | |
ASPOSECPP_SHARED_API | Object () |
Creates object. Initializes all internal data structures. More... | |
virtual ASPOSECPP_SHARED_API | ~Object () |
Destroys object. Frees all internal data structures. More... | |
ASPOSECPP_SHARED_API | 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... | |
ASPOSECPP_SHARED_API void | Lock () |
Implements C# lock() statement locking. Call directly or use LockContext sentry object. More... | |
ASPOSECPP_SHARED_API void | Unlock () |
Implements C# lock() statement unlocking. Call directly or use LockContext sentry object. More... | |
virtual ASPOSECPP_SHARED_API bool | Equals (ptr obj) |
Compares objects using C# Object.Equals semantics. More... | |
virtual ASPOSECPP_SHARED_API int32_t | GetHashCode () const |
Analog of C# Object.GetHashCode() method. Enables hashing of custom objects. More... | |
virtual ASPOSECPP_SHARED_API String | ToString () const |
Analog of C# Object.ToString() method. Enables converting custom objects to string. More... | |
virtual ASPOSECPP_SHARED_API ptr | MemberwiseClone () const |
Analog of C# Object.MemberwiseClone() method. Enables cloning custom types. More... | |
virtual ASPOSECPP_SHARED_API const TypeInfo & | GetType () const |
Gets actual type of object. Analog of C# System.Object.GetType() call. More... | |
virtual ASPOSECPP_SHARED_API bool | Is (const TypeInfo &targetType) const |
Check if object represents an instance of type described by targetType. Analog of C# 'is' operator. More... | |
virtual ASPOSECPP_SHARED_API 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 ASPOSECPP_SHARED_API bool | FastCast (const Details::FastRttiBase &helper, void **out_ptr) const |
For internal purposes only. More... | |
template<> | |
bool | Equals (float const &objA, float const &objB) |
template<> | |
bool | Equals (double const &objA, double const &objB) |
template<> | |
bool | ReferenceEquals (String const &str, std::nullptr_t) |
template<> | |
bool | ReferenceEquals (String const &str1, String const &str2) |
Protected Member Functions | |
virtual ASPOSECPP_SHARED_API void | Apply (SkPaint &paint, const SharedPtr< Drawing2D::Matrix > &matrix, bool antialiased=false, bool is_closed_path=false) |
Additional Inherited Members | |
Public Types inherited from System::Object | |
typedef SmartPtr< Object > | ptr |
Alias for smart pointer type. More... | |
Static Public Member Functions inherited from System::Object | |
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... | |
Represents properties such as color, width etc. of the lines and curves being drawn. 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.
ASPOSECPP_SHARED_API System::Drawing::Pen::Pen | ( | const Color & | color | ) |
Constructs a new Pen object representing the specified color.
color | The color of the pen represented by the object being constructed |
ASPOSECPP_SHARED_API System::Drawing::Pen::Pen | ( | const Color & | color, |
float | width | ||
) |
Constructs a new Pen object representing the specified color and width.
color | The color of the pen represented by the object being constructed |
width | The width of the pen represented by the object being constructed |
|
protectedvirtual |
Sets the properties of the current pen on the specified SkPaint object.
paint | An object set the properties on |
matrix | Graphics world transformation matrix |
antialiased | Specifies if 'antialiased' property should be set on the specified SkPaint object. |
is_closed_path | The flag specifies that the path is closed. |
Returns a copy of the current object.
|
inline |
Releases all operating resources acquired by the current object.
ASPOSECPP_SHARED_API Drawing2D::PenAlignment System::Drawing::Pen::get_Alignment | ( | ) | const |
Returns a value that indicates the alignment of the current Pen object.
Returns this pen's Brush object.
ASPOSECPP_SHARED_API Color System::Drawing::Pen::get_Color | ( | ) | const |
Returns this pen's color.
ASPOSECPP_SHARED_API System::ArrayPtr<float> System::Drawing::Pen::get_CompoundArray | ( | ) | const |
Returns an array of values that specifies a compound pen.
ASPOSECPP_SHARED_API Drawing2D::DashCap System::Drawing::Pen::get_DashCap | ( | ) | const |
Returns a value that indicates the cap used at the both ends of a dashed line.
ASPOSECPP_SHARED_API float System::Drawing::Pen::get_DashOffset | ( | ) | const |
Returns the distance from the start of a line to the beginning of a dash pattern.
ASPOSECPP_SHARED_API System::ArrayPtr<float> System::Drawing::Pen::get_DashPattern | ( | ) | const |
Returns an array indicating custom dash pattern in a dashed line.
ASPOSECPP_SHARED_API Drawing2D::DashStyle System::Drawing::Pen::get_DashStyle | ( | ) | const |
Returns a value that indicates the dash style of the current Pen object.
ASPOSECPP_SHARED_API Drawing2D::LineCap System::Drawing::Pen::get_EndCap | ( | ) | const |
Returns a value that indicates the ending line cap of the current Pen object.
ASPOSECPP_SHARED_API Drawing2D::LineJoin System::Drawing::Pen::get_LineJoin | ( | ) | const |
Returns a value that indicates how the lines drawn by this Pen object are joined.
ASPOSECPP_SHARED_API float System::Drawing::Pen::get_MiterLimit | ( | ) | const |
Returns the limit of the thickness of the join on a mitered corner.
ASPOSECPP_SHARED_API Drawing2D::PenType System::Drawing::Pen::get_PenType | ( | ) | const |
NOT IMPLEMENTED.
NotImplementedException | Always |
ASPOSECPP_SHARED_API Drawing2D::LineCap System::Drawing::Pen::get_StartCap | ( | ) | const |
Returns a value that indicates the starting line cap of the current Pen object.
ASPOSECPP_SHARED_API SharedPtr<Drawing2D::Matrix> System::Drawing::Pen::get_Transform | ( | ) |
Returns a copy of a Matrix object that specifies the geometrical transformations for the pen represneted by the current object.
ASPOSECPP_SHARED_API float System::Drawing::Pen::get_Width | ( | ) | const |
Returns the width of the current Pen object.
ASPOSECPP_SHARED_API void System::Drawing::Pen::MultiplyTransform | ( | const SharedPtr< Drawing2D::Matrix > & | matrix, |
Drawing2D::MatrixOrder | order = Drawing2D::MatrixOrder::Prepend |
||
) |
Multiplies current object's transform matrix by the specified matrix.
matrix | The matrix by which the current object's transform matrix is multiplied |
order | Specifies the order of the operation |
ASPOSECPP_SHARED_API void System::Drawing::Pen::ResetTransform | ( | ) |
Resets the current object's transform matrix so that it becomes an identity matrix.
ASPOSECPP_SHARED_API void System::Drawing::Pen::RotateTransform | ( | float | angle, |
Drawing2D::MatrixOrder | order = Drawing2D::MatrixOrder::Prepend |
||
) |
Rotates the local geometric transformation by the specified angle in the specified order.
angle | The rotation angle |
order | Specifies the order of the operation |
ASPOSECPP_SHARED_API void System::Drawing::Pen::ScaleTransform | ( | float | sx, |
float | sy, | ||
Drawing2D::MatrixOrder | order = Drawing2D::MatrixOrder::Prepend |
||
) |
Scales the local geometric transformation by the specified factors in the specified order.
sx | Scale factor by which to perform scaling in in X-axis direction |
sy | Scale factor by which to perform scaling in in Y-axis direction |
order | Specifies the order of the operation |
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_Alignment | ( | Drawing2D::PenAlignment | value | ) |
Sets the alignment of the current Pen object.
value | The value to set |
Sets this pen's Brush object.
brush | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_Color | ( | const Color & | color | ) |
Sets this pen's color.
color | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_CompoundArray | ( | const System::ArrayPtr< float > & | value | ) |
Sets an array of values that specifies a compound pen.
value | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_CustomEndCap | ( | const SharedPtr< Drawing2D::CustomLineCap > & | value | ) |
Sets the custom end line cap.
value | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_CustomStartCap | ( | const SharedPtr< Drawing2D::CustomLineCap > & | value | ) |
Sets the custom start line cap.
value | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_DashCap | ( | Drawing2D::DashCap | value | ) |
Sets a value that specifies the cap used at the both ends of a dashed line.
value | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_DashOffset | ( | float | value | ) |
Sets the distance from the start of a line to the beginning of a dash pattern.
value | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_DashPattern | ( | const System::ArrayPtr< float > & | value | ) |
Sets an array specifying custom dash pattern in a dashed line. The array consists of numbers that specify the lengths of alternating dashes and spaces.
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_DashStyle | ( | Drawing2D::DashStyle | value | ) |
Sets a value that specifies the dash style of the current Pen object.
value | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_EndCap | ( | Drawing2D::LineCap | value | ) |
Sets the ending line cap of the current Pen object.
value | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_LineJoin | ( | Drawing2D::LineJoin | value | ) |
Sets a value that specifies how the lines drawn by this Pen object are joined.
value | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_MiterLimit | ( | float | value | ) |
Sets the limit of the thickness of the join on a mitered corner.
value | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_StartCap | ( | Drawing2D::LineCap | value | ) |
Sets the starting line cap of the current Pen object.
value | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_Transform | ( | const SharedPtr< Drawing2D::Matrix > & | value | ) |
Sets a Matrix object that specifies the geometrical transformations for the pen represneted by the current object.
value | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Pen::set_Width | ( | float | value | ) |
Sets the width of the current Pen object.
value | The value to set |
ASPOSECPP_SHARED_API void System::Drawing::Pen::SetLineCap | ( | Drawing2D::LineCap | startCap, |
Drawing2D::LineCap | endCap, | ||
Drawing2D::DashCap | dashCap | ||
) |
NOT IMPLEMENTED.
NotImplementedException | Always |
ASPOSECPP_SHARED_API void System::Drawing::Pen::TranslateTransform | ( | float | dx, |
float | dy, | ||
Drawing2D::MatrixOrder | order = Drawing2D::MatrixOrder::Prepend |
||
) |
Translates the local geometric transformation by the specified dimensions in the specified order.
dx | The value of translation in x |
dy | The value of translation in y |
order | Specifies the order of the operation |