15 #ifndef GUI_WIDGETS_LABEL_HPP_INCLUDED
16 #define GUI_WIDGETS_LABEL_HPP_INCLUDED
35 virtual bool can_wrap()
const override;
47 virtual void set_active(
const bool active)
override;
53 virtual unsigned get_state()
const override;
std::string link_color_
What color links will be rendered in.
void set_state(const tstate state)
PangoAlignment text_alignment
virtual void set_active(const bool active) override
See tcontrol::set_active.
void signal_handler_left_button_click(const event::tevent event, bool &handled)
Left click signal handler: checks if we clicked on a hyperlink.
void set_can_wrap(const bool wrap)
tresolution(const config &cfg)
virtual unsigned get_state() const override
See tcontrol::get_state.
Base class of a resolution, contains the common keys for a resolution.
unsigned characters_per_line
A class inherited from ttext_box that displays its input as stars.
virtual bool can_wrap() const override
See twidget::can_wrap.
void load_config_extra()
Inherited from tcontrol.
bool can_wrap_
Holds the label can wrap or not.
tevent
The event send to the dispatcher.
tstate
Possible states of the widget.
unsigned characters_per_line_
The maximum number of characters per line.
virtual bool can_mouse_focus() const override
Whether the mouse move/click event go 'through' this widget.
virtual bool get_link_aware() const override
See tcontrol::get_link_aware.
void set_characters_per_line(const unsigned set_characters_per_line)
tstate state_
Current state of the widget.
tlabel_definition(const config &cfg)
Base class for all visible items.
void set_link_color(const std::string &color)
void signal_handler_right_button_click(const event::tevent event, bool &handled)
Right click signal handler: checks if we clicked on a hyperlink, copied to clipboard.
tbuilder_label(const config &cfg)
virtual const std::string & get_control_type() const override
See tcontrol::get_control_type.
void set_link_aware(bool l)
virtual bool get_active() const override
See tcontrol::get_active.
A config object defines a single node in a WML file, with access to child nodes.
virtual unsigned get_characters_per_line() const override
See tcontrol::get_characters_per_line.
GLsizei const GLcharARB ** string
bool link_aware_
Whether the label is link aware, rendering links with special formatting and handling click events...
virtual std::string get_link_color() const override
See tcontrol::get_link_aware.
Contains the implementation details for lexical_cast and shouldn't be used directly.
bool disable_click_dismiss() const override
See twidget::disable_click_dismiss.