~amiluc-bis/+junk/Ella-Renaissance

« back to all changes in this revision

Viewing changes to src/export/flash.h

  • Committer: kevlar
  • Date: 2011-12-13 20:24:12 UTC
  • Revision ID: amiluc_bis@yahoo.fr-20111213202412-vwi5zhb7xyarp7y3
initializing project

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* Copyright (C) 2010 Lucas Baudin
 
2
*
 
3
* This file is part of Ella Project.
 
4
*
 
5
* Ella Project is free software : you can redistribute it and/or modify
 
6
* it under the terms of the GNU General Public License as published by
 
7
* the Free Software Foundation, either version 3 of the License, or
 
8
* (at your option) any later version.
 
9
*
 
10
* Ella Project is distributed in the hope that it will be useful,
 
11
* but WITHOUT ANY WARRANTY ; without even the implied warranty of
 
12
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
 
13
* GNU General Public License for more details.
 
14
*
 
15
* You should have received a copy of the GNU General Public License
 
16
* along with Ella Project. If not, see <http ://www.gnu.org/licenses/>.
 
17
*/
 
18
#ifndef H_FLASH_20101130
 
19
#define H_FLASH_20101130
 
20
 
 
21
#include <gtk/gtk.h>
 
22
#include "editor/editor.h"
 
23
#include "filesfuncs.h"
 
24
#include "callbacks.h"
 
25
#include "export/flash_utils.h"
 
26
#include "export/flash_items.h"
 
27
#include "ella-files.h"
 
28
 
 
29
/** Write the header to the file f to be compiled afterwards by swfc. */
 
30
void flash_write_header(FILE* f,
 
31
                        gchar* nom_fich_swf,
 
32
                        guint width,
 
33
                        guint height,
 
34
                        guint version_flash,
 
35
                        guint fps,
 
36
                        GdkColor couleur_fond,
 
37
                        gint marg_x,
 
38
                        gint marge_y);
 
39
 
 
40
/** Main function which is called by the menu File -> export as flash animation.
 
41
 * */
 
42
void export_flash(GtkWidget * win, gboolean preview, gdouble mx, gdouble my, gint total_frames);
 
43
 
 
44
/** Open the flash file (.sc) and init some variables. */
 
45
FILE* flash_open_file(gchar *nom,  GtkWidget * w);
 
46
 
 
47
/** Write the footer and close the file. */
 
48
void flash_close_file(FILE* f, gint max_frames);
 
49
 
 
50
void flash_export_layers(FILE *f,
 
51
                              GtkWidget *pListLayers,
 
52
                                                          gint nb_layers,
 
53
                                                          gint maxframes,
 
54
                              GSList *pile_img,
 
55
                                                          gdouble marge_x,
 
56
                              gdouble marge_y);
 
57
void flash_item_on_stack(FILE *f, gint calque,
 
58
               guint cell, GSList *pile, GooCanvasItem *list, GSList *list_im,
 
59
                           guint effets, gint layer_type,
 
60
                           gdouble marge_x,
 
61
               gdouble marge_y);
 
62
 
 
63
void flash_export_item(FILE *f, gint calque,guint cell,
 
64
           GSList *pile, GooCanvasItem *item,GSList *list_im, guint effets,
 
65
                   gdouble marge_x,
 
66
           gdouble marge_y);
 
67
 
 
68
#endif