Freeciv-3.2
Loading...
Searching...
No Matches
sprite.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__SPRITE_H
14#define FC__SPRITE_H
15
16#include <gtk/gtk.h>
17
18/* client */
19#include "sprite_g.h"
20
25
26struct sprite *sprite_scale(struct sprite *src, int new_w, int new_h);
27void sprite_get_bounding_box(struct sprite *sprite, int *start_x,
28 int *start_y, int *end_x, int *end_y);
29struct sprite *crop_blankspace(struct sprite *s);
30
31/********************************************************************
32 Note: a sprite cannot be changed after these functions are called!
33********************************************************************/
36
37GdkPixbuf *create_extra_pixbuf(const struct extra_type *pextra);
38
39#endif /* FC__SPRITE_H */
struct canvas int int struct sprite int int int int height
Definition canvas_g.h:44
struct canvas int int struct sprite int int int width
Definition canvas_g.h:44
char * incite_cost
Definition comments.c:75
struct sprite * sprite_scale(struct sprite *src, int new_w, int new_h)
Definition sprite.c:291
GdkPixbuf * surface_get_pixbuf(cairo_surface_t *surf, int width, int height)
Definition sprite.c:418
GdkPixbuf * sprite_get_pixbuf(struct sprite *sprite)
Definition sprite.c:402
GdkPixbuf * create_extra_pixbuf(const struct extra_type *pextra)
Definition sprite.c:494
void sprite_get_bounding_box(struct sprite *sprite, int *start_x, int *start_y, int *end_x, int *end_y)
Definition sprite.c:321
struct sprite * crop_blankspace(struct sprite *s)
Definition sprite.c:386
cairo_surface_t * surface
Definition sprite.h:23