5#include "../drawing_export.hpp"
13#include <xtd/iequatable>
45 template<
class brush_t>
56 template<
class brush_t>
92 xtd::drawing::
pen& alignment(
xtd::drawing::drawing_2d::pen_alignment value);
101 template<class brush_t>
103 brush_(value.template memberwise_clone<brush_t>());
133 xtd::drawing::drawing_2d::dash_style dash_style() const noexcept;
138 xtd::drawing::
pen& dash_style(drawing::drawing_2d::dash_style value);
142 xtd::drawing::drawing_2d::line_cap end_cap() const noexcept;
146 xtd::drawing::
pen& end_cap(
xtd::drawing::drawing_2d::line_cap value);
156 xtd::drawing::drawing_2d::line_join line_join() const noexcept;
162 xtd::drawing::
pen& line_join(
xtd::drawing::drawing_2d::line_join value);
168 float miter_limit() const noexcept;
174 xtd::drawing::
pen& miter_limit(
float value);
178 xtd::drawing::drawing_2d::line_cap start_cap() const noexcept;
182 xtd::drawing::
pen& start_cap(
xtd::drawing::drawing_2d::line_cap value);
187 xtd::drawing::drawing_2d::pen_type
type() const noexcept;
192 float width() const noexcept;
201 xtd::drawing::
pen& dash_pattern(const std::initializer_list<
float>& value);
210 bool equals(const
object& obj) const noexcept override;
214 bool equals(const
xtd::drawing::
pen& other) const noexcept override;
218 xtd::
size get_hash_code() const noexcept override;
220 xtd::
string to_string() 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
Defines objects used to fill the interiors of graphical shapes such as rectangles,...
Definition brush.hpp:33
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
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.
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.
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:43
The xtd::shared_ptr_object is a shared pointer as std::shared_ptr.
Definition shared_ptr_object.hpp:30
Contains xtd::drawing::color class.
Contains xtd::drawing::drawing_2d::dash_style enum class.
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
std::unique_ptr< 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
std::type_info type
Stores information about a type.
Definition type.hpp:23
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 namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
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