The Battle for Wesnoth  1.15.1+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
 
void close (game_display &gui)
 
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)
 
bool active () const
 

Private Attributes

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

Detailed Description

Definition at line 33 of file floating_textbox.hpp.

Constructor & Destructor Documentation

◆ floating_textbox()

gui::floating_textbox::floating_textbox ( )

Definition at line 31 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_.

Referenced by events::menu_handler::do_speak().

◆ close()

void gui::floating_textbox::close ( game_display gui)

◆ mode()

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

Definition at line 37 of file floating_textbox.hpp.

References mode_.

Referenced by box(), play_controller::enter_textbox(), show(), and play_controller::tab().

◆ 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 49 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 50 of file floating_textbox.hpp.

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

◆ label_

int gui::floating_textbox::label_
private

Definition at line 55 of file floating_textbox.hpp.

Referenced by close(), and update_location().

◆ label_string_

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

Definition at line 54 of file floating_textbox.hpp.

Referenced by show(), and update_location().

◆ mode_

TEXTBOX_MODE gui::floating_textbox::mode_
private

Definition at line 52 of file floating_textbox.hpp.

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


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