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

The textures used in the Lobby dialog. More...

#include <input_prompt_textures.h>

Public Member Functions

 input_prompt_textures ()
 
bool has_texture (const std::string &s) const noexcept
 Determine if a texture is present.
 
sf::Texture & get_inverted_texture (const sf::Keyboard::Key &k)
 Get an inverted texture from an SFML key.
 
sf::Texture & get_texture (const std::string &s)
 Get a texture from a std::string.
 
sf::Texture & get_texture (const sf::Keyboard::Key &k)
 Get a texture from an SFML key.
 
sf::Texture & get_texture (const sf::Mouse::Button &b)
 Get a texture from an SFML mouse button.
 
int get_n_textures () const noexcept
 

Detailed Description

The textures used in the Lobby dialog.

Constructor & Destructor Documentation

◆ input_prompt_textures()

input_prompt_textures::input_prompt_textures ( )

Member Function Documentation

◆ get_inverted_texture()

sf::Texture & input_prompt_textures::get_inverted_texture ( const sf::Keyboard::Key &  k)

Get an inverted texture from an SFML key.

◆ get_n_textures()

int input_prompt_textures::get_n_textures ( ) const
inlinenoexcept

◆ get_texture() [1/3]

sf::Texture & input_prompt_textures::get_texture ( const sf::Keyboard::Key &  k)

Get a texture from an SFML key.

◆ get_texture() [2/3]

sf::Texture & input_prompt_textures::get_texture ( const sf::Mouse::Button &  b)

Get a texture from an SFML mouse button.

◆ get_texture() [3/3]

sf::Texture & input_prompt_textures::get_texture ( const std::string &  s)

Get a texture from a std::string.

Prefer to use get_texture with a SFML key, if there is a key available, as these are tested. However, some textures, e.g. 'mouse_move' have no key associated with it and can only be obtained with this method.

◆ has_texture()

bool input_prompt_textures::has_texture ( const std::string &  s) const
noexcept

Determine if a texture is present.


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