Hexmap Reference Manual | |||
---|---|---|---|
<<< Previous Page | Home | Up | Next Page >>> |
#include <hexmap.h> struct HexAnimation; struct HexAnimationClass; HexAnimation* hex_animation_new (HexData **images, guint nimages, guint timeout, gboolean start); void hex_animation_set_timeout (HexAnimation *anim, guint timeout); guint hex_animation_get_timeout (HexAnimation *anim); void hex_animation_start (HexAnimation *anim); void hex_animation_stop (HexAnimation *anim); |
A HexAnimation is an example of a derived class of HexTile. Instead of displaying a single image, it cycles through a slideshow of images.
HexAnimation* hex_animation_new (HexData **images, guint nimages, guint timeout, gboolean start); |
create a new HexAnimation
an array of HexData, the images to animate
the number of images
the time per frame, in milliseconds
TRUE to start the animation immediately
the newly created HexAnimation
void hex_animation_set_timeout (HexAnimation *anim, guint timeout); |
set the time per frame in a HexAnimation
the time per frame, in milliseconds
guint hex_animation_get_timeout (HexAnimation *anim); |
get the time per frame in a HexAnimation
the time per frame, in milliseconds
void hex_animation_start (HexAnimation *anim); |
Start a HexAnimation running. If the animation is already running, this function has no effect.
void hex_animation_stop (HexAnimation *anim); |
Stop a HexAnimation running. If the animation is not currently running, this function has no effect.