xtd - Reference Guide
0.1.1
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
|
#include <pen.h>
Defines an object used to draw lines and curves. This class cannot be inherited.
Inherits xtd::object.
Public Member Functions | |
pen () | |
Initializes a new instance of the xtd::drawing::pen class. More... | |
pen (const xtd::drawing::brush &brush) | |
Initializes a new instance of the xtd::drawing::pen class with the specified xtd::drawing::brush. More... | |
pen (const xtd::drawing::brush &brush, float width) | |
Initializes a new instance of the xtd::drawing::pen class with the specified xtd::drawing::brush. More... | |
pen (const xtd::drawing::color &color) | |
Initializes a new instance of the xtd::drawing::pen class with the specified xtd::drawing::color. More... | |
pen (const xtd::drawing::color &color, float width) | |
Initializes a new instance of the xtd::drawing::pen class with the specified xtd::drawing::color. More... | |
xtd::drawing::drawing2d::pen_alignment | alignment () const |
Gets the alignment for this xtd::drawing::pen. More... | |
xtd::drawing::pen & | alignment (xtd::drawing::drawing2d::pen_alignment alignment) |
Sets the alignment for this xtd::drawing::pen. More... | |
std::unique_ptr< xtd::drawing::brush > | brush () const |
xtd::drawing::pen & | brush (const xtd::drawing::brush &brush) |
const xtd::drawing::color & | color () const |
xtd::drawing::pen & | color (const xtd::drawing::color &color) |
std::vector< float > | dash_pattern () const |
xtd::drawing::pen & | dash_pattern (const std::initializer_list< float > &il) |
xtd::drawing::pen & | dash_pattern (const std::vector< float > &dash_pattern) |
xtd::drawing::dash_style | dash_style () const |
xtd::drawing::pen & | dash_style (drawing::dash_style dash_style) |
xtd::ustring | to_string () const noexcept override |
Returns a std::string that represents the current object. More... | |
xtd::drawing::drawing2d::pen_type | type () const |
xtd::drawing::pen & | type (xtd::drawing::drawing2d::pen_type type) |
float | width () const |
xtd::drawing::pen & | width (float width) |
Public Member Functions inherited from xtd::object | |
object ()=default | |
Create a new instance of the ultimate base class object. More... | |
virtual bool | equals (const object &obj) const noexcept |
Determines whether the specified object is equal to the current object. More... | |
virtual size_t | get_hash_code () const noexcept |
Serves as a hash function for a particular type. More... | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const |
Gets the type of the current instance. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from xtd::object | |
static bool | equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are considered equal. More... | |
static bool | reference_equals (const object &object_a, const object &object_b) noexcept |
Determines whether the specified object instances are the same instance. More... | |
xtd::drawing::pen::pen | ( | ) |
Initializes a new instance of the xtd::drawing::pen class.
xtd::drawing::pen::pen | ( | const xtd::drawing::brush & | brush | ) |
Initializes a new instance of the xtd::drawing::pen class with the specified xtd::drawing::brush.
brush | A xtd::drawing::brush that determines the fill properties of this xtd::drawing::pen. |
xtd::drawing::pen::pen | ( | const xtd::drawing::brush & | brush, |
float | width | ||
) |
Initializes a new instance of the xtd::drawing::pen class with the specified xtd::drawing::brush.
brush | A xtd::drawing::brush that determines the fill properties of this xtd::drawing::pen. |
width | A single number that represent the pen width. |
xtd::drawing::pen::pen | ( | const xtd::drawing::color & | color | ) |
Initializes a new instance of the xtd::drawing::pen class with the specified xtd::drawing::color.
color | A xtd::drawing::color structure that indicates the color of this xtd::drawing::pen. |
xtd::drawing::pen::pen | ( | const xtd::drawing::color & | color, |
float | width | ||
) |
Initializes a new instance of the xtd::drawing::pen class with the specified xtd::drawing::color.
color | A xtd::drawing::color structure that indicates the color of this xtd::drawing::pen. |
width | A single number that represent the pen width. |
|
inline |
Gets the alignment for this xtd::drawing::pen.
xtd::drawing::pen& xtd::drawing::pen::alignment | ( | xtd::drawing::drawing2d::pen_alignment | alignment | ) |
Sets the alignment for this xtd::drawing::pen.
alignment | A xtd::drawing2d::pen_alignment that represents the alignment for this xtd::drawing::pen. |
|
inlineoverridevirtualnoexcept |
Returns a std::string that represents the current object.
Reimplemented from xtd::object.