15 #ifndef GUI_WIDGETS_SPACER_HPP_INCLUDED
16 #define GUI_WIDGETS_SPACER_HPP_INCLUDED
55 virtual void set_active(
const bool active)
override;
61 virtual unsigned get_state()
const override;
80 int y_offset)
override;
virtual unsigned get_state() const override
See tcontrol::get_state.
bool disable_click_dismiss() const override
See twidget::disable_click_dismiss.
tformula< unsigned > height_
virtual void set_active(const bool active) override
See tcontrol::set_active.
tresolution(const config &cfg)
void set_best_size(const tpoint &best_size)
virtual const std::string & get_control_type() const override
See tcontrol::get_control_type.
tformula< unsigned > width_
Base class of a resolution, contains the common keys for a resolution.
A class inherited from ttext_box that displays its input as stars.
tspacer_definition(const config &cfg)
tpoint best_size_
When we're used as a fixed size item, this holds the best size.
Base class for all visible items.
virtual bool get_active() const override
See tcontrol::get_active.
virtual void impl_draw_background(surface &frame_buffer, int x_offset, int y_offset) override
See twidget::impl_draw_background.
virtual tpoint calculate_best_size() const override
See twidget::calculate_best_size.
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.
tbuilder_spacer(const config &cfg)