Numworks Epsilon  1.4.1
Graphing Calculator Operating System
size.h
Go to the documentation of this file.
1 #ifndef KANDINSKY_SIZE_H
2 #define KANDINSKY_SIZE_H
3 
4 #include <kandinsky/coordinate.h>
5 
6 class KDSize {
7 public:
9  m_width(width), m_height(height) {}
10  constexpr KDCoordinate width() const { return m_width; }
11  constexpr KDCoordinate height() const { return m_height; }
12 private:
13  KDCoordinate m_width;
14  KDCoordinate m_height;
15 };
16 
17 constexpr KDSize KDSizeZero = KDSize(0,0);
18 
19 #endif
int16_t KDCoordinate
Definition: coordinate.h:6
constexpr KDCoordinate width() const
Definition: size.h:10
constexpr KDSize(KDCoordinate width, KDCoordinate height)
Definition: size.h:8
Definition: size.h:6
constexpr KDSize KDSizeZero
Definition: size.h:17
constexpr KDCoordinate height() const
Definition: size.h:11