Freeciv-3.3
Loading...
Searching...
No Matches
svgflag.h
Go to the documentation of this file.
1/***********************************************************************
2 Freeciv - Copyright (C) 1996 - A Kjeldberg, L Gregersen, P Unold
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__SVGFLAG_H
14#define FC__SVGFLAG_H
15
16#ifdef __cplusplus
17extern "C" {
18#endif /* __cplusplus */
19
20struct canvas;
21
23{
24 int x, y, w, h;
25};
26
27extern bool _prefer_svg;
28
29bool svg_flag_enable(void);
30#define is_svg_flag_enabled() _prefer_svg
31
32const char **ordered_gfx_fextensions(void);
33
34void free_svg_flag_API(void);
35
36void get_flag_dimensions(struct sprite *flag, struct area_rect *rect,
37 int svg_height);
39 int canvas_x, int canvas_y, int canvas_w, int canvas_h,
40 struct sprite *flag);
41
42#ifdef __cplusplus
43}
44#endif /* __cplusplus */
45
46#endif /* FC__SVGFLAG_H */
struct canvas int int canvas_y
Definition canvas_g.h:43
struct canvas int canvas_x
Definition canvas_g.h:43
struct canvas int int int canvas_w
Definition canvas_g.h:49
struct canvas int int int int canvas_h
Definition canvas_g.h:49
struct canvas * pcanvas
Definition canvas_g.h:42
int x
Definition svgflag.h:24
int w
Definition svgflag.h:24
int y
Definition svgflag.h:24
int h
Definition svgflag.h:24
void free_svg_flag_API(void)
Definition svgflag.c:109
void canvas_put_flag_sprite(struct canvas *pcanvas, int canvas_x, int canvas_y, int canvas_w, int canvas_h, struct sprite *flag)
Definition svgflag.c:137
bool _prefer_svg
Definition svgflag.c:30
bool svg_flag_enable(void)
Definition svgflag.c:39
const char ** ordered_gfx_fextensions(void)
Definition svgflag.c:53
void get_flag_dimensions(struct sprite *flag, struct area_rect *rect, int svg_height)
Definition svgflag.c:123