summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYakov Goldberg <yakov.g@samsung.com>2014-05-29 17:42:41 +0300
committerYakov Goldberg <yakov.g@samsung.com>2014-05-29 17:45:46 +0300
commitf19af3f10950adfe451609ed49de9dd8b6c306d5 (patch)
treed5e3efe2d89d83c5753cd3e820c32d53111417e0
parent7a3e3182ff5edcab801715f2d4df959de1558a92 (diff)
examples updated
-rw-r--r--examples/example.c755
-rw-r--r--examples/example.h6
2 files changed, 566 insertions, 195 deletions
diff --git a/examples/example.c b/examples/example.c
index 3b443f0..80e4084 100644
--- a/examples/example.c
+++ b/examples/example.c
@@ -1,12 +1,14 @@
1#include <Elementary.h> 1#include <Elementary.h>
2#include "elm_widget.h"
3#include "elm_widget_container.h" 2#include "elm_widget_container.h"
4#include "elm_interface_scrollable.h" 3#include "elm_interface_scrollable.h"
5#include "example.h" 4#include "example.h"
6 5
7static GUI pub_widgets; 6static GUI pub_widgets;
8 7
9static Eo *elm_clock1; 8static Eo *elm_menu1;
9static Eo *elm_table1;
10static Eo *elm_image1;
11static Eo *elm_image2;
10/* @egui 12/* @egui
11{ 13{
12 "Resources": 14 "Resources":
@@ -14,14 +16,85 @@ static Eo *elm_clock1;
14 "Desc": 16 "Desc":
15 { 17 {
16 "type":"resource" 18 "type":"resource"
19 },
20 "Strings":
21 {
22 "id_open":"Open",
23 "id_close":"Close"
24 },
25 "Images":
26 {
27 "im_tux":"/home/yakov/tux.png",
28 "im_yak":"/home/yakov/yak-hi.png"
29 },
30 "Sequences":["BigBang", "show_menu", "show_table", "hide_table", "show_tux", "hide_tux", "show_minion", "hide_minion", "open_win2", "user_cb"],
31 "Eo_Callbacks":
32 {
33 "_callback_name":"_callback_name",
34 "bt_alias":"_bt_callback"
35 },
36 "Evas_Smart_Callbacks":
37 {
38 "evas_smart":"_evas_smart_cb"
39 },
40 "Evas_Callbacks":
41 {
42 "evas_cb":"_evas_cb"
43 }
44 }
45 }
46@!egui */
47/* @egui
48{
49 "Settings":
50 {
51 "Desc":
52 {
53 "type":"settings"
54 },
55 "Settings":
56 {
57 "project":"project_name"
17 } 58 }
18 } 59 }
19 } 60 }
20@!egui */ 61@!egui */
62extern Eina_Bool
63_callback_name(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info);
64extern Eina_Bool
65_bt_callback(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info);
66extern void
67_evas_smart_cb(void *data, Evas_Object *obj, void *event_info);
68extern void
69_evas_cb(void *data, Evas *e, Evas_Object *obj, void *event_info);
70
71/* @egui
72{
73 "show_menu":
74 {
75 "Desc":
76 {
77 "type":"sequence",
78 "public":true
79 },
80 "Actions":
81 {
82 "Modification":["elm_menu1", "visibility", [true]]
83 }
84 }
85 }
86@!egui */
87Eina_Bool
88project_name_show_menu(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
89{
90 eo_do(elm_menu1, evas_obj_visibility_set(EINA_TRUE));
91 return EO_CALLBACK_CONTINUE;
92}
93
21 94
22/* @egui 95/* @egui
23{ 96{
24 "show_clock": 97 "show_table":
25 { 98 {
26 "Desc": 99 "Desc":
27 { 100 {
@@ -29,22 +102,22 @@ static Eo *elm_clock1;
29 }, 102 },
30 "Actions": 103 "Actions":
31 { 104 {
32 "Modification":["elm_clock1", "visibility_set", [true]] 105 "Modification":["elm_table1", "visibility", [true]]
33 } 106 }
34 } 107 }
35 } 108 }
36@!egui */ 109@!egui */
37static Eina_Bool 110static Eina_Bool
38_sequence_show_clock_execute(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED) 111project_name_show_table(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
39{ 112{
40 eo_do(elm_clock1, evas_obj_visibility_set(EINA_TRUE)); 113 eo_do(elm_table1, evas_obj_visibility_set(EINA_TRUE));
41 return EO_CALLBACK_CONTINUE; 114 return EO_CALLBACK_CONTINUE;
42} 115}
43 116
44 117
45/* @egui 118/* @egui
46{ 119{
47 "hide_clock": 120 "hide_table":
48 { 121 {
49 "Desc": 122 "Desc":
50 { 123 {
@@ -52,15 +125,15 @@ _sequence_show_clock_execute(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const
52 }, 125 },
53 "Actions": 126 "Actions":
54 { 127 {
55 "Modification":["elm_clock1", "visibility_set", [false]] 128 "Modification":["elm_table1", "visibility", [false]]
56 } 129 }
57 } 130 }
58 } 131 }
59@!egui */ 132@!egui */
60static Eina_Bool 133static Eina_Bool
61_sequence_hide_clock_execute(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED) 134project_name_hide_table(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
62{ 135{
63 eo_do(elm_clock1, evas_obj_visibility_set(EINA_FALSE)); 136 eo_do(elm_table1, evas_obj_visibility_set(EINA_FALSE));
64 return EO_CALLBACK_CONTINUE; 137 return EO_CALLBACK_CONTINUE;
65} 138}
66 139
@@ -69,15 +142,15 @@ _create_elm_win2()
69{ 142{
70 Eo *elm_win2; 143 Eo *elm_win2;
71 Eo *elm_win2_main_menu; 144 Eo *elm_win2_main_menu;
72 Elm_Object_Item *elm_win2_main_menu_it0;
73 Elm_Object_Item *elm_win2_main_menu_it1;
74 Eo *elm_bg2; 145 Eo *elm_bg2;
75 Eo *elm_box2; 146 Eo *elm_box2;
76 Eo *elm_button3; 147 Eo *elm_calendar1;
77 Eo *elm_table1; 148 Eo *elm_button2;
78 Eo *elm_button4; 149 Eo *elm_icon1;
79 Eo *elm_button5; 150 Eo *elm_image3;
80 Eo *elm_label2; 151 Eo *elm_image4;
152 Eo *elm_image5;
153 Elm_Object_Item *elm_menu1_it0;
81 154
82/* @egui 155/* @egui
83{ 156{
@@ -91,21 +164,21 @@ _create_elm_win2()
91 }, 164 },
92 "Properties": 165 "Properties":
93 { 166 {
94 "visibility_set":[true], 167 "visibility":[true],
95 "constructor":["elm_obj_win_constructor"], 168 "constructor":["elm_obj_win_constructor"],
96 "elm_obj_win_constructor":[null, "ELM_WIN_BASIC"], 169 "elm_obj_win_constructor":[null, "ELM_WIN_BASIC"],
97 "size_set":[515, 464], 170 "size":[463, 568],
98 "title_set":["elm_win2"], 171 "title":["elm_win2"],
172 "autodel":[true],
99 "resize_object_add":["elm_bg2"], 173 "resize_object_add":["elm_bg2"],
100 "resize_object_add":["elm_box2"], 174 "resize_object_add":["elm_box2"]
101 "autodel_set":[true]
102 } 175 }
103 } 176 }
104 } 177 }
105@!egui */ 178@!egui */
106 elm_win2 = eo_add_custom(ELM_OBJ_WIN_CLASS, NULL, elm_obj_win_constructor(NULL, ELM_WIN_BASIC)); 179 elm_win2 = eo_add_custom(ELM_OBJ_WIN_CLASS, NULL, elm_obj_win_constructor(NULL, ELM_WIN_BASIC));
107 eo_unref(elm_win2); 180 eo_unref(elm_win2);
108 eo_do(elm_win2, evas_obj_size_set(515, 464)); 181 eo_do(elm_win2, evas_obj_size_set(463, 568));
109 eo_do(elm_win2, elm_obj_win_title_set("elm_win2")); 182 eo_do(elm_win2, elm_obj_win_title_set("elm_win2"));
110 eo_do(elm_win2, elm_obj_win_autodel_set(EINA_TRUE)); 183 eo_do(elm_win2, elm_obj_win_autodel_set(EINA_TRUE));
111/* @egui 184/* @egui
@@ -121,49 +194,12 @@ _create_elm_win2()
121 "Properties": 194 "Properties":
122 {}, 195 {},
123 "Items": 196 "Items":
124 { 197 {}
125 "it0":
126 {
127 "type":"regular",
128 "icon":null,
129 "label":"Show",
130 "Items":
131 {
132 "it2":
133 {
134 "type":"regular",
135 "icon":null,
136 "label":"Clock",
137 "callback":"show_clock"
138 }
139 }
140 },
141 "it1":
142 {
143 "type":"regular",
144 "icon":null,
145 "label":"Hide",
146 "Items":
147 {
148 "it3":
149 {
150 "type":"regular",
151 "icon":null,
152 "label":"Clock",
153 "callback":"hide_clock"
154 }
155 }
156 }
157 }
158 } 198 }
159 } 199 }
160@!egui */ 200@!egui */
161 elm_win2_main_menu = eo_add(ELM_OBJ_MENU_CLASS, elm_win2); 201 elm_win2_main_menu = eo_add(ELM_OBJ_MENU_CLASS, elm_win2);
162 eo_unref(elm_win2_main_menu); 202 eo_unref(elm_win2_main_menu);
163 elm_win2_main_menu_it0 = eo_do(elm_win2_main_menu, elm_obj_menu_item_add(NULL, NULL, "Show", NULL, NULL));
164 eo_do(elm_win2_main_menu, elm_obj_menu_item_add(elm_win2_main_menu_it0, NULL, "Clock", _sequence_show_clock_execute, NULL));
165 elm_win2_main_menu_it1 = eo_do(elm_win2_main_menu, elm_obj_menu_item_add(NULL, NULL, "Hide", NULL, NULL));
166 eo_do(elm_win2_main_menu, elm_obj_menu_item_add(elm_win2_main_menu_it1, NULL, "Clock", _sequence_hide_clock_execute, NULL));
167/* @egui 203/* @egui
168{ 204{
169 "elm_bg2": 205 "elm_bg2":
@@ -176,9 +212,11 @@ _create_elm_win2()
176 }, 212 },
177 "Properties": 213 "Properties":
178 { 214 {
179 "visibility_set":[true], 215 "visibility":[true],
180 "part_text_set":[null, "elm_bg2"], 216 "part_text":[null, "elm_bg2"],
181 "size_hint_weight_set":[1, 1] 217 "size_hint_weight":[1, 1],
218 "file":["im_tux", null],
219 "position":[0, 0]
182 } 220 }
183 } 221 }
184 } 222 }
@@ -188,6 +226,8 @@ _create_elm_win2()
188 eo_do(elm_bg2, evas_obj_visibility_set(EINA_TRUE)); 226 eo_do(elm_bg2, evas_obj_visibility_set(EINA_TRUE));
189 eo_do(elm_bg2, elm_obj_widget_part_text_set(NULL, "elm_bg2")); 227 eo_do(elm_bg2, elm_obj_widget_part_text_set(NULL, "elm_bg2"));
190 eo_do(elm_bg2, evas_obj_size_hint_weight_set(1.000000, 1.000000)); 228 eo_do(elm_bg2, evas_obj_size_hint_weight_set(1.000000, 1.000000));
229 eo_do(elm_bg2, elm_obj_bg_file_set("/home/yakov/tux.png", NULL));
230 eo_do(elm_bg2, evas_obj_position_set(0, 0));
191 eo_do(elm_win2, elm_obj_win_resize_object_add(elm_bg2)); 231 eo_do(elm_win2, elm_obj_win_resize_object_add(elm_bg2));
192/* @egui 232/* @egui
193{ 233{
@@ -201,11 +241,11 @@ _create_elm_win2()
201 }, 241 },
202 "Properties": 242 "Properties":
203 { 243 {
204 "visibility_set":[true], 244 "visibility":[true],
205 "part_text_set":[null, "elm_box2"], 245 "part_text":[null, "elm_box2"],
206 "size_hint_weight_set":[1, 1] 246 "size_hint_weight":[1, 1]
207 }, 247 },
208 "Contains":["elm_button3", "elm_clock1", "elm_table1"] 248 "Contains":["elm_button2", "elm_table1", "elm_calendar1"]
209 } 249 }
210 } 250 }
211@!egui */ 251@!egui */
@@ -217,7 +257,31 @@ _create_elm_win2()
217 eo_do(elm_win2, elm_obj_win_resize_object_add(elm_box2)); 257 eo_do(elm_win2, elm_obj_win_resize_object_add(elm_box2));
218/* @egui 258/* @egui
219{ 259{
220 "elm_button3": 260 "elm_calendar1":
261 {
262 "Desc":
263 {
264 "parent":"elm_box2",
265 "class":"Elm_Calendar",
266 "type":"widget"
267 },
268 "Properties":
269 {
270 "visibility":[true],
271 "part_text":[null, "elm_calendar1"],
272 "size_hint_weight":[1, 1]
273 }
274 }
275 }
276@!egui */
277 elm_calendar1 = eo_add(ELM_OBJ_CALENDAR_CLASS, elm_box2);
278 eo_unref(elm_calendar1);
279 eo_do(elm_calendar1, evas_obj_visibility_set(EINA_TRUE));
280 eo_do(elm_calendar1, elm_obj_widget_part_text_set(NULL, "elm_calendar1"));
281 eo_do(elm_calendar1, evas_obj_size_hint_weight_set(1.000000, 1.000000));
282/* @egui
283{
284 "elm_button2":
221 { 285 {
222 "Desc": 286 "Desc":
223 { 287 {
@@ -227,18 +291,56 @@ _create_elm_win2()
227 }, 291 },
228 "Properties": 292 "Properties":
229 { 293 {
230 "visibility_set":[true], 294 "visibility":[true],
231 "part_text_set":[null, "elm_button3"], 295 "part_text":[null, "Menu"],
232 "size_hint_weight_set":[1, 1] 296 "size_hint_weight":[1, 1]
297 },
298 "Callbacks":
299 {
300 "clicked":"show_menu"
301 },
302 "Contains":
303 {
304 "elm_icon1":[null]
233 } 305 }
234 } 306 }
235 } 307 }
236@!egui */ 308@!egui */
237 elm_button3 = eo_add(ELM_OBJ_BUTTON_CLASS, elm_box2); 309 elm_button2 = eo_add(ELM_OBJ_BUTTON_CLASS, elm_box2);
238 eo_unref(elm_button3); 310 eo_unref(elm_button2);
239 eo_do(elm_button3, evas_obj_visibility_set(EINA_TRUE)); 311 eo_do(elm_button2, evas_obj_visibility_set(EINA_TRUE));
240 eo_do(elm_button3, elm_obj_widget_part_text_set(NULL, "elm_button3")); 312 eo_do(elm_button2, elm_obj_widget_part_text_set(NULL, "Menu"));
241 eo_do(elm_button3, evas_obj_size_hint_weight_set(1.000000, 1.000000)); 313 eo_do(elm_button2, evas_obj_size_hint_weight_set(1.000000, 1.000000));
314 eo_do(elm_button2, eo_event_callback_add(EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, project_name_show_menu, NULL));
315/* @egui
316{
317 "elm_icon1":
318 {
319 "Desc":
320 {
321 "parent":"elm_button2",
322 "class":"Elm_Icon",
323 "type":"widget"
324 },
325 "Properties":
326 {
327 "visibility":[true],
328 "part_text":[null, "elm_icon1"],
329 "size_hint_weight":[1, 1],
330 "file":["/home/yakov/logo.png", null],
331 "size":[100, 100]
332 }
333 }
334 }
335@!egui */
336 elm_icon1 = eo_add(ELM_OBJ_ICON_CLASS, elm_button2);
337 eo_unref(elm_icon1);
338 eo_do(elm_icon1, evas_obj_visibility_set(EINA_TRUE));
339 eo_do(elm_icon1, elm_obj_widget_part_text_set(NULL, "elm_icon1"));
340 eo_do(elm_icon1, evas_obj_size_hint_weight_set(1.000000, 1.000000));
341 eo_do(elm_icon1, elm_obj_image_file_set("/home/yakov/logo.png", NULL));
342 eo_do(elm_icon1, evas_obj_size_set(100, 100));
343 eo_do(elm_button2, elm_obj_container_content_set(NULL, elm_icon1));
242/* @egui 344/* @egui
243{ 345{
244 "elm_table1": 346 "elm_table1":
@@ -251,15 +353,16 @@ _create_elm_win2()
251 }, 353 },
252 "Properties": 354 "Properties":
253 { 355 {
254 "visibility_set":[true], 356 "visibility":[true],
255 "part_text_set":[null, "elm_table1"], 357 "part_text":[null, "elm_table1"],
256 "size_hint_weight_set":[1, 1] 358 "size_hint_weight":[1, 1],
359 "size_hint_align":[-1, -1]
257 }, 360 },
258 "Contains": 361 "Contains":
259 { 362 {
260 "elm_button4":[0, 0, 1, 1], 363 "elm_image3":[0, 0, 1, 1],
261 "elm_button5":[1, 1, 1, 1], 364 "elm_image4":[1, 1, 1, 1],
262 "elm_label2":[1, 0, 1, 1] 365 "elm_image5":[0, 1, 1, 1]
263 } 366 }
264 } 367 }
265 } 368 }
@@ -269,119 +372,172 @@ _create_elm_win2()
269 eo_do(elm_table1, evas_obj_visibility_set(EINA_TRUE)); 372 eo_do(elm_table1, evas_obj_visibility_set(EINA_TRUE));
270 eo_do(elm_table1, elm_obj_widget_part_text_set(NULL, "elm_table1")); 373 eo_do(elm_table1, elm_obj_widget_part_text_set(NULL, "elm_table1"));
271 eo_do(elm_table1, evas_obj_size_hint_weight_set(1.000000, 1.000000)); 374 eo_do(elm_table1, evas_obj_size_hint_weight_set(1.000000, 1.000000));
375 eo_do(elm_table1, evas_obj_size_hint_align_set(-1.000000, -1.000000));
376 eo_do(elm_box2, elm_obj_box_pack_end(elm_button2));
377 eo_do(elm_box2, elm_obj_box_pack_end(elm_table1));
378 eo_do(elm_box2, elm_obj_box_pack_end(elm_calendar1));
272/* @egui 379/* @egui
273{ 380{
274 "elm_button4": 381 "elm_image3":
275 { 382 {
276 "Desc": 383 "Desc":
277 { 384 {
278 "parent":"elm_table1", 385 "parent":"elm_table1",
279 "class":"Elm_Button", 386 "class":"Elm_Image",
280 "type":"widget" 387 "type":"widget"
281 }, 388 },
282 "Properties": 389 "Properties":
283 { 390 {
284 "visibility_set":[true], 391 "visibility":[true],
285 "part_text_set":[null, "elm_button4"], 392 "part_text":[null, "elm_image3"],
286 "size_hint_weight_set":[1, 1] 393 "size_hint_weight":[1, 1],
394 "file":["/home/yakov/sponge.png", null],
395 "resizable":[true, true],
396 "size":[100, 100],
397 "size_hint_align":[-1, -1],
398 "position":[0, 300]
287 } 399 }
288 } 400 }
289 } 401 }
290@!egui */ 402@!egui */
291 elm_button4 = eo_add(ELM_OBJ_BUTTON_CLASS, elm_table1); 403 elm_image3 = eo_add(ELM_OBJ_IMAGE_CLASS, elm_table1);
292 eo_unref(elm_button4); 404 eo_unref(elm_image3);
293 eo_do(elm_button4, evas_obj_visibility_set(EINA_TRUE)); 405 eo_do(elm_image3, evas_obj_visibility_set(EINA_TRUE));
294 eo_do(elm_button4, elm_obj_widget_part_text_set(NULL, "elm_button4")); 406 eo_do(elm_image3, elm_obj_widget_part_text_set(NULL, "elm_image3"));
295 eo_do(elm_button4, evas_obj_size_hint_weight_set(1.000000, 1.000000)); 407 eo_do(elm_image3, evas_obj_size_hint_weight_set(1.000000, 1.000000));
408 eo_do(elm_image3, elm_obj_image_file_set("/home/yakov/sponge.png", NULL));
409 eo_do(elm_image3, elm_obj_image_resizable_set(EINA_TRUE, EINA_TRUE));
410 eo_do(elm_image3, evas_obj_size_set(100, 100));
411 eo_do(elm_image3, evas_obj_size_hint_align_set(-1.000000, -1.000000));
412 eo_do(elm_image3, evas_obj_position_set(0, 300));
296/* @egui 413/* @egui
297{ 414{
298 "elm_button5": 415 "elm_image4":
299 { 416 {
300 "Desc": 417 "Desc":
301 { 418 {
302 "parent":"elm_table1", 419 "parent":"elm_table1",
303 "class":"Elm_Button", 420 "class":"Elm_Image",
304 "type":"widget" 421 "type":"widget"
305 }, 422 },
306 "Properties": 423 "Properties":
307 { 424 {
308 "visibility_set":[true], 425 "visibility":[true],
309 "part_text_set":[null, "elm_button5"], 426 "part_text":[null, "elm_image4"],
310 "size_hint_weight_set":[1, 1] 427 "size_hint_weight":[1, 1],
428 "file":["/home/yakov/yak-hi.png", null],
429 "size":[100, 100],
430 "position":[50, 400],
431 "size_hint_align":[-1, -1]
311 } 432 }
312 } 433 }
313 } 434 }
314@!egui */ 435@!egui */
315 elm_button5 = eo_add(ELM_OBJ_BUTTON_CLASS, elm_table1); 436 elm_image4 = eo_add(ELM_OBJ_IMAGE_CLASS, elm_table1);
316 eo_unref(elm_button5); 437 eo_unref(elm_image4);
317 eo_do(elm_button5, evas_obj_visibility_set(EINA_TRUE)); 438 eo_do(elm_image4, evas_obj_visibility_set(EINA_TRUE));
318 eo_do(elm_button5, elm_obj_widget_part_text_set(NULL, "elm_button5")); 439 eo_do(elm_image4, elm_obj_widget_part_text_set(NULL, "elm_image4"));
319 eo_do(elm_button5, evas_obj_size_hint_weight_set(1.000000, 1.000000)); 440 eo_do(elm_image4, evas_obj_size_hint_weight_set(1.000000, 1.000000));
441 eo_do(elm_image4, elm_obj_image_file_set("/home/yakov/yak-hi.png", NULL));
442 eo_do(elm_image4, evas_obj_size_set(100, 100));
443 eo_do(elm_image4, evas_obj_position_set(50, 400));
444 eo_do(elm_image4, evas_obj_size_hint_align_set(-1.000000, -1.000000));
320/* @egui 445/* @egui
321{ 446{
322 "elm_label2": 447 "elm_image5":
323 { 448 {
324 "Desc": 449 "Desc":
325 { 450 {
326 "parent":"elm_table1", 451 "parent":"elm_table1",
327 "class":"Elm_Label", 452 "class":"Elm_Image",
328 "type":"widget" 453 "type":"widget"
329 }, 454 },
330 "Properties": 455 "Properties":
331 { 456 {
332 "visibility_set":[true], 457 "visibility":[true],
333 "part_text_set":[null, "This is table"], 458 "part_text":[null, "elm_image5"],
334 "size_hint_weight_set":[1, 1] 459 "size_hint_weight":[1, 1],
460 "file":["/home/yakov/logo.png", null],
461 "size":[100, 100],
462 "size_hint_align":[-1, -1]
335 } 463 }
336 } 464 }
337 } 465 }
338@!egui */ 466@!egui */
339 elm_label2 = eo_add(ELM_OBJ_LABEL_CLASS, elm_table1); 467 elm_image5 = eo_add(ELM_OBJ_IMAGE_CLASS, elm_table1);
340 eo_unref(elm_label2); 468 eo_unref(elm_image5);
341 eo_do(elm_label2, evas_obj_visibility_set(EINA_TRUE)); 469 eo_do(elm_image5, evas_obj_visibility_set(EINA_TRUE));
342 eo_do(elm_label2, elm_obj_widget_part_text_set(NULL, "This is table")); 470 eo_do(elm_image5, elm_obj_widget_part_text_set(NULL, "elm_image5"));
343 eo_do(elm_label2, evas_obj_size_hint_weight_set(1.000000, 1.000000)); 471 eo_do(elm_image5, evas_obj_size_hint_weight_set(1.000000, 1.000000));
344 eo_do(elm_table1, elm_obj_table_pack(elm_button4, 0, 0, 1, 1)); 472 eo_do(elm_image5, elm_obj_image_file_set("/home/yakov/logo.png", NULL));
345 eo_do(elm_table1, elm_obj_table_pack(elm_button5, 1, 1, 1, 1)); 473 eo_do(elm_image5, evas_obj_size_set(100, 100));
346 eo_do(elm_table1, elm_obj_table_pack(elm_label2, 1, 0, 1, 1)); 474 eo_do(elm_image5, evas_obj_size_hint_align_set(-1.000000, -1.000000));
475 eo_do(elm_table1, elm_obj_table_pack(elm_image3, 0, 0, 1, 1));
476 eo_do(elm_table1, elm_obj_table_pack(elm_image4, 1, 1, 1, 1));
477 eo_do(elm_table1, elm_obj_table_pack(elm_image5, 0, 1, 1, 1));
347/* @egui 478/* @egui
348{ 479{
349 "elm_clock1": 480 "elm_menu1":
350 { 481 {
351 "Desc": 482 "Desc":
352 { 483 {
353 "parent":"elm_box2", 484 "parent":"elm_win2",
354 "class":"Elm_Clock", 485 "class":"Elm_Menu",
355 "type":"widget" 486 "type":"widget"
356 }, 487 },
357 "Properties": 488 "Properties":
358 { 489 {
359 "visibility_set":[true], 490 "visibility":[true],
360 "part_text_set":[null, "elm_clock1"], 491 "part_text":[null, "elm_menu1"],
361 "size_hint_weight_set":[1, 1], 492 "size_hint_weight":[1, 1],
362 "size_hint_align_set":[-1, -1], 493 "menu_move":[300, 50]
363 "size_hint_min_set":[1, 1] 494 },
495 "Items":
496 {
497 "elm_menu1_it0":
498 {
499 "type":"regular",
500 "icon":null,
501 "label":"Table",
502 "callback":null,
503 "Items":
504 {
505 "it1":
506 {
507 "type":"regular",
508 "icon":null,
509 "label":"Show",
510 "callback":null
511 },
512 "it2":
513 {
514 "type":"regular",
515 "icon":null,
516 "label":"Hide",
517 "callback":null
518 }
519 }
520 }
364 } 521 }
365 } 522 }
366 } 523 }
367@!egui */ 524@!egui */
368 elm_clock1 = eo_add(ELM_OBJ_CLOCK_CLASS, elm_box2); 525 elm_menu1 = eo_add(ELM_OBJ_MENU_CLASS, elm_win2);
369 eo_unref(elm_clock1); 526 eo_unref(elm_menu1);
370 eo_do(elm_clock1, evas_obj_visibility_set(EINA_TRUE)); 527 eo_do(elm_menu1, elm_menu1_it0 = elm_obj_menu_item_add(NULL, NULL, "Table", NULL, NULL);
371 eo_do(elm_clock1, elm_obj_widget_part_text_set(NULL, "elm_clock1")); 528 eo_do(elm_menu1, elm_obj_menu_item_add(elm_menu1_it0, NULL, "Show", NULL, NULL);
372 eo_do(elm_clock1, evas_obj_size_hint_weight_set(1.000000, 1.000000)); 529 eo_do(elm_menu1, elm_obj_menu_item_add(elm_menu1_it0, NULL, "Hide", NULL, NULL);
373 eo_do(elm_clock1, evas_obj_size_hint_align_set(-1.000000, -1.000000)); 530 eo_do(elm_menu1, evas_obj_visibility_set(EINA_TRUE));
374 eo_do(elm_clock1, evas_obj_size_hint_min_set(1, 1)); 531 eo_do(elm_menu1, elm_obj_widget_part_text_set(NULL, "elm_menu1"));
375 eo_do(elm_box2, elm_obj_box_pack_end(elm_button3)); 532 eo_do(elm_menu1, evas_obj_size_hint_weight_set(1.000000, 1.000000));
376 eo_do(elm_box2, elm_obj_box_pack_end(elm_clock1)); 533 eo_do(elm_menu1, elm_obj_menu_move(300, 50));
377 eo_do(elm_box2, elm_obj_box_pack_end(elm_table1));
378 eo_do(elm_win2, evas_obj_visibility_set(EINA_TRUE)); 534 eo_do(elm_win2, evas_obj_visibility_set(EINA_TRUE));
379} 535}
380 536
381 537
382/* @egui 538/* @egui
383{ 539{
384 "show_win2": 540 "open_win2":
385 { 541 {
386 "Desc": 542 "Desc":
387 { 543 {
@@ -395,23 +551,139 @@ _create_elm_win2()
395 } 551 }
396@!egui */ 552@!egui */
397static Eina_Bool 553static Eina_Bool
398_sequence_show_win2_execute(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED) 554project_name_open_win2(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
399{ 555{
400 _create_elm_win2(); 556 _create_elm_win2();
401 557
402 return EO_CALLBACK_CONTINUE; 558 return EO_CALLBACK_CONTINUE;
403} 559}
404 560
561
562/* @egui
563{
564 "user_cb":
565 {
566 "Desc":
567 {
568 "type":"sequence"
569 },
570 "Actions":
571 {
572 "User":["bt_alias", ""]
573 }
574 }
575 }
576@!egui */
577static Eina_Bool
578project_name_user_cb(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
579{
580 if (!_bt_callback(NULL, obj, desc, event_info)) return EO_CALLBACK_STOP;
581 return EO_CALLBACK_CONTINUE;
582}
583
584
585/* @egui
586{
587 "show_tux":
588 {
589 "Desc":
590 {
591 "type":"sequence"
592 },
593 "Actions":
594 {
595 "Modification":["elm_image1", "visibility", [true]]
596 }
597 }
598 }
599@!egui */
600static Eina_Bool
601project_name_show_tux(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
602{
603 eo_do(elm_image1, evas_obj_visibility_set(EINA_TRUE));
604 return EO_CALLBACK_CONTINUE;
605}
606
607
608/* @egui
609{
610 "hide_tux":
611 {
612 "Desc":
613 {
614 "type":"sequence"
615 },
616 "Actions":
617 {
618 "Modification":["elm_image1", "visibility", [false]]
619 }
620 }
621 }
622@!egui */
623static Eina_Bool
624project_name_hide_tux(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
625{
626 eo_do(elm_image1, evas_obj_visibility_set(EINA_FALSE));
627 return EO_CALLBACK_CONTINUE;
628}
629
630
631/* @egui
632{
633 "show_minion":
634 {
635 "Desc":
636 {
637 "type":"sequence"
638 },
639 "Actions":
640 {
641 "Modification":["elm_image2", "visibility", [true]]
642 }
643 }
644 }
645@!egui */
646static Eina_Bool
647project_name_show_minion(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
648{
649 eo_do(elm_image2, evas_obj_visibility_set(EINA_TRUE));
650 return EO_CALLBACK_CONTINUE;
651}
652
653
654/* @egui
655{
656 "hide_minion":
657 {
658 "Desc":
659 {
660 "type":"sequence"
661 },
662 "Actions":
663 {
664 "Modification":["elm_image2", "visibility", [false]]
665 }
666 }
667 }
668@!egui */
669static Eina_Bool
670project_name_hide_minion(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
671{
672 eo_do(elm_image2, evas_obj_visibility_set(EINA_FALSE));
673 return EO_CALLBACK_CONTINUE;
674}
675
405static void 676static void
406_create_elm_win1() 677_create_elm_win1()
407{ 678{
408 Eo *elm_win1; 679 Eo *elm_win1;
409 Eo *elm_win1_main_menu; 680 Eo *elm_win1_main_menu;
681 Elm_Object_Item *it0;
682 Elm_Object_Item *it1;
410 Eo *elm_bg1; 683 Eo *elm_bg1;
411 Eo *elm_box1; 684 Eo *elm_box1;
412 Eo *elm_button1; 685 Eo *elm_button1;
413 Eo *elm_label1; 686 Eo *elm_button3;
414 Eo *elm_button2;
415 687
416/* @egui 688/* @egui
417{ 689{
@@ -425,21 +697,21 @@ _create_elm_win1()
425 }, 697 },
426 "Properties": 698 "Properties":
427 { 699 {
428 "visibility_set":[true], 700 "visibility":[true],
429 "constructor":["elm_obj_win_constructor"], 701 "constructor":["elm_obj_win_constructor"],
430 "elm_obj_win_constructor":[null, "ELM_WIN_BASIC"], 702 "elm_obj_win_constructor":[null, "ELM_WIN_BASIC"],
431 "size_set":[521, 451], 703 "size":[421, 560],
432 "title_set":["elm_win1"], 704 "title":["elm_win1"],
433 "resize_object_add":["elm_bg1"], 705 "resize_object_add":["elm_bg1"],
434 "resize_object_add":["elm_box1"], 706 "resize_object_add":["elm_box1"],
435 "autodel_set":[true] 707 "autodel":[true]
436 } 708 }
437 } 709 }
438 } 710 }
439@!egui */ 711@!egui */
440 elm_win1 = eo_add_custom(ELM_OBJ_WIN_CLASS, NULL, elm_obj_win_constructor(NULL, ELM_WIN_BASIC)); 712 elm_win1 = eo_add_custom(ELM_OBJ_WIN_CLASS, NULL, elm_obj_win_constructor(NULL, ELM_WIN_BASIC));
441 eo_unref(elm_win1); 713 eo_unref(elm_win1);
442 eo_do(elm_win1, evas_obj_size_set(521, 451)); 714 eo_do(elm_win1, evas_obj_size_set(421, 560));
443 eo_do(elm_win1, elm_obj_win_title_set("elm_win1")); 715 eo_do(elm_win1, elm_obj_win_title_set("elm_win1"));
444 eo_do(elm_win1, elm_obj_win_autodel_set(EINA_TRUE)); 716 eo_do(elm_win1, elm_obj_win_autodel_set(EINA_TRUE));
445/* @egui 717/* @egui
@@ -455,12 +727,67 @@ _create_elm_win1()
455 "Properties": 727 "Properties":
456 {}, 728 {},
457 "Items": 729 "Items":
458 {} 730 {
731 "it0":
732 {
733 "type":"regular",
734 "icon":"fileopen",
735 "label":"Tux",
736 "callback":null,
737 "Items":
738 {
739 "it8":
740 {
741 "type":"regular",
742 "icon":"list-add",
743 "label":"Show",
744 "callback":"show_tux"
745 },
746 "it9":
747 {
748 "type":"regular",
749 "icon":"search",
750 "label":"Hide",
751 "callback":"hide_tux"
752 }
753 }
754 },
755 "it1":
756 {
757 "type":"regular",
758 "icon":"list-add",
759 "label":"Minion",
760 "callback":null,
761 "Items":
762 {
763 "it2":
764 {
765 "type":"regular",
766 "icon":"fileopen",
767 "label":"Show",
768 "callback":"show_minion"
769 },
770 "it7":
771 {
772 "type":"regular",
773 "icon":"stop",
774 "label":"Hide",
775 "callback":"hide_minion"
776 }
777 }
778 }
779 }
459 } 780 }
460 } 781 }
461@!egui */ 782@!egui */
462 elm_win1_main_menu = eo_add(ELM_OBJ_MENU_CLASS, elm_win1); 783 elm_win1_main_menu = eo_add(ELM_OBJ_MENU_CLASS, elm_win1);
463 eo_unref(elm_win1_main_menu); 784 eo_unref(elm_win1_main_menu);
785 eo_do(elm_win1_main_menu, it0 = elm_obj_menu_item_add(NULL, "fileopen", "Tux", NULL, NULL);
786 eo_do(elm_win1_main_menu, elm_obj_menu_item_add(it0, "list-add", "Show", project_name_show_tux, NULL);
787 eo_do(elm_win1_main_menu, elm_obj_menu_item_add(it0, "search", "Hide", project_name_hide_tux, NULL);
788 eo_do(elm_win1_main_menu, it1 = elm_obj_menu_item_add(NULL, "list-add", "Minion", NULL, NULL);
789 eo_do(elm_win1_main_menu, elm_obj_menu_item_add(it1, "fileopen", "Show", project_name_show_minion, NULL);
790 eo_do(elm_win1_main_menu, elm_obj_menu_item_add(it1, "stop", "Hide", project_name_hide_minion, NULL);
464/* @egui 791/* @egui
465{ 792{
466 "elm_bg1": 793 "elm_bg1":
@@ -473,10 +800,10 @@ _create_elm_win1()
473 }, 800 },
474 "Properties": 801 "Properties":
475 { 802 {
476 "visibility_set":[true], 803 "visibility":[true],
477 "part_text_set":[null, "elm_bg1"], 804 "part_text":[null, "elm_bg1"],
478 "size_hint_weight_set":[1, 1], 805 "size_hint_weight":[1, 1],
479 "bg_color_set":[100, 100, 100, 255] 806 "file":["im_yak", null]
480 } 807 }
481 } 808 }
482 } 809 }
@@ -486,7 +813,7 @@ _create_elm_win1()
486 eo_do(elm_bg1, evas_obj_visibility_set(EINA_TRUE)); 813 eo_do(elm_bg1, evas_obj_visibility_set(EINA_TRUE));
487 eo_do(elm_bg1, elm_obj_widget_part_text_set(NULL, "elm_bg1")); 814 eo_do(elm_bg1, elm_obj_widget_part_text_set(NULL, "elm_bg1"));
488 eo_do(elm_bg1, evas_obj_size_hint_weight_set(1.000000, 1.000000)); 815 eo_do(elm_bg1, evas_obj_size_hint_weight_set(1.000000, 1.000000));
489 eo_do(elm_bg1, elm_obj_bg_color_set(100, 100, 100, 255)); 816 eo_do(elm_bg1, elm_obj_bg_file_set("/home/yakov/yak-hi.png", NULL));
490 eo_do(elm_win1, elm_obj_win_resize_object_add(elm_bg1)); 817 eo_do(elm_win1, elm_obj_win_resize_object_add(elm_bg1));
491/* @egui 818/* @egui
492{ 819{
@@ -500,11 +827,11 @@ _create_elm_win1()
500 }, 827 },
501 "Properties": 828 "Properties":
502 { 829 {
503 "visibility_set":[true], 830 "visibility":[true],
504 "part_text_set":[null, "elm_box1"], 831 "part_text":[null, "elm_box1"],
505 "size_hint_weight_set":[1, 1] 832 "size_hint_weight":[1, 1]
506 }, 833 },
507 "Contains":["elm_button1", "elm_label1", "elm_button2"] 834 "Contains":["elm_image1", "elm_image2", "elm_button1", "elm_button3"]
508 } 835 }
509 } 836 }
510@!egui */ 837@!egui */
@@ -516,59 +843,71 @@ _create_elm_win1()
516 eo_do(elm_win1, elm_obj_win_resize_object_add(elm_box1)); 843 eo_do(elm_win1, elm_obj_win_resize_object_add(elm_box1));
517/* @egui 844/* @egui
518{ 845{
519 "elm_button1": 846 "elm_image1":
520 { 847 {
521 "Desc": 848 "Desc":
522 { 849 {
523 "parent":"elm_box1", 850 "parent":"elm_box1",
524 "class":"Elm_Button", 851 "class":"Elm_Image",
525 "type":"widget" 852 "type":"widget"
526 }, 853 },
527 "Properties": 854 "Properties":
528 { 855 {
529 "visibility_set":[true], 856 "visibility":[true],
530 "part_text_set":[null, "Button"], 857 "part_text":[null, "elm_image1"],
531 "size_hint_weight_set":[1, 1], 858 "size_hint_weight":[1, 1],
532 "size_hint_align_set":[-1, 0], 859 "resizable":[true, true],
533 "color_set":[20, 200, 20, 255] 860 "size_hint_align":[-1, -1],
861 "size":[100, 100],
862 "file":["/home/yakov/tux.png", null]
534 } 863 }
535 } 864 }
536 } 865 }
537@!egui */ 866@!egui */
538 elm_button1 = eo_add(ELM_OBJ_BUTTON_CLASS, elm_box1); 867 elm_image1 = eo_add(ELM_OBJ_IMAGE_CLASS, elm_box1);
539 eo_unref(elm_button1); 868 eo_unref(elm_image1);
540 eo_do(elm_button1, evas_obj_visibility_set(EINA_TRUE)); 869 eo_do(elm_image1, evas_obj_visibility_set(EINA_TRUE));
541 eo_do(elm_button1, elm_obj_widget_part_text_set(NULL, "Button")); 870 eo_do(elm_image1, elm_obj_widget_part_text_set(NULL, "elm_image1"));
542 eo_do(elm_button1, evas_obj_size_hint_weight_set(1.000000, 1.000000)); 871 eo_do(elm_image1, evas_obj_size_hint_weight_set(1.000000, 1.000000));
543 eo_do(elm_button1, evas_obj_size_hint_align_set(-1.000000, 0.000000)); 872 eo_do(elm_image1, elm_obj_image_resizable_set(EINA_TRUE, EINA_TRUE));
544 eo_do(elm_button1, evas_obj_color_set(20, 200, 20, 255)); 873 eo_do(elm_image1, evas_obj_size_hint_align_set(-1.000000, -1.000000));
874 eo_do(elm_image1, evas_obj_size_set(100, 100));
875 eo_do(elm_image1, elm_obj_image_file_set("/home/yakov/tux.png", NULL));
545/* @egui 876/* @egui
546{ 877{
547 "elm_label1": 878 "elm_image2":
548 { 879 {
549 "Desc": 880 "Desc":
550 { 881 {
551 "parent":"elm_box1", 882 "parent":"elm_box1",
552 "class":"Elm_Label", 883 "class":"Elm_Image",
553 "type":"widget" 884 "type":"widget"
554 }, 885 },
555 "Properties": 886 "Properties":
556 { 887 {
557 "visibility_set":[true], 888 "visibility":[true],
558 "part_text_set":[null, "Hello, this is label"], 889 "part_text":[null, "elm_image2"],
559 "size_hint_weight_set":[1, 1] 890 "size_hint_weight":[1, 1],
891 "resizable":[true, true],
892 "file":["/home/yakov/minion.png", null],
893 "size":[100, 100],
894 "size_hint_align":[-1, -1]
560 } 895 }
561 } 896 }
562 } 897 }
563@!egui */ 898@!egui */
564 elm_label1 = eo_add(ELM_OBJ_LABEL_CLASS, elm_box1); 899 elm_image2 = eo_add(ELM_OBJ_IMAGE_CLASS, elm_box1);
565 eo_unref(elm_label1); 900 eo_unref(elm_image2);
566 eo_do(elm_label1, evas_obj_visibility_set(EINA_TRUE)); 901 eo_do(elm_image2, evas_obj_visibility_set(EINA_TRUE));
567 eo_do(elm_label1, elm_obj_widget_part_text_set(NULL, "Hello, this is label")); 902 eo_do(elm_image2, elm_obj_widget_part_text_set(NULL, "elm_image2"));
568 eo_do(elm_label1, evas_obj_size_hint_weight_set(1.000000, 1.000000)); 903 eo_do(elm_image2, evas_obj_size_hint_weight_set(1.000000, 1.000000));
904 eo_do(elm_image2, elm_obj_image_resizable_set(EINA_TRUE, EINA_TRUE));
905 eo_do(elm_image2, elm_obj_image_file_set("/home/yakov/minion.png", NULL));
906 eo_do(elm_image2, evas_obj_size_set(100, 100));
907 eo_do(elm_image2, evas_obj_size_hint_align_set(-1.000000, -1.000000));
569/* @egui 908/* @egui
570{ 909{
571 "elm_button2": 910 "elm_button1":
572 { 911 {
573 "Desc": 912 "Desc":
574 { 913 {
@@ -578,26 +917,56 @@ _create_elm_win1()
578 }, 917 },
579 "Properties": 918 "Properties":
580 { 919 {
581 "visibility_set":[true], 920 "visibility":[true],
582 "part_text_set":[null, "New Window"], 921 "part_text":[null, "New Window"],
583 "size_hint_weight_set":[1, 1] 922 "size_hint_weight":[1, 1]
584 }, 923 },
585 "Callbacks": 924 "Callbacks":
586 { 925 {
587 "clicked":"show_win2" 926 "clicked":"open_win2"
588 } 927 }
589 } 928 }
590 } 929 }
591@!egui */ 930@!egui */
592 elm_button2 = eo_add(ELM_OBJ_BUTTON_CLASS, elm_box1); 931 elm_button1 = eo_add(ELM_OBJ_BUTTON_CLASS, elm_box1);
593 eo_unref(elm_button2); 932 eo_unref(elm_button1);
594 eo_do(elm_button2, evas_obj_visibility_set(EINA_TRUE)); 933 eo_do(elm_button1, evas_obj_visibility_set(EINA_TRUE));
595 eo_do(elm_button2, elm_obj_widget_part_text_set(NULL, "New Window")); 934 eo_do(elm_button1, elm_obj_widget_part_text_set(NULL, "New Window"));
596 eo_do(elm_button2, evas_obj_size_hint_weight_set(1.000000, 1.000000)); 935 eo_do(elm_button1, evas_obj_size_hint_weight_set(1.000000, 1.000000));
597 eo_do(elm_button2, eo_event_callback_add(EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, _sequence_show_win2_execute, NULL)); 936 eo_do(elm_button1, eo_event_callback_add(EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, project_name_open_win2, NULL));
937/* @egui
938{
939 "elm_button3":
940 {
941 "Desc":
942 {
943 "parent":"elm_box1",
944 "class":"Elm_Button",
945 "type":"widget"
946 },
947 "Properties":
948 {
949 "visibility":[true],
950 "part_text":[null, "elm_button3"],
951 "size_hint_weight":[1, 1]
952 },
953 "Callbacks":
954 {
955 "clicked":"bt_alias"
956 }
957 }
958 }
959@!egui */
960 elm_button3 = eo_add(ELM_OBJ_BUTTON_CLASS, elm_box1);
961 eo_unref(elm_button3);
962 eo_do(elm_button3, evas_obj_visibility_set(EINA_TRUE));
963 eo_do(elm_button3, elm_obj_widget_part_text_set(NULL, "elm_button3"));
964 eo_do(elm_button3, evas_obj_size_hint_weight_set(1.000000, 1.000000));
965 eo_do(elm_button3, eo_event_callback_add(EVAS_CLICKABLE_INTERFACE_EVENT_CLICKED, _bt_callback, NULL));
966 eo_do(elm_box1, elm_obj_box_pack_end(elm_image1));
967 eo_do(elm_box1, elm_obj_box_pack_end(elm_image2));
598 eo_do(elm_box1, elm_obj_box_pack_end(elm_button1)); 968 eo_do(elm_box1, elm_obj_box_pack_end(elm_button1));
599 eo_do(elm_box1, elm_obj_box_pack_end(elm_label1)); 969 eo_do(elm_box1, elm_obj_box_pack_end(elm_button3));
600 eo_do(elm_box1, elm_obj_box_pack_end(elm_button2));
601 eo_do(elm_win1, evas_obj_visibility_set(EINA_TRUE)); 970 eo_do(elm_win1, evas_obj_visibility_set(EINA_TRUE));
602} 971}
603 972
@@ -618,19 +987,19 @@ _create_elm_win1()
618 } 987 }
619@!egui */ 988@!egui */
620static Eina_Bool 989static Eina_Bool
621_sequence_BigBang_execute(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED) 990project_name_BigBang(void *data EINA_UNUSED, Eo *obj EINA_UNUSED, const Eo_Event_Description *desc EINA_UNUSED, void *event_info EINA_UNUSED)
622{ 991{
623 _create_elm_win1(); 992 _create_elm_win1();
624 993
625 return EO_CALLBACK_CONTINUE; 994 return EO_CALLBACK_CONTINUE;
626} 995}
627 996
628GUI* get_gui() 997GUI* project_name_gui_get()
629{ 998{
630 static Eina_Bool initialized = EINA_FALSE; 999 static Eina_Bool initialized = EINA_FALSE;
631 if (!initialized) 1000 if (!initialized)
632 { 1001 {
633 _sequence_BigBang_execute(NULL, NULL, NULL, NULL); 1002 project_name_BigBang(NULL, NULL, NULL, NULL);
634 initialized = EINA_TRUE; 1003 initialized = EINA_TRUE;
635 } 1004 }
636 return &pub_widgets; 1005 return &pub_widgets;
diff --git a/examples/example.h b/examples/example.h
index 5db62c6..1b95f5e 100644
--- a/examples/example.h
+++ b/examples/example.h
@@ -7,6 +7,8 @@ typedef struct
7{ 7{
8} GUI; 8} GUI;
9 9
10GUI* get_gui(); 10Eina_Bool
11project_name_show_menu(void *data, Eo *obj, const Eo_Event_Description *desc, void *event_info);
11 12
12#endif \ No newline at end of file 13GUI *project_name_gui_get();
14#endif