xtd 0.2.0
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
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(const graphics_state& value) = default;
35 graphics_state& operator =(const graphics_state& value) = default;
37
39
44 bool equals(const object& obj) const noexcept override;
48 bool equals(const graphics_state& other) const noexcept override;
49
52 xtd::size get_hash_code() const noexcept override;
54
55
56 private:
57 friend xtd::drawing::graphics;
58 explicit graphics_state(intptr handle) : handle_(handle) {}
59 mutable intptr handle_ = 0;
60 };
61 }
62 }
63}
64
Represents the state of a xtd::drawing::graphics object. This object is returned by a call to the xtd...
Definition graphics_state.hpp:31
bool equals(const object &obj) const noexcept override
Determines whether the specified object is equal to the current object.
bool equals(const graphics_state &other) const noexcept override
Determines whether the specified object is equal to the current object.
xtd::size get_hash_code() const noexcept override
Serves as a hash function for a particular type.
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:22
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.hpp:43
#define drawing_export_
Define shared library export.
Definition drawing_export.hpp:13
size_t size
Represents a size of any object in bytes.
Definition size.hpp:23
intmax_t intptr
Represent a pointer or a handle.
Definition intptr.hpp:23
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10