![]() |
Conquer Chess
Chess and Starcraft combined
|
The layout of the widget that displays the in-game statistics. More...
#include <game_statistics_widget_layout.h>
Public Member Functions | |
| game_statistics_widget_layout (const screen_rect &square_rect=screen_rect(screen_coordinate(0, 0), screen_coordinate(8, 4))) | |
| const screen_rect & | get_background () const noexcept |
| const screen_rect & | get_symbol (const game_statistic_type s) const |
| Get the symbol for a statistic. | |
| const screen_rect & | get_relative (const game_statistic_type s) const |
| Get the rectangle where the relative statistics are shown. | |
| const screen_rect & | get_absolute (const game_statistic_type s, const side player_side) const noexcept |
| Get the rectangle where, per player, the absolute value of a statistic is shown. | |
The layout of the widget that displays the in-game statistics.
Use game_statistics_view_layout} for the game statistics screen.
| game_statistics_widget_layout::game_statistics_widget_layout | ( | const screen_rect & | square_rect = screen_rect(screen_coordinate(0, 0), screen_coordinate(8, 4)) | ) |
|
inlinenoexcept |
Get the rectangle where, per player, the absolute value of a statistic is shown.
The rectangle for time is absent here.
|
inlinenoexcept |
|
inline |
Get the rectangle where the relative statistics are shown.
The rectangle for time is in here as well.
|
inline |
Get the symbol for a statistic.