The Battle for Wesnoth  1.13.4+dev
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
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 util::scoped_ptr
< gui::button > & 
check () const
 
const util::scoped_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

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

Detailed Description

Definition at line 36 of file floating_textbox.hpp.

Constructor & Destructor Documentation

gui::floating_textbox::floating_textbox ( )

Definition at line 32 of file floating_textbox.cpp.

Member Function Documentation

bool gui::floating_textbox::active ( ) const
inline
const util::scoped_ptr<gui::textbox>& gui::floating_textbox::box ( ) const
inline

Definition at line 42 of file floating_textbox.hpp.

References box_.

Referenced by events::menu_handler::do_speak(), and play_controller::enter_textbox().

const util::scoped_ptr<gui::button>& gui::floating_textbox::check ( ) const
inline

Definition at line 41 of file floating_textbox.hpp.

References check_.

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

void gui::floating_textbox::close ( game_display gui)
TEXTBOX_MODE gui::floating_textbox::mode ( ) const
inline

Definition at line 40 of file floating_textbox.hpp.

References mode_.

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

void gui::floating_textbox::show ( gui::TEXTBOX_MODE  mode,
const std::string label,
const std::string check_label,
bool  checked,
game_display gui 
)
void gui::floating_textbox::tab ( const std::set< std::string > &  dictionary)
void gui::floating_textbox::update_location ( game_display gui)

Member Data Documentation

util::scoped_ptr<gui::textbox> gui::floating_textbox::box_
private

Definition at line 52 of file floating_textbox.hpp.

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

util::scoped_ptr<gui::button> gui::floating_textbox::check_
private

Definition at line 53 of file floating_textbox.hpp.

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

int gui::floating_textbox::label_
private

Definition at line 58 of file floating_textbox.hpp.

Referenced by close(), and update_location().

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

Definition at line 57 of file floating_textbox.hpp.

Referenced by show(), and update_location().

TEXTBOX_MODE gui::floating_textbox::mode_
private

Definition at line 55 of file floating_textbox.hpp.

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


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