diff options
author | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-15 18:24:14 +0400 |
---|---|---|
committer | Vasily_Makarov <danilka.pro@gmail.com> | 2011-06-15 18:24:14 +0400 |
commit | 6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5 (patch) | |
tree | 8a43922891e4f5eb7909d8d2b80f64235760e18d /saedit/sae.h | |
parent | 34dbe2ca8daae2595ee6ff37632a15e68fcc7fc2 (diff) | |
download | evol-tools-6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5.tar.gz evol-tools-6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5.tar.bz2 evol-tools-6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5.tar.xz evol-tools-6c0a4a2bc3809ee49d55fdff7c55c25d3e6ad4a5.zip |
saedit: Review code and add some features
Diffstat (limited to 'saedit/sae.h')
-rw-r--r-- | saedit/sae.h | 59 |
1 files changed, 59 insertions, 0 deletions
diff --git a/saedit/sae.h b/saedit/sae.h new file mode 100644 index 0000000..8f42637 --- /dev/null +++ b/saedit/sae.h @@ -0,0 +1,59 @@ +/*=======================================*\ +| ____ ____ | +| / \ /\ | | +| \____ / \ |____ | +| \ /____\ | | +| \____/prite / \nimation |____ditor | +| | +| Copyleft Vasily_Makarov 2011 | +| | +\*=======================================*/ + +#ifndef SAE_H +#define SAE_H + +typedef struct { + int index; + int offsetX; + int offsetY; + int delay; + GdkPixbuf *pixbuf; + cairo_surface_t *surface; +} Frame; + +Frame *frame_new(int index, int offsetX, int offsetY, int delay); + +typedef struct { + XMLNode *node; + int offsetX; + int offsetY; + int width; + int height; + int spriteset_width; + int spriteset_height; + GdkPixbuf *spriteset; +} Imageset; + +Imageset *imageset_new(); + +typedef struct { + GList *imagesets; + GList *actions; + GList *animations; + GList *animation; + Imageset *imageset; + Frame *sprite; + guint anim_tag; + XMLNode *root; + GtkWidget *imagesets_combo_box; + GtkWidget *actions_combo_box; + GtkWidget *animations_combo_box; + GdkPixbuf *ground; + int offsetX; + int offsetY; +} SAEInfo; + +SAEInfo *sae_info_new(); +GdkPixbuf *sae_info_ground_new(); + +#endif |