1
0
mirror of https://github.com/borgesdan/xn65 synced 2024-12-29 21:54:47 +01:00
xn65/framework/common/rectangle.hpp

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