Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Public Member Functions | List of all members
lobby_view_layout Class Reference

The layout of the Lobby dialog. More...

#include <lobby_view_layout.h>

Public Member Functions

 lobby_view_layout (const screen_rect &r=get_default_screen_rect(), const int margin_width=get_default_margin_width())
 
const auto & get_background () const noexcept
 
const screen_rectget_color (const side player_side) const noexcept
 
const screen_rectget_king_portrait (const side player_side) const noexcept
 
const screen_rectget_race (const side player_side) const noexcept
 
const screen_rectget_ready (const side player_side) const noexcept
 
const auto & get_title () const noexcept
 

Detailed Description

The layout of the Lobby dialog.

x x x x x x x x
1 2 3 4 5 6 7 8
+-----------------------------------------------------+
| |
| +----------+ +-----------------------+ +----------+ | y1
| | | | | | | |
| | lhs king | | title | | rhs king | |
| | portrait | | | | portrait | |
| | | +-----------------------+ | | | y2
| | | | | |
| | | +----------+ +----------+ | | | y3
| | | | | | | | | |
| | | | color | | color | | | |
| | | | | | | | | |
| | | +----------+ +----------+ | | | y4
| | | | | |
| +----------+ +----------+ +----------+ | | | y5
| | | | | | | |
| | race | | race | | | |
| | | | | | | |
| +----------+ +----------+ | | | y6
| | | |
| +----------+ +----------+ | | | y7 <-+
| | | | | | | | |
| | ready | | read | | | | +- panel_height
| | | | | | | | |
| +----------+ +----------+ +----------+ | y8 <-+
| |
+-----------------------------------------------------+
^ ^
| |
+----------+
panel_width

Constructor & Destructor Documentation

◆ lobby_view_layout()

lobby_view_layout::lobby_view_layout ( const screen_rect r = get_default_screen_rect(),
const int  margin_width = get_default_margin_width() 
)
explicit

Member Function Documentation

◆ get_background()

const auto & lobby_view_layout::get_background ( ) const
inlinenoexcept

◆ get_color()

const screen_rect & lobby_view_layout::get_color ( const side  player_side) const
noexcept

◆ get_king_portrait()

const screen_rect & lobby_view_layout::get_king_portrait ( const side  player_side) const
noexcept

◆ get_race()

const screen_rect & lobby_view_layout::get_race ( const side  player_side) const
noexcept

◆ get_ready()

const screen_rect & lobby_view_layout::get_ready ( const side  player_side) const
noexcept

◆ get_title()

const auto & lobby_view_layout::get_title ( ) const
inlinenoexcept

The documentation for this class was generated from the following files: