Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
replay_view_layout.h
Go to the documentation of this file.
1#ifndef REPLAY_VIEW_LAYOUT_H
2#define REPLAY_VIEW_LAYOUT_H
3
4#include "screen_rect.h"
5#include "board_layout.h"
7
8//#include <vector>
9
33{
34public:
35 explicit replay_view_layout(
37 );
38
40 const auto& get_background() const noexcept { return m_background; }
41
42 const auto& get_board() const noexcept { return m_board; }
43
44 const auto& get_statistics() const noexcept { return m_statistics; }
45
46 const auto& get_statistics_widget() const noexcept { return m_statistics_widget; }
47
48private:
49
50 screen_rect m_background;
51 board_layout m_board;
52 screen_rect m_statistics;
53 game_statistics_widget_layout m_statistics_widget;
54};
55
58
59#endif // REPLAY_VIEW_LAYOUT_H
The layout of a chess board.
Definition board_layout.h:15
The layout of the widget that displays the in-game statistics.
Definition game_statistics_widget_layout.h:39
The layout of a 'Played game' dialog.
Definition replay_view_layout.h:33
const auto & get_background() const noexcept
The full screen area of this layout.
Definition replay_view_layout.h:40
const auto & get_board() const noexcept
Definition replay_view_layout.h:42
const auto & get_statistics() const noexcept
Definition replay_view_layout.h:44
const auto & get_statistics_widget() const noexcept
Definition replay_view_layout.h:46
A rectangle-shaped area on the screen.
Definition screen_rect.h:15
void test_replay_view_layout()
Test the replay_view_layout class.
Definition replay_view_layout.cpp:43
screen_rect get_default_screen_rect() noexcept
Get the default screen rectangle.
Definition screen_rect.cpp:140