13#include <xtd/iequatable>
45 template<
class brush_t>
56 template<
class brush_t>
101 template<class brush_t>
210 bool equals(const
object& obj) const noexcept override;
227 void recreate_handle();
Contains xtd::drawing::brush class.
Provides methods for creating, manipulating, searching, and sorting arrays, thereby serving as the ba...
Definition array.hpp:61
Represents an ARGB (alpha, red, green, blue) color.
Definition color.hpp:46
static const xtd::drawing::color empty
Represents a color that is null.
Definition color.hpp:52
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition pen.hpp:32
xtd::drawing::drawing_2d::line_cap end_cap() const noexcept
Gets the cap style used at the end of lines drawn with this xtd::drawing::pen.
bool equals(const object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
float width() const noexcept
Gets the width of this xtd::drawing::pen, in units of the xtd::drawing::graphics object used for draw...
intptr handle() const noexcept
Gets the handle of the pen.
float miter_limit() const noexcept
Gets the limit of the thickness of the join on a mitered corner.
const xtd::uptr< xtd::drawing::brush > & brush() const noexcept
Gets the xtd::drawing::brush that determines attributes of this xtd::drawing::pen.
xtd::drawing::drawing_2d::pen_type type() const noexcept
Gets the style of lines drawn with this xtd::drawing::pen.
pen()
Initializes a new instance of the xtd::drawing::pen class with xtd::drawing::color::black and width o...
const xtd::drawing::color & color() const noexcept
Gets the color of this xtd::drawing::pen.
xtd::string to_string() const noexcept override
Returns a xtd::string that represents the current object.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
xtd::drawing::drawing_2d::line_join line_join() const noexcept
Gets the join style for the ends of two consecutive lines drawn with this xtd::drawing::pen.
xtd::drawing::drawing_2d::line_cap start_cap() const noexcept
Gets the cap style used at the beginning of lines drawn with this xtd::drawing::pen.
xtd::drawing::drawing_2d::dash_style dash_style() const noexcept
Gets the style used for dashed lines drawn with this xtd::drawing::pen.
pen(const brush_t &brush)
Initializes a new instance of the xtd::drawing::pen class with the specified xtd::drawing::brush.
Definition pen.hpp:46
pen(const brush_t &brush, float width)
Initializes a new instance of the xtd::drawing::pen class with the specified xtd::drawing::brush.
Definition pen.hpp:57
xtd::drawing::drawing_2d::pen_alignment alignment() const noexcept
Gets the alignment for this 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.
xtd::array< float > dash_pattern() const noexcept
Gets an array of custom dashes and spaces.
pen(const xtd::drawing::color &color)
Initializes a new instance of the xtd::drawing::pen class with the specified xtd::drawing::color.
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:44
xtd::unique_ptr_object< object_t > memberwise_clone() const
Creates a shallow copy of the current object.
Contains xtd::drawing::drawing_2d::dash_style enum class.
Contains xtd::drawing::color class.
Contains drawing_export_ keyword.
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
xtd::shared_ptr_object< type_t > sptr
The xtd::sptr object is a shared pointer.
Definition sptr.hpp:25
xtd::unique_ptr_object< type_t > uptr
The xtd::uptr object is a unique pointer.
Definition uptr.hpp:25
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
@ other
The operating system is other.
Definition platform_id.hpp:58
pen_alignment
Specifies the alignment of a xtd::drawing::pen object in relation to the theoretical,...
Definition pen_alignment.hpp:21
Contains xtd::drawing::drawing_2d::line_cap enum class.
Contains xtd::drawing::drawing_2d::line_join enum class.
The xtd::drawing::drawing_2d namespace provides advanced two-dimensional and vector graphics function...
Definition compositing_mode.hpp:12
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
constexpr const_pointer data() const noexcept
Gets direct access to the underlying contiguous storage.
Definition read_only_span.hpp:201
Contains xtd::drawing::drawing_2d::pen_alignment enum class.
Contains xtd::drawing::drawing_2d::pen_type enum class.
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31