Defines a rectangular xtd::drawing::brush with a hatch style, a foreground color, and a background color. This class cannot be inherited.
Constructors | |
hatch_brush (xtd::drawing::drawing_2d::hatch_style hatch_style, const xtd::drawing::color &fore_color) | |
Initializes a new instance of the xtd::drawing::drawing_2d/::hatch_brush class with the specified xtd::drawing::drawing_2d/hatch_style enumeration and foreground color. More... | |
hatch_brush (xtd::drawing::drawing_2d::hatch_style hatch_style, const xtd::drawing::color &fore_color, const xtd::drawing::color &back_color) | |
Initializes a new instance of the xtd::drawing::drawing_2d/::hatch_brush class with the specified xtd::drawing::drawing_2d/hatch_style enumeration, foreground color and background color. More... | |
Properties | |
xtd::drawing::color | background_color () const noexcept |
Gets the color of spaces between the hatch lines drawn by this hatch_brush object. More... | |
xtd::drawing::color | foreground_color () const noexcept |
Gets the color of hatch lines drawn by this hatch_brush object. More... | |
xtd::drawing::drawing_2d::hatch_style | hatch_style () const noexcept |
Gets the hatch style of this hatch_brush object. More... | |
Methods | |
bool | equals (const hatch_brush &value) const noexcept override |
Additional Inherited Members | |
![]() | |
intptr | handle () const noexcept |
Gets the handle of the brush. More... | |
bool | equals (const brush &value) const noexcept override |
xtd::ustring | to_string () const noexcept override |
Converts this brush object to a human-readable string. More... | |
![]() | |
object ()=default | |
Create a new instance of the ultimate base class object. More... | |
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... | |
virtual type_object | get_type () const noexcept |
Gets the type of the current instance. More... | |
template<typename object_t > | |
std::unique_ptr< object_t > | memberwise_clone () const noexcept |
Creates a shallow copy of the current object. More... | |
![]() | |
virtual bool | equals (const brush &) const noexcept=0 |
Indicates whether the current object is equal to another object of the same type. More... | |
![]() | |
virtual bool | equals (const hatch_brush &) const noexcept=0 |
Indicates whether the current object is equal to another object of the same type. More... | |
![]() | |
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... | |
![]() | |
brush () | |
Initialize a new instance of brush class. More... | |
void | set_native_brush (intptr brush) |
In a derived class, sets a reference to a GDI+ brush object. More... | |
xtd::drawing::drawing_2d::hatch_brush::hatch_brush | ( | xtd::drawing::drawing_2d::hatch_style | hatch_style, |
const xtd::drawing::color & | fore_color | ||
) |
Initializes a new instance of the xtd::drawing::drawing_2d/::hatch_brush class with the specified xtd::drawing::drawing_2d/hatch_style enumeration and foreground color.
hatch_style | One of the xtd::drawing::drawing_2d/hatch_style values that represents the pattern drawn by this xtd::drawing::drawing_2d/::hatch_brush. |
fore_color | The xtd::drawing::color structure that represents the color of lines drawn by this xtd::drawing::drawing_2d/::hatch_brush. |
xtd::drawing::drawing_2d::hatch_brush::hatch_brush | ( | xtd::drawing::drawing_2d::hatch_style | hatch_style, |
const xtd::drawing::color & | fore_color, | ||
const xtd::drawing::color & | back_color | ||
) |
Initializes a new instance of the xtd::drawing::drawing_2d/::hatch_brush class with the specified xtd::drawing::drawing_2d/hatch_style enumeration, foreground color and background color.
hatch_style | One of the xtd::drawing::drawing_2d/hatch_style values that represents the pattern drawn by this xtd::drawing::drawing_2d/::hatch_brush. |
fore_color | The xtd::drawing::color structure that represents the color of lines drawn by this xtd::drawing::drawing_2d/::hatch_brush. |
back_color | The xtd::drawing::color structure that represents the color of spaces between the lines drawn by this xtd::drawing::drawing_2d/::hatch_brush. |
|
noexcept |
Gets the color of spaces between the hatch lines drawn by this hatch_brush object.
|
noexcept |
Gets the color of hatch lines drawn by this hatch_brush object.
|
noexcept |
Gets the hatch style of this hatch_brush object.