xtd
1.0.0
Toggle main menu visibility
Loading...
Searching...
No Matches
xtd.drawing
include
xtd
drawing
drawing_2d
graphics_state.hpp
Go to the documentation of this file.
1
4
#pragma once
5
#include "
../../drawing_export.hpp
"
6
#include <xtd/iequatable>
7
#include <xtd/intptr>
8
#include <xtd/object>
9
11
namespace
xtd
{
13
namespace
drawing
{
15
class
graphics
;
17
19
namespace
drawing_2d
{
31
class
drawing_export_
graphics_state final :
public
xtd::object
,
public
xtd::iequatable
<graphics_state> {
32
public
:
34
graphics_state(graphics_state&& value) =
default
;
35
graphics_state(
const
graphics_state& value) =
default
;
36
graphics_state& operator =(graphics_state&& value) =
default
;
37
graphics_state& operator =(
const
graphics_state& value) =
default
;
39
41
46
[[nodiscard]]
auto
equals
(
const
xtd::object
& obj)
const
noexcept
->
bool
override
;
50
[[nodiscard]]
auto
equals
(
const
graphics_state& other)
const
noexcept
->
bool
override
;
51
54
[[nodiscard]]
auto
get_hash_code
() const noexcept ->
xtd
::
usize
override;
56
57
58
private:
59
friend
xtd
::
drawing
::
graphics
;
60
explicit graphics_state(
intptr
handle) : handle_(handle) {}
61
mutable
intptr
handle_ = 0;
62
};
63
}
64
}
65
}
66
xtd::drawing::drawing_2d::graphics_state::equals
auto equals(const graphics_state &other) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
xtd::drawing::drawing_2d::graphics_state::get_hash_code
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
xtd::drawing::drawing_2d::graphics_state::equals
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
xtd::drawing::graphics
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition
graphics.hpp:67
xtd::iequatable
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition
iequatable.hpp:23
xtd::object
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition
object.hpp:45
drawing_export.hpp
Contains drawing_export_ keyword.
drawing_export_
#define drawing_export_
Define shared library export.
Definition
drawing_export.hpp:13
xtd::intptr
std::intmax_t intptr
Represent a pointer or a handle.
Definition
intptr.hpp:23
xtd::usize
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition
usize.hpp:22
xtd::drawing::drawing_2d
The xtd::drawing::drawing_2d namespace provides advanced two-dimensional and vector graphics function...
Definition
compositing_mode.hpp:12
xtd::drawing
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition
actions_system_images.hpp:10
xtd
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition
abstract_object.hpp:8
Generated on
for xtd by
Gammasoft
. All rights reserved.