1 #ifndef EDJE_CONVERT_H__
2 # define EDJE_CONVERT_H__
5 typedef struct _Old_Edje_File Old_Edje_File;
6 typedef struct _Old_Edje_Image_Directory Old_Edje_Image_Directory;
7 typedef struct _Old_Edje_Font_Directory Old_Edje_Font_Directory;
8 typedef struct _Old_Edje_External_Directory Old_Edje_External_Directory;
9 typedef struct _Old_Edje_Part Old_Edje_Part;
10 typedef struct _Old_Edje_Part_Collection Old_Edje_Part_Collection;
11 typedef struct _Old_Edje_Part_Collection_Directory Old_Edje_Part_Collection_Directory;
12 typedef struct _Old_Edje_Part_Description Old_Edje_Part_Description;
13 typedef struct _Old_Edje_Part_Description_Spec_Image Old_Edje_Part_Description_Spec_Image;
14 typedef struct _Old_Edje_Data Old_Edje_Data;
24 struct _Old_Edje_Font_Directory
26 Eina_List *entries; /* a list of Edje_Font_Directory_Entry */
29 struct _Old_Edje_Image_Directory
31 Eina_List *entries; /* a list of Edje_Image_Directory_Entry */
32 Eina_List *sets; /* a list of Edje_Image_Directory_Set */
35 struct _Old_Edje_External_Directory
37 Eina_List *entries; /* a list of Edje_External_Directory_Entry */
45 Old_Edje_External_Directory *external_dir;
46 Old_Edje_Font_Directory *font_dir;
47 Old_Edje_Image_Directory *image_dir;
48 Old_Edje_Part_Collection_Directory *collection_dir;
51 Eina_List *color_classes;
58 struct _Old_Edje_Part_Collection
60 Eina_List *programs; /* a list of Edje_Program */
61 Eina_List *parts; /* a list of Edje_Part */
64 int id; /* the collection id */
66 Eina_Hash *alias; /* aliasing part*/
73 #ifdef EDJE_PROGRAM_CACHE
75 Eina_Hash *no_matches;
80 Embryo_Program *script; /* all the embryo script code for this group */
83 unsigned char script_only;
85 unsigned char lua_script_only;
87 unsigned char checked : 1;
92 const char *name; /* the name if any of the part */
93 Old_Edje_Part_Description *default_desc; /* the part descriptor for default */
94 Eina_List *other_desc; /* other possible descriptors */
95 const char *source, *source2, *source3, *source4, *source5, *source6;
96 int id; /* its id number */
97 int clip_to_id; /* the part id to clip this one to */
98 Edje_Part_Dragable dragable;
99 Eina_List *items; /* packed items for box and table */
100 unsigned char type; /* what type (image, rect, text) */
101 unsigned char effect; /* 0 = plain... */
102 unsigned char mouse_events; /* it will affect/respond to mouse events */
103 unsigned char repeat_events; /* it will repeat events to objects below */
104 Evas_Event_Flags ignore_flags;
105 unsigned char scale; /* should certain properties scale with edje scale factor? */
106 unsigned char precise_is_inside;
107 unsigned char use_alternate_font_metrics;
108 unsigned char pointer_mode;
109 unsigned char entry_mode;
110 unsigned char select_mode;
111 unsigned char multiline;
115 struct _Old_Edje_Part_Description_Spec_Image
117 Eina_List *tween_list; /* list of Edje_Part_Image_Id */
118 int id; /* the image id to use */
119 int scale_hint; /* evas scale hint */
120 Eina_Bool set; /* if image condition it's content */
122 Edje_Part_Description_Spec_Border border;
123 Edje_Part_Description_Spec_Fill fill;
126 struct _Old_Edje_Part_Description
128 Edje_Part_Description_Common common;
129 Old_Edje_Part_Description_Spec_Image image;
130 Edje_Part_Description_Spec_Text text;
131 Edje_Part_Description_Spec_Box box;
132 Edje_Part_Description_Spec_Table table;
134 Eina_List *external_params; /* parameters for external objects */
137 struct _Old_Edje_Part_Collection_Directory
139 Eina_List *entries; /* a list of Edje_Part_Collection_Directory_Entry */
144 Edje_File *_edje_file_convert(Eet_File *ef, Old_Edje_File *oedf);
145 Edje_Part_Collection *_edje_collection_convert(Eet_File *ef,
146 Edje_Part_Collection_Directory_Entry *ce,
147 Old_Edje_Part_Collection *oedc);
148 Edje_Part_Description_Common *_edje_description_convert(int type,
149 Edje_Part_Collection_Directory_Entry *ce,
150 Old_Edje_Part_Description *oed);
151 const Edje_File *_edje_file_get(void);
152 void _edje_file_set(const Edje_File *edf);