15 #ifndef GUI_WIDGETS_IMAGE_HPP_INCLUDED
16 #define GUI_WIDGETS_IMAGE_HPP_INCLUDED
68 virtual tpoint calculate_best_size()
const override;
74 virtual void set_active(
const bool active)
override;
77 virtual bool get_active()
const override;
80 virtual unsigned get_state()
const override;
83 bool disable_click_dismiss()
const override;
97 virtual const std::string& get_control_type()
const override;
tstate
Possible states of the widget.
void set_image(const t_string &label)
Wrapper for set_label.
tresolution(const config &cfg)
Base class of a resolution, contains the common keys for a resolution.
A class inherited from ttext_box that displays its input as stars.
timage_definition(const config &cfg)
const t_string & label() const
t_string get_image() const
Wrapper for label.
virtual bool can_mouse_focus() const override
Whether the mouse move/click event go 'through' this widget.
Base class for all visible items.
tbuilder_image(const config &cfg)
static void set_label(twindow &window, const std::string &id, const std::string &label)
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string
Contains the implementation details for lexical_cast and shouldn't be used directly.