Freeciv-3.1
Loading...
Searching...
No Matches
canvas.h
Go to the documentation of this file.
1/**********************************************************************
2 Freeciv - Copyright (C) 1996-2005 - Freeciv Development Team
3 This program is free software; you can redistribute it and/or modify
4 it under the terms of the GNU General Public License as published by
5 the Free Software Foundation; either version 2, or (at your option)
6 any later version.
7
8 This program is distributed in the hope that it will be useful,
9 but WITHOUT ANY WARRANTY; without even the implied warranty of
10 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11 GNU General Public License for more details.
12***********************************************************************/
13#ifndef FC__CANVAS_H
14#define FC__CANVAS_H
15
16#include <gtk/gtk.h>
17
18#include "canvas_g.h"
19
20struct canvas
21{
22 cairo_surface_t *surface;
23 cairo_t *drawable;
24 float zoom;
25};
26
27#define FC_STATIC_CANVAS_INIT { NULL, NULL, 1.0 }
28
29void surface_put_text(cairo_t *cr, int x, int y, float zoom,
30 enum client_font font, struct color *pcolor,
31 const char *text);
32
33#endif /* FC__CANVAS_H */
struct canvas int int struct sprite bool int int fog_y struct canvas struct sprite struct color * pcolor
Definition canvas_g.h:57
struct canvas int int struct sprite bool int int fog_y struct canvas struct sprite struct color int int canvas_y struct canvas struct color enum line_type ltype int start_x int start_y int dx int dy enum client_font
Definition canvas_g.h:69
void surface_put_text(cairo_t *cr, int x, int y, float zoom, enum client_font font, struct color *pcolor, const char *text)
Definition canvas.c:405
float zoom
Definition canvas.h:24
cairo_surface_t * surface
Definition canvas.h:22
cairo_t * drawable
Definition canvas.h:23
Definition colors.h:20