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
:
8
constexpr
KDSize
(
KDCoordinate
width
,
KDCoordinate
height
) :
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
KDCoordinate
int16_t KDCoordinate
Definition:
coordinate.h:6
KDSize::width
constexpr KDCoordinate width() const
Definition:
size.h:10
KDSize::KDSize
constexpr KDSize(KDCoordinate width, KDCoordinate height)
Definition:
size.h:8
KDSize
Definition:
size.h:6
KDSizeZero
constexpr KDSize KDSizeZero
Definition:
size.h:17
coordinate.h
KDSize::height
constexpr KDCoordinate height() const
Definition:
size.h:11
epsilon
kandinsky
include
kandinsky
size.h
Generated by
1.8.14