xtd 0.2.0
Loading...
Searching...
No Matches
frame_dimension.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/guid>
6#include <xtd/iequatable>
7#include <xtd/object>
8#include <cstdint>
9#include <ostream>
10
12namespace 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_;}
46
48
52 static frame_dimension page() noexcept {return frame_dimension(xtd::guid("7462dc86-6180-4c7e-8e3f-ee7333a7a483"));}
53
56 static frame_dimension resolution() noexcept {return frame_dimension(xtd::guid("84236f7b-3bd3-428f-8dab-4ea1439ca315"));}
57
60 static frame_dimension time() noexcept {return frame_dimension(xtd::guid("6aedbd6d-3fb5-418a-83a6-7f45229dc872"));}
62
64
66 using object::equals;
67 bool equals(const frame_dimension& value) const noexcept override {return guid_ == value.guid_;}
69
70 private:
71 xtd::guid guid_;
72 };
73 }
74 }
75}
Provides properties that get the frame dimensions of an image. Not inheritable.
Definition frame_dimension.hpp:24
frame_dimension(const xtd::guid &guid)
Initializes a new instance of the FrameDimension class using the specified Guid structure.
Definition frame_dimension.hpp:31
static frame_dimension time() noexcept
Gets the time dimension.
Definition frame_dimension.hpp:60
const xtd::guid & guid() const noexcept
Gets a globally unique identifier (GUID) that represents this frame_dimension object.
Definition frame_dimension.hpp:44
static frame_dimension page() noexcept
Gets the page dimension.
Definition frame_dimension.hpp:52
static frame_dimension resolution() noexcept
Gets the resolution dimension.
Definition frame_dimension.hpp:56
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:42
virtual bool equals(const object &obj) const noexcept
Determines whether the specified object is equal to the current object.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition xtd_about_box.hpp:10
Represents a globally unique identifier (GUID). A GUID is a 128-bit integer (16 bytes) that can be us...
Definition guid.hpp:24