Namespaces | Defines

gui/auxiliary/canvas.cpp File Reference

Implementation of canvas.hpp. More...

#include "gui/auxiliary/canvas.hpp"
#include "config.hpp"
#include "../../image.hpp"
#include "foreach.hpp"
#include "formatter.hpp"
#include "gettext.hpp"
#include "gui/auxiliary/formula.hpp"
#include "gui/auxiliary/log.hpp"
#include "gui/widgets/helper.hpp"
#include "../../text.hpp"
#include "wml_exception.hpp"
Include dependency graph for canvas.cpp:

Go to the source code of this file.

Namespaces

namespace  gui2
 

A class inherited from ttext_box that displays its input as stars.


Defines

#define GETTEXT_DOMAIN   "wesnoth-lib"

Detailed Description

Implementation of canvas.hpp.

Definition in file canvas.cpp.


Define Documentation

#define GETTEXT_DOMAIN   "wesnoth-lib"

Definition at line 21 of file canvas.cpp.


Variable Documentation

Uint32 border_color_

The border color of the rectangle.

If the color is fully transparent the border isn't drawn.

Definition at line 653 of file canvas.cpp.

Border thickness.

If 0 the fill color is used for the entire widget.

Definition at line 646 of file canvas.cpp.

The number of characters per line.

Definition at line 1240 of file canvas.cpp.

Referenced by gui2::tlabel::can_wrap().

Uint32 color_

The color of the line.

The color of the text.

The color of the circle.

Definition at line 291 of file canvas.cpp.

Uint32 fill_color_

The border color of the rectangle.

If the color is fully transparent the rectangle won't be filled.

Definition at line 660 of file canvas.cpp.

unsigned font_size_

The font size of the text.

Definition at line 1219 of file canvas.cpp.

unsigned font_style_

The style of the text.

Definition at line 1222 of file canvas.cpp.

tformula<unsigned> h_

The height of the rectangle.

The height of the text.

The height of the image.

Definition at line 636 of file canvas.cpp.

The image is cached in this surface.

Definition at line 925 of file canvas.cpp.

tformula<std::string> image_name_

Name of the image.

This value is only used when the image name is a formula. If it isn't a formula the image will be loaded in the constructor. If it's a formula it will be loaded every draw cycles. This allows 'changing' images.

Definition at line 936 of file canvas.cpp.

tformula<int> maximum_height_

The maximum height for the text.

Definition at line 1243 of file canvas.cpp.

tformula<int> maximum_width_

The maximum width for the text.

Definition at line 1237 of file canvas.cpp.

tformula<unsigned> radius_

The radius of the circle.

Definition at line 800 of file canvas.cpp.

tresize_mode resize_mode_

The resize mode for an image.

Definition at line 954 of file canvas.cpp.

SDL_Rect src_clip_

Contains the size of the image.

Definition at line 922 of file canvas.cpp.

tformula<t_string> text_

The text to draw.

Definition at line 1231 of file canvas.cpp.

tformula<PangoAlignment> text_alignment_

The alignment of the text.

Definition at line 1225 of file canvas.cpp.

tformula<bool> text_markup_

The text markup switch of the text.

Definition at line 1234 of file canvas.cpp.

unsigned thickness_

The thickness of the line.

if the value is odd the x and y are the middle of the line. if the value is even the x and y are the middle of a line with width - 1. (0 is special case, does nothing.)

Definition at line 300 of file canvas.cpp.

tformula<bool> vertical_mirror_

Mirror the image over the vertical axis.

Definition at line 957 of file canvas.cpp.

tformula<unsigned> w_

The width of the rectangle.

The width of the text.

The width of the image.

Definition at line 636 of file canvas.cpp.

tformula<unsigned> x1_

The start x coordinate of the line.

Definition at line 285 of file canvas.cpp.

tformula<unsigned> x2_

The end x coordinate of the line.

Definition at line 285 of file canvas.cpp.

tformula<unsigned> x_

The x coordinate of the rectangle.

The x coordinate of the text.

The x coordinate of the image.

The centre x coordinate of the circle.

Definition at line 636 of file canvas.cpp.

tformula<unsigned> y1_

The start y coordinate of the line.

Definition at line 285 of file canvas.cpp.

tformula<unsigned> y2_

The end y coordinate of the line.

Definition at line 285 of file canvas.cpp.

tformula<unsigned> y_

The y coordinate of the rectangle.

The y coordinate of the text.

The y coordinate of the image.

The centre y coordinate of the circle.

Definition at line 636 of file canvas.cpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated by doxygen 1.7.1 on Wed May 23 2012 01:04:43 for The Battle for Wesnoth
Gna! | Forum | Wiki | CIA | devdocs