summaryrefslogtreecommitdiff
path: root/src/lib/edje/edje_convert.h
diff options
context:
space:
mode:
authorGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-04 02:08:14 +0000
committerGustavo Sverzut Barbieri <barbieri@gmail.com>2013-01-04 02:08:14 +0000
commit9ea2ce1041549c90f94062ce5ec145056e7fbdfa (patch)
tree3bcd3fb016bc498a72ff99c8d67c8b7ef2d91718 /src/lib/edje/edje_convert.h
parente2ce20e9a4dfd12bb383a1b60032f2ef7b507850 (diff)
efl: merge edje.
this is still in progress, mostly the multisense stuff is pending. it seems that when we merge ecore_audio in edje the libremix and similar are gone, at least from Edje, and will be in ecore_audio itself (or pulseaudio). Changes: * __UNUSED__ to EINA_UNUSED * binaries (epp, embryo_cc, edje_cc) now consider EFL_RUN_IN_TREE and will assume the binaries are still not installed, running from build tree location (needs more testing, maybe doesn't work with srcdir != builddir, still doesn't solve cross compile builds) SVN revision: 82139
Diffstat (limited to 'src/lib/edje/edje_convert.h')
-rw-r--r--src/lib/edje/edje_convert.h143
1 files changed, 143 insertions, 0 deletions
diff --git a/src/lib/edje/edje_convert.h b/src/lib/edje/edje_convert.h
new file mode 100644
index 0000000000..fcc2781f49
--- /dev/null
+++ b/src/lib/edje/edje_convert.h
@@ -0,0 +1,143 @@
1#ifndef EDJE_CONVERT_H__
2# define EDJE_CONVERT_H__
3
4typedef struct _Old_Edje_Image_Directory Old_Edje_Image_Directory;
5typedef struct _Old_Edje_Font_Directory Old_Edje_Font_Directory;
6typedef struct _Old_Edje_External_Directory Old_Edje_External_Directory;
7typedef struct _Old_Edje_Part Old_Edje_Part;
8typedef struct _Old_Edje_Part_Collection Old_Edje_Part_Collection;
9typedef struct _Old_Edje_Part_Description Old_Edje_Part_Description;
10typedef struct _Old_Edje_Part_Description_Spec_Image Old_Edje_Part_Description_Spec_Image;
11typedef struct _Edje_Data Edje_Data;
12
13struct _Edje_Data
14{
15 const char *key;
16 char *value;
17};
18
19/*----------*/
20
21struct _Old_Edje_Font_Directory
22{
23 Eina_List *entries; /* a list of Edje_Font_Directory_Entry */
24};
25
26struct _Old_Edje_Image_Directory
27{
28 Eina_List *entries; /* a list of Edje_Image_Directory_Entry */
29 Eina_List *sets; /* a list of Edje_Image_Directory_Set */
30};
31
32struct _Old_Edje_External_Directory
33{
34 Eina_List *entries; /* a list of Edje_External_Directory_Entry */
35};
36
37struct _Old_Edje_File
38{
39 const char *path;
40 time_t mtime;
41
42 Old_Edje_External_Directory *external_dir;
43 Old_Edje_Font_Directory *font_dir;
44 Old_Edje_Image_Directory *image_dir;
45 Edje_Part_Collection_Directory *collection_dir;
46 Eina_List *data;
47 Eina_List *styles;
48 Eina_List *color_classes;
49
50 const char *compiler;
51 int version;
52 int feature_ver;
53};
54
55struct _Old_Edje_Part_Collection
56{
57 Eina_List *programs; /* a list of Edje_Program */
58 Eina_List *parts; /* a list of Edje_Part */
59 Eina_List *data;
60
61 int id; /* the collection id */
62
63 Eina_Hash *alias; /* aliasing part*/
64
65 struct {
66 Edje_Size min, max;
67 } prop;
68
69 int references;
70#ifdef EDJE_PROGRAM_CACHE
71 struct {
72 Eina_Hash *no_matches;
73 Eina_Hash *matches;
74 } prog_cache;
75#endif
76
77 Embryo_Program *script; /* all the embryo script code for this group */
78 const char *part;
79
80 unsigned char script_only;
81
82 unsigned char lua_script_only;
83
84 unsigned char checked : 1;
85};
86
87struct _Old_Edje_Part
88{
89 const char *name; /* the name if any of the part */
90 Old_Edje_Part_Description *default_desc; /* the part descriptor for default */
91 Eina_List *other_desc; /* other possible descriptors */
92 const char *source, *source2, *source3, *source4, *source5, *source6;
93 int id; /* its id number */
94 int clip_to_id; /* the part id to clip this one to */
95 Edje_Part_Dragable dragable;
96 Eina_List *items; /* packed items for box and table */
97 unsigned char type; /* what type (image, rect, text) */
98 unsigned char effect; /* 0 = plain... */
99 unsigned char mouse_events; /* it will affect/respond to mouse events */
100 unsigned char repeat_events; /* it will repeat events to objects below */
101 Evas_Event_Flags ignore_flags;
102 unsigned char scale; /* should certain properties scale with edje scale factor? */
103 unsigned char precise_is_inside;
104 unsigned char use_alternate_font_metrics;
105 unsigned char pointer_mode;
106 unsigned char entry_mode;
107 unsigned char select_mode;
108 unsigned char multiline;
109 Edje_Part_Api api;
110};
111
112struct _Old_Edje_Part_Description_Spec_Image
113{
114 Eina_List *tween_list; /* list of Edje_Part_Image_Id */
115 int id; /* the image id to use */
116 int scale_hint; /* evas scale hint */
117 Eina_Bool set; /* if image condition it's content */
118
119 Edje_Part_Description_Spec_Border border;
120 Edje_Part_Description_Spec_Fill fill;
121};
122
123struct _Old_Edje_Part_Description
124{
125 Edje_Part_Description_Common common;
126 Old_Edje_Part_Description_Spec_Image image;
127 Edje_Part_Description_Spec_Text text;
128 Edje_Part_Description_Spec_Box box;
129 Edje_Part_Description_Spec_Table table;
130
131 Eina_List *external_params; /* parameters for external objects */
132};
133
134Edje_File *_edje_file_convert(Eet_File *file, Old_Edje_File *oedf);
135Edje_Part_Collection *_edje_collection_convert(Edje_File *file,
136 Old_Edje_Part_Collection *oedc);
137Edje_Part_Description_Common *_edje_description_convert(int type,
138 Edje_Part_Collection_Directory_Entry *ce,
139 Old_Edje_Part_Description *oed);
140const Edje_File *_edje_file_get(void);
141void _edje_file_set(const Edje_File *edf);
142
143#endif