mirror of
https://github.com/borgesdan/xn65
synced 2024-12-29 21:54:47 +01:00
20 lines
378 B
C++
20 lines
378 B
C++
#ifndef XNA_COMMON_RECTANGLE_HPP
|
|
#define XNA_COMMON_RECTANGLE_HPP
|
|
|
|
#include "../types.hpp"
|
|
|
|
namespace xna {
|
|
struct Rectangle {
|
|
Int Height{ 0 };
|
|
Int Width{ 0 };
|
|
Int X{ 0 };
|
|
Int Y{ 0 };
|
|
|
|
constexpr Rectangle() = default;
|
|
|
|
constexpr Rectangle(const Int& X, const Int& Y, const Int& Width, const Int& Height):
|
|
X(X), Y(Y), Width(Width), Height(Height) {}
|
|
};
|
|
}
|
|
|
|
#endif |