#include <gtk/gtk.h>
#include "sprite_g.h"
Go to the source code of this file.
◆ create_extra_pixbuf()
Create a pixbuf containing a representative image for the given extra type, to be used as an icon in the GUI.
May return NULL on error.
NB: You must call g_object_unref on the non-NULL return value when you no longer need it.
Definition at line 494 of file sprite.c.
◆ crop_blankspace()
Crops all blankspace from a sprite (insofar as is possible as a rectangle)
Definition at line 386 of file sprite.c.
◆ sprite_get_bounding_box()
Method returns the bounding box of a sprite. It assumes a rectangular object/mask. The bounding box contains the border (pixel which have unset pixel as neighbors) pixel.
Definition at line 321 of file sprite.c.
◆ sprite_get_pixbuf()
Render a pixbuf from the sprite.
NOTE: the pixmap and mask of a sprite must not change after this function is called!
Definition at line 402 of file sprite.c.
◆ sprite_scale()
Scales a sprite. If the sprite contains a mask, the mask is scaled as as well.
Definition at line 291 of file sprite.c.
◆ surface_get_pixbuf()
Render a pixbuf from the cairo surface
Definition at line 418 of file sprite.c.