Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
game_statistics_view_layout.h
Go to the documentation of this file.
1#ifndef GAME_STATISTICS_VIEW_LAYOUT_H
2#define GAME_STATISTICS_VIEW_LAYOUT_H
3
4#include "screen_rect.h"
5#include "layout.h"
6
7#include <vector>
8
36{
37public:
40 );
41
43 const auto& get_background() const noexcept { return m_background; }
44
45 const auto& get_plot() const noexcept { return m_plot; }
46
47private:
48
49 screen_rect m_background;
50 screen_rect m_plot;
51};
52
53std::vector<screen_rect> get_panels(const game_statistics_view_layout& layout);
54
57
58#endif // GAME_STATISTICS_VIEW_LAYOUT_H
The layout of viewing the statistics after a game dialog.
Definition game_statistics_view_layout.h:36
const auto & get_background() const noexcept
The full screen area of this layout.
Definition game_statistics_view_layout.h:43
const auto & get_plot() const noexcept
Definition game_statistics_view_layout.h:45
A rectangle-shaped area on the screen.
Definition screen_rect.h:15
std::vector< screen_rect > get_panels(const game_statistics_view_layout &layout)
Definition game_statistics_view_layout.cpp:22
void test_game_statistics_view_layout()
Test the game_statistics_view_layout class.
Definition game_statistics_view_layout.cpp:30
screen_rect get_default_screen_rect() noexcept
Get the default screen rectangle.
Definition screen_rect.cpp:140