5#include "../drawing_export.h"
13#include <xtd/iequatable>
46 template <
typename brush_t>
57 template<
typename brush_t>
93 xtd::drawing::
pen& alignment(
xtd::drawing::drawing_2d::pen_alignment value);
102 template<typename brush_t>
104 brush_(value.template memberwise_clone<brush_t>());
123 std::vector<
float> dash_pattern() const noexcept;
129 xtd::drawing::
pen& dash_pattern(const std::vector<
float>& value);
143 xtd::drawing::drawing_2d::line_cap end_cap() const noexcept;
147 xtd::drawing::
pen& end_cap(
xtd::drawing::drawing_2d::line_cap value);
157 xtd::drawing::drawing_2d::line_join line_join() const noexcept;
163 xtd::drawing::
pen& line_join(
xtd::drawing::drawing_2d::line_join value);
169 float miter_limit() const noexcept;
175 xtd::drawing::
pen& miter_limit(
float value);
179 xtd::drawing::drawing_2d::line_cap start_cap() const noexcept;
183 xtd::drawing::
pen& start_cap(
xtd::drawing::drawing_2d::line_cap value);
188 xtd::drawing::drawing_2d::pen_type
type() const noexcept;
193 float width() const noexcept;
202 xtd::drawing::
pen& dash_pattern(const std::initializer_list<
float>& value);
208 bool equals(const
xtd::drawing::
pen& value) const noexcept override;
218 void recreate_handle();
220 std::shared_ptr<data> data_;
Contains xtd::drawing::brush class.
Defines objects used to fill the interiors of graphical shapes such as rectangles,...
Definition brush.h:33
Represents an ARGB (alpha, red, green, blue) color.
Definition color.h:49
static const xtd::drawing::color empty
Represents a color that is null.
Definition color.h:55
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition pen.h:35
const xtd::drawing::color & color() const noexcept
Gets the color of 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.h:47
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.h:58
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.
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.h:18
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:32
Represents text as a sequence of UTF-8 code units.
Definition ustring.h:47
Contains xtd::drawing::color class.
Contains xtd::drawing::dash_style enum class.
Contains xtd::drawing::drawing_2d::pen_alignment enum class.
Contains xtd::drawing::drawing_2d::pen_type enum class.
#define drawing_export_
Define shared library export.
Definition drawing_export.h:13
intmax_t intptr
Represent a pointer or a handle.
Definition types.h:153
std::type_info type
Stores information about a type.
Definition types.h:219
dash_style
Specifies the style of dashed lines drawn with a xtd::drawing::pen object.
Definition dash_style.h:18
pen_alignment
Specifies the alignment of a xtd::drawing::pen object in relation to the theoretical,...
Definition pen_alignment.h:21
Contains xtd::drawing::drawing_2d::line_cap enum class.
Contains xtd::drawing::drawing_2d::line_join enum class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.h:10