The Battle for Wesnoth  1.19.0-dev
Public Member Functions | Private Attributes | List of all members
gui::floating_textbox Class Reference

#include <floating_textbox.hpp>

Public Member Functions

 floating_textbox ()
 
TEXTBOX_MODE mode () const
 
const std::unique_ptr< gui::button > & check () const
 
const std::unique_ptr< gui::textbox > & box () const
 
const std::vector< std::string > & command_history () const
 
void close ()
 
void update_location (game_display &gui)
 
void show (gui::TEXTBOX_MODE mode, const std::string &label, const std::string &check_label, bool checked, game_display &gui)
 
void tab (const std::set< std::string > &dictionary)
 
void memorize_command (const std::string &command)
 
bool active () const
 

Private Attributes

std::unique_ptr< gui::textboxbox_
 
std::unique_ptr< gui::buttoncheck_
 
TEXTBOX_MODE mode_
 
std::string label_string_
 
int label_
 
std::vector< std::string > command_history_
 

Detailed Description

Definition at line 33 of file floating_textbox.hpp.

Constructor & Destructor Documentation

◆ floating_textbox()

gui::floating_textbox::floating_textbox ( )

Definition at line 32 of file floating_textbox.cpp.

Member Function Documentation

◆ active()

bool gui::floating_textbox::active ( ) const
inline

◆ box()

const std::unique_ptr<gui::textbox>& gui::floating_textbox::box ( ) const
inline

◆ check()

const std::unique_ptr<gui::button>& gui::floating_textbox::check ( ) const
inline

Definition at line 38 of file floating_textbox.hpp.

References check_.

◆ close()

void gui::floating_textbox::close ( )

◆ command_history()

const std::vector<std::string>& gui::floating_textbox::command_history ( ) const
inline

Definition at line 40 of file floating_textbox.hpp.

References command_history_.

Referenced by play_controller::textbox_move_vertically().

◆ memorize_command()

void gui::floating_textbox::memorize_command ( const std::string &  command)

◆ mode()

TEXTBOX_MODE gui::floating_textbox::mode ( ) const
inline

◆ show()

void gui::floating_textbox::show ( gui::TEXTBOX_MODE  mode,
const std::string &  label,
const std::string &  check_label,
bool  checked,
game_display gui 
)

◆ tab()

void gui::floating_textbox::tab ( const std::set< std::string > &  dictionary)

◆ update_location()

void gui::floating_textbox::update_location ( game_display gui)

Member Data Documentation

◆ box_

std::unique_ptr<gui::textbox> gui::floating_textbox::box_
private

Definition at line 51 of file floating_textbox.hpp.

Referenced by active(), box(), close(), show(), tab(), and update_location().

◆ check_

std::unique_ptr<gui::button> gui::floating_textbox::check_
private

Definition at line 52 of file floating_textbox.hpp.

Referenced by check(), close(), show(), and update_location().

◆ command_history_

std::vector<std::string> gui::floating_textbox::command_history_
private

Definition at line 59 of file floating_textbox.hpp.

Referenced by command_history(), and memorize_command().

◆ label_

int gui::floating_textbox::label_
private

Definition at line 57 of file floating_textbox.hpp.

Referenced by close(), and update_location().

◆ label_string_

std::string gui::floating_textbox::label_string_
private

Definition at line 56 of file floating_textbox.hpp.

Referenced by show(), and update_location().

◆ mode_

TEXTBOX_MODE gui::floating_textbox::mode_
private

Definition at line 54 of file floating_textbox.hpp.

Referenced by close(), mode(), show(), and tab().


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