#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::textbox > | box_ |
util::scoped_ptr< gui::button > | check_ |
TEXTBOX_MODE | mode_ |
std::string | label_string_ |
int | label_ |
Definition at line 36 of file floating_textbox.hpp.
gui::floating_textbox::floating_textbox | ( | ) |
Definition at line 32 of file floating_textbox.cpp.
|
inline |
Definition at line 49 of file floating_textbox.hpp.
References box_.
Referenced by close(), play_controller::enter_textbox(), play_controller::have_keyboard_focus(), and tab().
|
inline |
Definition at line 42 of file floating_textbox.hpp.
References box_.
Referenced by events::menu_handler::do_speak(), and play_controller::enter_textbox().
|
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 | ) |
Definition at line 40 of file floating_textbox.cpp.
References active(), box_, check_, display::invalidate_all(), label_, mode_, font::remove_floating_label(), preferences::set_message_private(), gui::TEXTBOX_MESSAGE, and gui::TEXTBOX_NONE.
Referenced by events::console_handler::do_control(), events::console_handler::do_droid(), events::console_handler::do_idle(), play_controller::enter_textbox(), play_controller::process_focus_keydown_event(), and show().
|
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 | ||
) |
Definition at line 107 of file floating_textbox.cpp.
References box_, check_, close(), label_string_, mode(), mode_, font::SIZE_PLUS, gui::button::TYPE_CHECK, update_location(), and display::video().
Referenced by events::menu_handler::ai_formula(), events::menu_handler::search(), events::menu_handler::speak(), and events::menu_handler::user_command().
void gui::floating_textbox::tab | ( | const std::set< std::string > & | dictionary | ) |
Definition at line 126 of file floating_textbox.cpp.
References active(), display_chat_manager::add_chat_message(), box_, game_display::get_chat_manager(), utils::join(), events::chat_handler::MESSAGE_PRIVATE, mode_, resources::screen, gui::TEXTBOX_MESSAGE, and utils::word_completion().
Referenced by play_controller::tab().
void gui::floating_textbox::update_location | ( | game_display & | gui | ) |
Definition at line 57 of file floating_textbox.cpp.
References font::add_floating_label(), box_, check_, sdl::create_rect(), font::get_floating_label_rect(), label_, label_string_, font::LEFT_ALIGN, display::map_outside_area(), font::remove_floating_label(), font::floating_label::set_alignment(), font::floating_label::set_clip_rect(), font::floating_label::set_color(), font::floating_label::set_position(), and font::YELLOW_COLOR.
Referenced by show().
|
private |
Definition at line 52 of file floating_textbox.hpp.
Referenced by active(), box(), close(), show(), tab(), and update_location().
|
private |
Definition at line 53 of file floating_textbox.hpp.
Referenced by check(), close(), show(), and update_location().
|
private |
Definition at line 58 of file floating_textbox.hpp.
Referenced by close(), and update_location().
|
private |
Definition at line 57 of file floating_textbox.hpp.
Referenced by show(), and update_location().
|
private |