xtd 0.2.0
frame_dimension.hpp
Go to the documentation of this file.
1
4#pragma once
5#include <xtd/guid>
6#include <xtd/iequatable>
7
9namespace xtd {
11 namespace drawing {
14 namespace imaging {
21 class frame_dimension final : public object, public xtd::iequatable<frame_dimension> {
22 public:
24
28 explicit frame_dimension(const xtd::guid& guid) noexcept;
30
32 frame_dimension(const frame_dimension&) = default;
33 frame_dimension& operator =(const frame_dimension&) = default;
35
37
41 const xtd::guid& guid() const noexcept;
43
45
49 static frame_dimension page() noexcept;
50
53 static frame_dimension resolution() noexcept;
54
57 static frame_dimension time() noexcept;
59
61
66 bool equals(const object& obj) const noexcept override;
70 bool equals(const frame_dimension& other) const noexcept override;
71
74 xtd::size get_hash_code() const noexcept override;
76
77 private:
78 xtd::guid guid_;
79 };
80 }
81 }
82}
bool equals(const object &obj) 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.
static frame_dimension time() noexcept
Gets the time dimension.
const xtd::guid & guid() const noexcept
Gets a globally unique identifier (GUID) that represents this frame_dimension object.
frame_dimension(const xtd::guid &guid) noexcept
Initializes a new instance of the FrameDimension class using the specified Guid structure.
static frame_dimension page() noexcept
Gets the page dimension.
static frame_dimension resolution() noexcept
Gets the resolution dimension.
Represents a globally unique identifier (GUID). A GUID is a 128-bit integer (16 bytes) that can be us...
Definition guid.hpp:24
Defines a generalized method that a value type or class implements to create a type-specific method f...
Definition iequatable.hpp:22
object()=default
Create a new instance of the ultimate base class object.
@ other
The operating system is other.
Definition platform_id.hpp:58
The xtd::drawing::imaging namespace provides advanced GDI+ imaging functionality. Basic graphics func...
Definition bitmap_data.hpp:15
The xtd::drawing namespace provides access to GDI+ basic graphics functionality. More advanced functi...
Definition actions_system_images.hpp:10
The xtd namespace contains all fundamental classes to access Hardware, Os, System,...
Definition abstract_object.hpp:8
Stores an ordered pair of integers, which specify a height and width.
Definition size.hpp:31