Freeciv-3.3
Loading...
Searching...
No Matches
client
gui-gtk-5.0
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
21
struct
canvas
22
{
23
cairo_surface_t
*
surface
;
24
cairo_t
*
drawable
;
25
float
zoom
;
26
};
27
28
#define FC_STATIC_CANVAS_INIT \
29
{ .surface = NULL, .drawable = NULL, .zoom = 1.0 }
30
31
void
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 */
canvas_g.h
pcolor
struct canvas int int int int struct sprite *sprite struct canvas struct color * pcolor
Definition
canvas_g.h:56
incite_cost
char * incite_cost
Definition
comments.c:76
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:396
y
struct sprite int int y
Definition
sprite_g.h:31
x
struct sprite int x
Definition
sprite_g.h:31
canvas
Definition
canvas.h:22
canvas::zoom
float zoom
Definition
canvas.h:25
canvas::surface
cairo_surface_t * surface
Definition
canvas.h:23
canvas::drawable
cairo_t * drawable
Definition
canvas.h:24
color
Definition
colors.h:21
Generated on Sun Dec 22 2024 22:30:33 for Freeciv-3.3 by
1.9.8