Freeciv-3.2
Loading...
Searching...
No Matches
Functions | Variables
svgflag.c File Reference
#include "fcintl.h"
#include "mem.h"
#include "support.h"
#include "canvas_g.h"
#include "sprite_g.h"
#include "svgflag.h"

Go to the source code of this file.

Functions

bool svg_flag_enable (void)
 
const char ** ordered_gfx_fextensions (void)
 
void free_svg_flag_API (void)
 
void get_flag_dimensions (struct sprite *flag, struct area_rect *rect, int svg_height)
 
void canvas_put_flag_sprite (struct canvas *pcanvas, int canvas_x, int canvas_y, int canvas_w, int canvas_h, struct sprite *flag)
 

Variables

bool _prefer_svg = FALSE
 
static const char ** ordered_extensions = NULL
 

Function Documentation

◆ 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 
)

Put flag sprite to canvas.

Definition at line 137 of file svgflag.c.

Referenced by show_full_citybar().

◆ free_svg_flag_API()

void free_svg_flag_API ( void  )

Free resources allocated for the svgflag module.

Definition at line 109 of file svgflag.c.

Referenced by client_exit().

◆ get_flag_dimensions()

void get_flag_dimensions ( struct sprite flag,
struct area_rect rect,
int  svg_height 
)

Fill flag dimensions to rect.

Definition at line 123 of file svgflag.c.

Referenced by show_full_citybar().

◆ ordered_gfx_fextensions()

const char ** ordered_gfx_fextensions ( void  )

Return gfx file extensions, in adjusted order.

Definition at line 53 of file svgflag.c.

Referenced by load_gfx_file().

◆ svg_flag_enable()

bool svg_flag_enable ( void  )

Try to enable svg flag features.

Returns
Whether operation succeeded

Definition at line 39 of file svgflag.c.

Referenced by qtg_ui_main().

Variable Documentation

◆ _prefer_svg

bool _prefer_svg = FALSE

Definition at line 30 of file svgflag.c.

Referenced by ordered_gfx_fextensions(), and svg_flag_enable().

◆ ordered_extensions

const char** ordered_extensions = NULL
static

Definition at line 32 of file svgflag.c.

Referenced by free_svg_flag_API(), and ordered_gfx_fextensions().