summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2014-05-26 16:09:10 +0300
committerYakov Goldberg <yakov.g@samsung.com>2014-05-26 16:09:10 +0300
commit2dc46e43b0c21d4abbf5698610afc4553aaecc4b (patch)
tree0433cc4aaffea1a896e64444814a76ddef9bc063
parent74a144572acaf21f537d8eb3106ccda440ce3045 (diff)
README up
-rw-r--r--README96
1 files changed, 40 insertions, 56 deletions
diff --git a/README b/README
index ef11bc2..e9f89d1 100644
--- a/README
+++ b/README
@@ -76,59 +76,43 @@ So let's start..
76Main idea is that we don't want to have large hard-to-read resource file. 76Main idea is that we don't want to have large hard-to-read resource file.
77We want to put json comments right into c file. (Anyway we can put all the comments into separate file) 77We want to put json comments right into c file. (Anyway we can put all the comments into separate file)
78 78
79 So part of our source file will look like this: 79/* @egui
80 /** 80{
81 * @egui 81 "main_win":
82 * { 82 {
83 * "win": { 83 "Desc":
84 * "parent" : null, 84 {
85 * "public" : true, 85 "parent":null,
86 * "class" : "elm_win", 86 "class":"Elm_Win",
87 * "constructor" : "elm_obj_win_constructor", 87 "public":true,
88 * "elm_obj_win_constructor" : [null, "ELM_WIN_BASIC"], 88 "type":"widget"
89 * "title_set" : "window!!!", 89 },
90 * "autodel_set" : true, 90 "Properties":
91 * "size_set" : [320, 320], 91 {
92 * "visibility_set" : true, 92 "constructor":["elm_obj_win_constructor"],
93 * "resize_object_add" : "bg" 93 "elm_obj_win_constructor":[null, "ELM_WIN_BASIC"],
94 * } 94 "title":["Egui is Cool! - Autogenerated"],
95 * } 95 "autodel":[true],
96 * @!egui 96 "size":[1000, 650],
97 */ 97 "resize_object_add":["main_bg"],
98 win = eo_add_custom(ELM_OBJ_WIN_CLASS, NULL, elm_obj_win_constructor("window", ELM_WIN_BASIC)); 98 "resize_object_add":["main_box"],
99 eo_do(win, evas_obj_size_set(320, 320)); 99 "visibility":[true]
100 eo_do(win, evas_obj_visibility_set(EINA_TRUE)); 100 }
101 eo_do(win, elm_obj_win_title_set("window!!!")); 101 }
102 eo_do(win, elm_obj_win_autodel_set(EINA_TRUE)); 102 }
103 103@!egui */
104 /** 104 main_win = eo_add_custom(ELM_OBJ_WIN_CLASS, NULL, elm_obj_win_constructor(NULL, ELM_WIN_BASIC));
105 * @egui 105 eo_unref(main_win);
106 * { 106 pub_widgets.main_win = main_win;
107 * "but1" : { 107 eo_do(main_win, elm_obj_win_title_set("Egui is Cool!"));
108 * "parent" : "win", 108 eo_do(main_win, elm_obj_win_autodel_set(EINA_TRUE));
109 * "public" : false, 109 eo_do(main_win, evas_obj_size_set(1000, 650));
110 * "class" : "elm_button", 110 eo_do(main_win, elm_obj_win_resize_object_add(main_bg));
111 * "constructor" : "eo_constructor", 111 eo_do(main_win, elm_obj_win_resize_object_add(main_box));
112 * "eo_constructor" : null, 112 eo_do(main_win, evas_obj_visibility_set(EINA_TRUE));
113 * "color_set" : [10, 255, 0, 255], 113
114 * "visibility_set" : true, 114 In this example, "main_win" is widgets,
115 * "part_text_set" : [null, "button1"], 115 "parent", "public", "size" etc - are properties
116 * "size_set" : [100, 50],
117 * "position_set" : [40, 20]
118 * }
119 * }
120 * @!egui
121 */
122
123 but1 = eo_add(ELM_OBJ_BUTTON_CLASS, win);
124 eo_do(but1, evas_obj_color_set(0, 250, 0, 255));
125 eo_do(but1, evas_obj_position_set(40, 20));
126 eo_do(but1, evas_obj_size_set(100, 50));
127 eo_do(but1, evas_obj_visibility_set(EINA_TRUE));
128 eo_do(but1, elm_wdg_part_text_set(NULL, "button1"));
129
130 In this example, "win" and "but1" are widgets,
131 "parent", "public", "size_set" etc - are properties
132 116
133 Different properties can be seen in json. 117 Different properties can be seen in json.
134 Some of them are shorter names of well-known evas/elementary functions, 118 Some of them are shorter names of well-known evas/elementary functions,
@@ -215,7 +199,7 @@ We want to put json comments right into c file. (Anyway we can put all the comme
215 199
216 > git clone git://git.enlightenment.org/core/efl.git 200 > git clone git://git.enlightenment.org/core/efl.git
217 > cd efl 201 > cd efl
218 > git checkout devs/yakov/eo_class_mro_get 202 > git checkout devs/tasn/eo_events_new
219 Build and install this branch. 203 Build and install this branch.
220 You can also rebase it on top of origin/master if needed. 204 You can also rebase it on top of origin/master if needed.
221 > git rebase origin/master 205 > git rebase origin/master
@@ -238,13 +222,13 @@ We want to put json comments right into c file. (Anyway we can put all the comme
238 > ./src/bin/egui -f ../examples/example.c -s -t Tablet 222 > ./src/bin/egui -f ../examples/example.c -s -t Tablet
239 223
240 Generate source code: 224 Generate source code:
241 > ./src/bin/egui -f ../examples/example.c -g -o new 225 > ./src/bin/egui -f ../examples/example.c -e c -o new
242 - new.c and new.h will be generated in current dir 226 - new.c and new.h will be generated in current dir
243 227
244 Run simulation on newly generated file: 228 Run simulation on newly generated file:
245 > ./src/bin/egui -f new.c -s 229 > ./src/bin/egui -f new.c -s
246 230
247 Run kind of Gui Builder: 231 Run Gui Builder and open file:
248 > ./src/bin/egui -f new.c 232 > ./src/bin/egui -f new.c
249 233
250 234