Freeciv-3.3: /fast/freeciv/nightly/main/client/svgflag.h Source File

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
22 struct area_rect
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);
38void canvas_put_flag_sprite(struct canvas *pcanvas,
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 */
canvas_y
struct canvas int int canvas_y
Definition canvas_g.h:43
canvas_x
struct canvas int canvas_x
Definition canvas_g.h:43
canvas_w
struct canvas int int int canvas_w
Definition canvas_g.h:49
canvas_h
struct canvas int int int int canvas_h
Definition canvas_g.h:49
pcanvas
struct canvas * pcanvas
Definition canvas_g.h:42
area_rect
Definition svgflag.h:23
area_rect::x
int x
Definition svgflag.h:24
area_rect::w
int w
Definition svgflag.h:24
area_rect::y
int y
Definition svgflag.h:24
area_rect::h
int h
Definition svgflag.h:24
canvas
Definition canvas.h:22
sprite
Definition sprite.h:22
free_svg_flag_API
void free_svg_flag_API(void)
Definition svgflag.c:109
canvas_put_flag_sprite
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
_prefer_svg
bool _prefer_svg
Definition svgflag.c:30
svg_flag_enable
bool svg_flag_enable(void)
Definition svgflag.c:39
ordered_gfx_fextensions
const char ** ordered_gfx_fextensions(void)
Definition svgflag.c:53
get_flag_dimensions
void get_flag_dimensions(struct sprite *flag, struct area_rect *rect, int svg_height)
Definition svgflag.c:123