summaryrefslogtreecommitdiffhomepage
path: root/Public/Kits/System.Graphics/Dim2d.hxx
blob: 77d42c90410a07a878cc728090d44233d86b6b6d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* -------------------------------------------

    Copyright Mahrouss Logic

    File: Dim2d.hpp
    Purpose:

    Revision History:

    31/01/24: Added file (amlel)
    3/10/24: Remname extension to .hxx

------------------------------------------- */

#ifndef __DIM2D__
#define __DIM2D__

#include <System.Graphics/Core.hxx>

namespace System::Graphics {
class G_API Dim2d final {
 public:
  explicit Dim2d() = delete;
  explicit Dim2d(const HCore::UInt& x, const HCore::UInt& y) : m_X(x), m_Y(y) {}

  Dim2d& operator=(const Dim2d&) = default;
  Dim2d(const Dim2d&) = default;

  HCore::UInt& X();
  HCore::UInt& Y();

 private:
  HCore::UInt m_X{0};
  HCore::UInt m_Y{0};
};
}  // namespace System::Graphics

#endif /* ifndef __DIM2D__ */