The Battle for Wesnoth  1.19.7+dev
Classes | Enumerations | Functions | Variables
gui Namespace Reference

General purpose widgets. More...

Classes

class  tristate_button
 
class  floating_textbox
 
class  button
 
class  scrollarea
 
class  scrollbar
 Scrollbar. More...
 
class  textbox
 
class  widget
 

Enumerations

enum  TEXTBOX_MODE {
  TEXTBOX_NONE , TEXTBOX_SEARCH , TEXTBOX_MESSAGE , TEXTBOX_COMMAND ,
  TEXTBOX_AI
}
 

Functions

static bool is_valid_image (const std::string &str)
 

Variables

const int default_font_size = font::SIZE_BUTTON
 

Detailed Description

General purpose widgets.

This module primarily contains a number of common, general purpose widgets for the construction of composite user interfaces.

Enumeration Type Documentation

◆ TEXTBOX_MODE

Enumerator
TEXTBOX_NONE 
TEXTBOX_SEARCH 
TEXTBOX_MESSAGE 
TEXTBOX_COMMAND 
TEXTBOX_AI 

Definition at line 30 of file floating_textbox.hpp.

Function Documentation

◆ is_valid_image()

static bool gui::is_valid_image ( const std::string &  str)
static

Definition at line 382 of file button.cpp.

References IMAGE_PREFIX.

Referenced by gui::button::set_image(), and gui::button::set_label().

Variable Documentation

◆ default_font_size

const int gui::default_font_size = font::SIZE_BUTTON

Definition at line 40 of file button.cpp.