1#ifndef OPTIONS_VIEW_LAYOUT_H
2#define OPTIONS_VIEW_LAYOUT_H
55class options_view_layout
58 explicit options_view_layout(
63 const screen_rect& get_background() const noexcept {
return m_background; }
67 const screen_rect& get_game_speed_label() const noexcept {
return m_game_speed_label; }
68 const screen_rect& get_game_speed_value() const noexcept {
return m_game_speed_value; }
70 const screen_rect& get_music_volume_label() const noexcept {
return m_music_volume_label; }
71 const screen_rect& get_music_volume_value() const noexcept {
return m_music_volume_value; }
73 const screen_rect& get_sound_effects_volume_label() const noexcept {
return m_sound_effects_volume_label; }
74 const screen_rect& get_sound_effects_volume_value() const noexcept {
return m_sound_effects_volume_value; }
76 const screen_rect& get_starting_pos_label() const noexcept {
return m_starting_pos_label; }
77 const screen_rect& get_starting_pos_value() const noexcept {
return m_starting_pos_value; }
79 const board_layout& get_chess_board() const noexcept {
return m_chess_board; }
82 const screen_rect& get_controls_label() const noexcept {
return m_controls_label; }
85 const screen_rect& get_controller_type_value(
const side player_side)
const noexcept;
105std::vector<screen_rect>
get_panels(
const options_view_layout& layout);
std::vector< screen_rect > get_panels(const about_view_layout &layout)
Get the panels in the layout.
Definition about_view_layout.cpp:57
The layout of a chess board.
Definition board_layout.h:15
A rectangle-shaped area on the screen.
Definition screen_rect.h:15
constexpr int get_default_margin_width() noexcept
Get the default margin width/size, in pixels.
Definition layout.h:7
options_view_item
A selectable item at in the Options menu.
Definition options_view_item.h:12
void test_options_view_layout()
Definition options_view_layout.cpp:142
screen_rect get_default_screen_rect() noexcept
Get the default screen rectangle.
Definition screen_rect.cpp:140
side
The side the player/piece is on.
Definition side.h:11