xtd 1.0.0
Loading...
Searching...
No Matches
graphics_state.hpp
Go to the documentation of this file.
1
4#pragma once
6#include <xtd/iequatable>
7#include <xtd/intptr>
8#include <xtd/object>
9
11namespace 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
auto equals(const graphics_state &other) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
auto get_hash_code() const noexcept -> xtd::usize override
Serves as a hash function for a particular type.
auto equals(const xtd::object &obj) const noexcept -> bool override
Determines whether the specified object is equal to the current object.
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition graphics.hpp:67
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:23
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:45
Contains drawing_export_ keyword.
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
std::intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
std::size_t usize
Represents an unsigned size of any object in bytes.
Definition usize.hpp:22
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