32 struct builder_scroll_text;
65 virtual unsigned get_state()
const override;
147 static const std::string&
type();
187 virtual std::unique_ptr<widget>
build()
const override;
A config object defines a single node in a WML file, with access to child nodes.
void set_max_size(point max_size)
Sets the size of the text beyond which scrollbars should be visible.
void signal_handler_left_button_down(const event::ui_event event)
unsigned get_horizontal_position()
void refresh()
Used for moving scrollbars.
virtual unsigned get_state() const override
See styled_widget::get_state.
multiline_text * get_internal_text_box()
static const std::string & type()
Static type getter that does not rely on the widget being constructed.
PangoAlignment text_alignment_
void set_link_aware(bool l)
void set_can_wrap(bool can_wrap)
void finalize_subclass() override
Function for the subclasses to do their setup.
virtual void set_label(const t_string &label) override
void set_value(const t_string &label)
void set_editable(bool editable)
virtual void set_self_active(const bool active) override
See container_base::set_self_active.
scroll_text(const implementation::builder_scroll_text &builder)
void place(const point &origin, const point &size) override
See widget::place.
point calculate_best_size() const override
See widget::calculate_best_size.
virtual bool get_active() const override
See styled_widget::get_active.
virtual bool get_link_aware() const override
See styled_widget::get_link_aware.
state_t state_
Current state of the widget.
virtual void set_text_alignment(const PangoAlignment text_alignment) override
See styled_widget::set_text_alignment.
bool can_wrap() const override
See widget::can_wrap.
unsigned get_vertical_position()
state_t
Possible states of the widget.
virtual const std::string & get_control_type() const override
Inherited from styled_widget, implemented by REGISTER_WIDGET.
ui_event
The event sent to the dispatcher.
std::shared_ptr< builder_grid > builder_grid_ptr
Contains the implementation details for lexical_cast and shouldn't be used directly.
std::size_t size(const std::string &str)
Length in characters of a UTF-8 string.
scrollbar_container::scrollbar_mode horizontal_scrollbar_mode
const PangoAlignment text_alignment
builder_scroll_text(const config &cfg)
scrollbar_container::scrollbar_mode vertical_scrollbar_mode
virtual std::unique_ptr< widget > build() const override
resolution(const config &cfg)
scroll_text_definition(const config &cfg)