General purpose widgets. More...
Classes | |
class | button |
A button is a control that can be pushed to start an action or close a dialog. More... | |
class | dialog_frame |
struct | dialog_manager |
class | floating_textbox |
class | menu |
class | scrollarea |
class | scrollbar |
Scrollbar. More... | |
class | textbox |
class | tristate_button |
class | widget |
Enumerations | |
enum | TEXTBOX_MODE { TEXTBOX_NONE, TEXTBOX_SEARCH, TEXTBOX_MESSAGE, TEXTBOX_COMMAND, TEXTBOX_AI } |
enum | DIALOG_RESULT { DIALOG_BACK =-7, DIALOG_FORWARD =-6, CREATE_ITEM =-5, DELETE_ITEM =-4, ESCAPE_DIALOG =-3, CONTINUE_DIALOG =-2, CLOSE_DIALOG =-1 } |
Functions | |
bool | in_dialog () |
static bool | is_valid_image (const std::string &str) |
static std::pair< int, int > | parse_fraction (const std::string &s) |
static int | xp_to_advance (const std::string &s) |
Variables | |
const int | ButtonHPadding = 10 |
const int | ButtonVPadding = 10 |
const int | font_size = font::SIZE_NORMAL |
const int | horizontal_padding = font::SIZE_SMALL |
const int | checkbox_horizontal_padding = font::SIZE_SMALL / 2 |
const int | vertical_padding = font::SIZE_SMALL / 2 |
General purpose widgets.
This module primarily contains a number of common, general purpose widgets for the construction of composite user interfaces.
enum gui::DIALOG_RESULT |
Enumerator | |
---|---|
DIALOG_BACK | |
DIALOG_FORWARD | |
CREATE_ITEM | |
DELETE_ITEM | |
ESCAPE_DIALOG | |
CONTINUE_DIALOG | |
CLOSE_DIALOG |
Definition at line 30 of file show_dialog.hpp.
enum gui::TEXTBOX_MODE |
Enumerator | |
---|---|
TEXTBOX_NONE | |
TEXTBOX_SEARCH | |
TEXTBOX_MESSAGE | |
TEXTBOX_COMMAND | |
TEXTBOX_AI |
Definition at line 30 of file floating_textbox.hpp.
bool gui::in_dialog | ( | ) |
Definition at line 56 of file show_dialog.cpp.
References gui2::is_in_dialog().
Referenced by controller_base::handle_event(), and display::redraw_everything().
|
static |
Definition at line 394 of file button.cpp.
References IMAGE_PREFIX.
Referenced by gui::button::set_image(), and gui::button::set_label().
|
static |
|
static |
Definition at line 115 of file menu.cpp.
References parse_fraction().
Referenced by gui::menu::basic_sorter::less(), unit::overlays(), and unit::xp_color().
const int gui::ButtonHPadding = 10 |
Definition at line 42 of file show_dialog.cpp.
Referenced by gui::dialog_frame::draw(), and gui::dialog_frame::layout().
const int gui::ButtonVPadding = 10 |
Definition at line 43 of file show_dialog.cpp.
Referenced by gui::dialog_frame::bottom_padding(), and gui::dialog_frame::layout().
const int gui::checkbox_horizontal_padding = font::SIZE_SMALL / 2 |
Definition at line 42 of file button.cpp.
Referenced by gui::button::draw_contents().
const int gui::font_size = font::SIZE_NORMAL |
Definition at line 40 of file button.cpp.
Referenced by help::help_text_area::add_text_item(), gui::button::calculate_size(), wb::recall::draw_hex(), wb::recruit::draw_hex(), wb::draw_numbers(), help::help_text_area::handle_format_cfg(), gui::menu::style::item_size(), font::line_size(), font::floating_label::set_font_size(), font::pango_text::text(), and font::word_wrap_text().
const int gui::horizontal_padding = font::SIZE_SMALL |
Definition at line 41 of file button.cpp.
Referenced by gui::button::calculate_size().
const int gui::vertical_padding = font::SIZE_SMALL / 2 |
Definition at line 43 of file button.cpp.