21 #ifndef GUI_AUXILIARY_CANVAS_HPP_INCLUDED
22 #define GUI_AUXILIARY_CANVAS_HPP_INCLUDED
85 void draw(
const bool force =
false);
174 is_dirty_ = is_dirty;
unsigned blur_depth_
The depth of the blur to use in the pre committing.
unsigned w_
Width of the canvas.
virtual void draw(surface &canvas, const game_logic::map_formula_callable &variables)=0
Draws the canvas.
void set_variable(const std::string &key, const variant &value)
void set_width(const unsigned width)
A class inherited from ttext_box that displays its input as stars.
void set_cfg(const config &cfg)
Sets the config.
unsigned h_
Height of the canvas.
Abstract base class for all other shapes.
surface canvas_
The surface we draw all items on.
GLsizei const GLfloat * value
bool is_dirty_
The dirty state of the canvas.
void draw(const bool force=false)
Draws the canvas.
boost::intrusive_ptr< const tshape > const_tshape_ptr
void set_height(const unsigned height)
A simple canvas which can be drawn upon.
void parse_cfg(const config &cfg)
Parses a config object.
void blit(surface &surf, SDL_Rect rect)
Blits the canvas unto another surface.
std::vector< tshape_ptr > shapes_
Vector with the shapes to draw.
unsigned get_width() const
GLint GLint GLint GLint GLint GLint GLsizei GLsizei height
boost::intrusive_ptr< tshape > tshape_ptr
void set_is_dirty(const bool is_dirty)
unsigned get_height() const
GLint GLint GLint GLint GLint GLint GLsizei width
A config object defines a single node in a WML file, with access to child nodes.
GLsizei const GLcharARB ** string
game_logic::map_formula_callable variables_
The variables of the canvas.