xtd 0.2.0
frame_dimension.h
Go to the documentation of this file.
1 #pragma once
5 #include <xtd/guid>
6 #include <xtd/iequatable>
7 #include <xtd/object>
8 #include <cstdint>
9 #include <ostream>
10 
12 namespace xtd {
14  namespace drawing {
17  namespace imaging {
24  class frame_dimension final : public object, public xtd::iequatable<frame_dimension> {
25  public:
27 
31  explicit frame_dimension(const xtd::guid& guid) : guid_(guid) {}
33 
35  frame_dimension(const frame_dimension&) = default;
36  frame_dimension& operator =(const frame_dimension&) = default;
38 
40 
44  const xtd::guid& guid() const noexcept {return guid_;}
45 
48  static frame_dimension page() noexcept {return frame_dimension(xtd::guid("7462dc86-6180-4c7e-8e3f-ee7333a7a483"));}
49 
52  static frame_dimension resolution() noexcept {return frame_dimension(xtd::guid("84236f7b-3bd3-428f-8dab-4ea1439ca315"));}
53 
56  static frame_dimension time() noexcept {return frame_dimension(xtd::guid("6aedbd6d-3fb5-418a-83a6-7f45229dc872"));}
58 
60 
62  bool equals(const frame_dimension& value) const noexcept override {return guid_ == value.guid_;}
64 
65  private:
66  xtd::guid guid_;
67  };
68  }
69  }
70 }
The xtd namespace contains all fundamental classes to access Hardware, Os, System, and more.
Definition: system_report.h:17
static frame_dimension resolution() noexcept
Gets the resolution dimension.
Definition: frame_dimension.h:52
Provides properties that get the frame dimensions of an image. Not inheritable.
Definition: frame_dimension.h:24
static frame_dimension time() noexcept
Gets the time dimension.
Definition: frame_dimension.h:56
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition: iequatable.h:18
const xtd::guid & guid() const noexcept
Gets a globally unique identifier (GUID) that represents this frame_dimension object.
Definition: frame_dimension.h:44
static frame_dimension page() noexcept
Gets the page dimension.
Definition: frame_dimension.h:48
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes...
Definition: object.h:32
Represents a globally unique identifier (GUID). A GUID is a 128-bit integer (16 bytes) that can be us...
Definition: guid.h:23
frame_dimension(const xtd::guid &guid)
Initializes a new instance of the FrameDimension class using the specified Guid structure.
Definition: frame_dimension.h:31