Freeciv-3.2
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/* client */
19#include "canvas_g.h"
20
27
28#define FC_STATIC_CANVAS_INIT \
29 { .surface = NULL, .drawable = NULL, .zoom = 1.0 }
30
31void surface_put_text(cairo_t *cr, int x, int y, float zoom,
32 enum client_font font, struct color *pcolor,
33 const char *text);
34
35#endif /* FC__CANVAS_H */
struct canvas int int int int struct sprite *sprite struct canvas struct color * pcolor
Definition canvas_g.h:56
char * incite_cost
Definition comments.c:75
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:396
struct sprite int int y
Definition sprite_g.h:31
struct sprite int x
Definition sprite_g.h:31
float zoom
Definition canvas.h:25
cairo_surface_t * surface
Definition canvas.h:23
cairo_t * drawable
Definition canvas.h:24
Definition colors.h:21