xtd 0.2.0
graphics_state.h
Go to the documentation of this file.
1 #pragma once
5 #include "../../drawing_export.h"
6 #include "drawing2d.h"
7 #include <xtd/iequatable>
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(const graphics_state& value) = default;
35  graphics_state& operator =(const graphics_state& value) = default;
37 
39 
41  bool equals(const graphics_state& value) const noexcept override;
43 
44 
45  private:
47  explicit graphics_state(intptr handle) : handle_(handle) {}
48  mutable intptr handle_ = 0;
49  };
50  }
51  }
52 }
53 
intmax_t intptr
Represent a pointer or a handle.
Definition: types.h:151
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
Represents the state of a xtd::drawing::graphics object. This object is returned by a call to the xtd...
Definition: graphics_state.h:31
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
Contains xtd::drawing::drawing_2d/::matrix class.
Defines an object used to draw lines and curves. This class cannot be inherited.
Definition: graphics.h:70