40 std::vector<std::vector<square_layout>> m_rects;
int get_width(const board_layout &b)
Definition board_layout.cpp:66
int get_height(const board_layout &b)
Definition board_layout.cpp:61
void test_board_layout()
Definition board_layout.cpp:84
The layout of a chess board.
Definition board_layout.h:15
const square_layout & get_square(const int x, const int y) const
Get the rectangle for the square.
Definition board_layout.cpp:72
const screen_rect & get_board() const noexcept
Get the size of the entire board.
Definition board_layout.cpp:56
The coordinate on a screen.
Definition screen_coordinate.h:12
A rectangle-shaped area on the screen.
Definition screen_rect.h:15
The layout of a square.
Definition square_layout.h:61