Freeciv-3.1: /fast/freeciv/nightly/S3_1/client/gui-gtk-4.0/canvas.h Source File

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