aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/libraries/edje/src/lib/edje_convert.h
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-04 18:41:13 +1000
committerDavid Walter Seikel2012-01-04 18:41:13 +1000
commitdd7595a3475407a7fa96a97393bae8c5220e8762 (patch)
treee341e911d7eb911a51684a7412ef7f7c7605d28e /libraries/edje/src/lib/edje_convert.h
parentAdd the skeleton. (diff)
downloadSledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.zip
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.gz
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.bz2
SledjHamr-dd7595a3475407a7fa96a97393bae8c5220e8762.tar.xz
Add the base Enlightenment Foundation Libraries - eina, eet, evas, ecore, embryo, and edje.
Note that embryo wont be used, but I'm not sure yet if you can build edje without it.
Diffstat (limited to '')
-rw-r--r--libraries/edje/src/lib/edje_convert.h143
1 files changed, 143 insertions, 0 deletions
diff --git a/libraries/edje/src/lib/edje_convert.h b/libraries/edje/src/lib/edje_convert.h
new file mode 100644
index 0000000..fcc2781
--- /dev/null
+++ b/libraries/edje/src/lib/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