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

The layout of the Menu dialog. More...

#include <menu_view_layout.h>

Public Member Functions

 menu_view_layout (const screen_rect &r=get_default_screen_rect(), const int margin_width=get_default_margin_width())
 
const screen_rectget_selectable_rect (const menu_view_item item) const noexcept
 Get a screen rect.
 
const auto & get_menu_panel () const noexcept
 The rectangle around the buttons.
 
const auto & get_title () const noexcept
 The screen area where the frames per seconds are displayed.
 
const auto & get_subtitle () const noexcept
 
const auto & get_background_image () const noexcept
 
const auto & get_start () const noexcept
 
const auto & get_about () const noexcept
 
const auto & get_options () const noexcept
 
const auto & get_quit () const noexcept
 

Detailed Description

The layout of the Menu dialog.

Margins _ _ _ _
..........0 x x x x x x width
.......... 1 2 3 4 5 6
..........
..........+-----------------------------------------+
..........| |
..........| +--------------+ | y1
..........| | | |
..........| | +----------+ | | y2
..........| | | | | |
..........| | | title | | |
..........| | | | | |
..........| | +----------+ | | y3, y4
..........| | | subtitle | | |
..........| | +----------+ | | y5
..........| | | |
..........| | +----------+ | | y6
..........| | |spaces | | |
..........| | +----------+ | | y7
..........| | | |
..........| | +----------+ | | y8
..........| | | start | | |
..........| | +----------+ | | y9
..........| | | |
..........| | +----------+ | | y10
..........| | | options | | |
..........| | +----------+ | | y11
..........| | | |
..........| | +----------+ | | y12
..........| | | about | | |
..........| | +----------+ | | y13
..........| | | |
..........| | +----------+ | | y14
..........| | | quit | | |
..........| | +----------+ | | y15
..........| | | |
..........| +--------------+ | y16
..........| |
..........| +-------------------------------------+ | y17
..........| | Controls | |
..........| +-------------------------------------+ | y18
..........| |
..........+-----------------------------------------+
..........
.......... ^ ^
.......... | |
.......... +----------+
.......... panel_width

Constructor & Destructor Documentation

◆ menu_view_layout()

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

Member Function Documentation

◆ get_about()

const auto & menu_view_layout::get_about ( ) const
inlinenoexcept

◆ get_background_image()

const auto & menu_view_layout::get_background_image ( ) const
inlinenoexcept

◆ get_menu_panel()

const auto & menu_view_layout::get_menu_panel ( ) const
inlinenoexcept

The rectangle around the buttons.

◆ get_options()

const auto & menu_view_layout::get_options ( ) const
inlinenoexcept

◆ get_quit()

const auto & menu_view_layout::get_quit ( ) const
inlinenoexcept

◆ get_selectable_rect()

const screen_rect & menu_view_layout::get_selectable_rect ( const menu_view_item  item) const
noexcept

Get a screen rect.

◆ get_start()

const auto & menu_view_layout::get_start ( ) const
inlinenoexcept

◆ get_subtitle()

const auto & menu_view_layout::get_subtitle ( ) const
inlinenoexcept

◆ get_title()

const auto & menu_view_layout::get_title ( ) const
inlinenoexcept

The screen area where the frames per seconds are displayed.


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