xtd - Reference Guide  0.1.2
Modern c++17/20 framework to create console, GUI and unit test applications on Windows, macOS, Linux, iOS and android.
Loading...
Searching...
No Matches
frame_dimension.h
Go to the documentation of this file.
1
4#pragma once
5#include <cstdint>
6#include <ostream>
7#include <xtd/guid.h>
8#include <xtd/object.h>
9
11namespace xtd {
13 namespace drawing {
16 namespace imaging {
23 class frame_dimension final : public object {
24 public:
27 explicit frame_dimension(const xtd::guid& guid) : guid_(guid) {}
28
30 frame_dimension(const frame_dimension&) = default;
31 frame_dimension& operator=(const frame_dimension&) = default;
32 bool operator==(const frame_dimension& value) const {return guid_ == value.guid_;}
33 bool operator!=(const frame_dimension& value) const {return !operator==(value);}
35
38 const xtd::guid& guid() const {return guid_;}
39
42 static frame_dimension page() {return frame_dimension(xtd::guid("7462dc86-6180-4c7e-8e3f-ee7333a7a483"));}
43
46 static frame_dimension resolution() {return frame_dimension(xtd::guid("84236f7b-3bd3-428f-8dab-4ea1439ca315"));}
47
50 static frame_dimension time() {return frame_dimension(xtd::guid("6aedbd6d-3fb5-418a-83a6-7f45229dc872"));}
51
52 private:
53 xtd::guid guid_;
54 };
55 }
56 }
57}
Provides properties that get the frame dimensions of an image. Not inheritable.
Definition frame_dimension.h:23
static frame_dimension time()
Gets the time dimension.
Definition frame_dimension.h:50
frame_dimension(const xtd::guid &guid)
Initializes a new instance of the FrameDimension class using the specified Guid structure.
Definition frame_dimension.h:27
static frame_dimension page()
Gets the page dimension.
Definition frame_dimension.h:42
const xtd::guid & guid() const
Gets a globally unique identifier (GUID) that represents this frame_dimension object.
Definition frame_dimension.h:38
static frame_dimension resolution()
Gets the resolution dimension.
Definition frame_dimension.h:46
Supports all classes in the xtd class hierarchy and provides low-level services to derived classes....
Definition object.h:26
Contains xtd::guid class.
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition system_report.h:17
Contains xtd::object class.
Represents a globally unique identifier (GUID). A GUID is a 128-bit integer (16 bytes) that can be us...
Definition guid.h:23