Conquer Chess
Chess and Starcraft combined
Loading...
Searching...
No Matches
Classes | Functions
controls_view.h File Reference
#include "controls_view_layout.h"
#include "controls_view_item.h"
#include "program_state.h"
#include "side.h"
#include "controls_bar.h"
#include "chess_color.h"
#include "view.h"
#include <SFML/Graphics.hpp>
#include <optional>
Include dependency graph for controls_view.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  controls_view
 The Controls dialog. More...
 

Functions

void draw_panel (const screen_rect &panel_position, const std::string panel_text, const chess_color color, const bool is_active)
 
sf::Keyboard::Key get_key_for_action_1 (const controls_view &v)
 
sf::Keyboard::Key get_key_for_action_2 (const controls_view &v)
 
sf::Keyboard::Key get_key_for_action_3 (const controls_view &v)
 
sf::Keyboard::Key get_key_for_action_4 (const controls_view &v)
 
sf::Mouse::Button get_button_for_do (const controls_view &v)
 
sf::Keyboard::Key get_key_for_move_down (const controls_view &v)
 
sf::Keyboard::Key get_key_for_move_left (const controls_view &v)
 
sf::Keyboard::Key get_key_for_move_right (const controls_view &v)
 
sf::Keyboard::Key get_key_for_move_up (const controls_view &v)
 
sf::Mouse::Button get_button_for_next (const controls_view &v)
 
void draw_background (controls_view &v)
 
void draw_keyboard_panel (controls_view &v)
 
void draw_mouse_panel (controls_view &v)
 
void draw_layout_panels (controls_view &v)
 Show where the panels will be drawn.
 
void draw_selected_panel (controls_view &v)
 
void draw_type_panel (controls_view &v)
 

Function Documentation

◆ draw_background()

void draw_background ( controls_view v)

◆ draw_keyboard_panel()

void draw_keyboard_panel ( controls_view v)

◆ draw_layout_panels()

void draw_layout_panels ( controls_view v)

Show where the panels will be drawn.

◆ draw_mouse_panel()

void draw_mouse_panel ( controls_view v)

◆ draw_panel()

void draw_panel ( const screen_rect panel_position,
const std::string  panel_text,
const chess_color  color,
const bool  is_active 
)
Parameters
is_activeif the panel is active: if true, draw with the real color, else use a greyed out color

◆ draw_selected_panel()

void draw_selected_panel ( controls_view v)

◆ draw_type_panel()

void draw_type_panel ( controls_view v)

◆ get_button_for_do()

sf::Mouse::Button get_button_for_do ( const controls_view v)

◆ get_button_for_next()

sf::Mouse::Button get_button_for_next ( const controls_view v)

◆ get_key_for_action_1()

sf::Keyboard::Key get_key_for_action_1 ( const controls_view v)

◆ get_key_for_action_2()

sf::Keyboard::Key get_key_for_action_2 ( const controls_view v)

◆ get_key_for_action_3()

sf::Keyboard::Key get_key_for_action_3 ( const controls_view v)

◆ get_key_for_action_4()

sf::Keyboard::Key get_key_for_action_4 ( const controls_view v)

◆ get_key_for_move_down()

sf::Keyboard::Key get_key_for_move_down ( const controls_view v)

◆ get_key_for_move_left()

sf::Keyboard::Key get_key_for_move_left ( const controls_view v)

◆ get_key_for_move_right()

sf::Keyboard::Key get_key_for_move_right ( const controls_view v)

◆ get_key_for_move_up()

sf::Keyboard::Key get_key_for_move_up ( const controls_view v)