[elm] Documenting/exemplifying the following:
[framework/uifw/elementary.git] / doc / examples.dox
1 /**
2  * @page Examples Examples
3  *
4  * Here is a page with Elementary examples.
5  *
6  * @ref bg_01_example_page
7  *
8  * @ref bg_02_example_page
9  *
10  * @ref bg_03_example_page
11  *
12  * @ref actionslider_example_page
13  *
14  * @ref elm_animator_example_page_01
15  *
16  * @ref transit_example_01_explained
17  *
18  * @ref transit_example_02_explained
19  *
20  * @ref general_functions_example_page
21  *
22  * @ref calendar_example_01
23  *
24  * @ref calendar_example_02
25  *
26  * @ref calendar_example_03
27  *
28  * @ref calendar_example_04
29  *
30  * @ref calendar_example_05
31  *
32  * @ref calendar_example_06
33  *
34  * @ref clock_example
35  *
36  * @ref diskselector_example_01
37  *
38  * @ref diskselector_example_02
39  *
40  * @ref flipselector_example
41  *
42  * @ref fileselector_example
43  *
44  * @ref fileselector_button_example
45  *
46  * @ref fileselector_entry_example
47  *
48  * @ref index_example_01
49  *
50  * @ref index_example_02
51  *
52  * @ref gengrid_example
53  */
54
55 /**
56  * @page bg_01_example_page elm_bg - Plain color background.
57  * @dontinclude bg_example_01.c
58  *
59  * The full code for this example can be found at @ref bg_example_01_c,
60  * in the function @c test_bg_plain. It's part of the @c elementar_test
61  * suite, and thus has the code for the three examples referenced by this
62  * documentation.
63  *
64  * This first example just sets a default background with a plain color. The
65  * first part consists of creating an Elementary window. It's the common
66  * piece of code that you'll see everywhere in Elementary: @skip elm_main
67  * @until autodel_set
68  *
69  * Now we really create our background object, using the window object as
70  * its parent:
71  *
72  * @skipline bg_add
73  *
74  * Then we set the size hints of the background object so that it will use
75  * all space available for it, and then add it as a resize object to the
76  * window, making it visible in the end:
77  *
78  * @skip size_hint_weight_set
79  * @until resize_object_add
80  *
81  * See @ref evas_object_size_hint_weight_set and elm_win_resize_object_add()
82  * for more detailed info about these functions.
83  *
84  * The end of the example is quite simple, just setting the minimum and
85  * maximum size of the background, so the Elementary window knows that it
86  * has to have at least the minimum size. The background also won't scale to
87  * a size above its maximum. Then we resize the window and show it in the
88  * end:
89  *
90  * @skip set size hints
91  * @until }
92  *
93  * And here we finish our very simple background object usage example.
94  */
95
96 /**
97  * @page bg_02_example_page elm_bg - Image background.
98  * @dontinclude bg_example_02.c
99  *
100  * The full code for this example can be found at @ref bg_example_02_c,
101  * in the function @c test_bg_image. It's part of the @c elementar_test
102  * suite, and thus has the code for the three examples referenced by this
103  * documentation.
104  *
105  * This is the second example, and shows how to use the Elementary
106  * background object to set an image as background of your application.
107  *
108  * We start this example exactly in the same way as the previous one, even
109  * when creating the background object:
110  *
111  * @skip elm_main
112  * @until bg_add
113  *
114  * Now it's the different part.
115  *
116  * Our background will have an image, that will be displayed over the
117  * background color. Before loading the image, we set the load size of the
118  * image. The load size is a hint about the size that we want the image
119  * displayed in the screen. It's not the exact size that the image will have,
120  * but usually a bit bigger. The background object can still be scaled to a
121  * size bigger than the one set here. Setting the image load size to
122  * something smaller than its real size will reduce the memory used to keep
123  * the pixmap representation of the image, and the time to load it. Here we
124  * set the load size to 20x20 pixels, but the image is loaded with a size
125  * bigger than that (since it's just a hint):
126  *
127  * @skipline load_size_set
128  *
129  * And set our background image to be centered, instead of stretched or
130  * scaled, so the effect of the elm_bg_load_size_set() can be easily
131  * understood:
132  *
133  * @skipline option_set
134  *
135  * We need a filename to set, so we get one from the previous installed
136  * images in the @c PACKAGE_DATA_DIR, and write its full path to a buffer.
137  * Then we use this buffer to set the filename in the background object:
138  *
139  * @skip snprintf
140  * @until bg_file_set
141  *
142  * Notice that the third argument of the elm_bg_file_set() function is @c
143  * NULL, since we are setting an image to this background. This function
144  * also supports setting an edje group as background, in which case the @c
145  * group parameter wouldn't be @c NULL, but be the name of the group
146  * instead.
147  *
148  * Finally, we can set the size hints, add the background as a resize
149  * object, and resize the window, exactly the same thing we do in the @ref
150  * bg_01_example_page example:
151  *
152  * @skip size_hint
153  * @until }
154  *
155  * And this is the end of this example.
156  *
157  * This example will look like this:
158  *
159  * @image html screenshots/bg_01.png
160  * @image latex screenshots/bg_01.eps width=\textwidth
161  */
162
163 /**
164  * @page bg_03_example_page elm_bg - Background properties.
165  * @dontinclude bg_example_03.c
166  *
167  * The full code for this example can be found at @ref bg_example_03_c, in the
168  * function @c test_bg_options, with the callbacks @c _cb_overlay_changed, @c
169  * _cb_color_changed and @c _cb_radio_changed defined in the beginning of the
170  * file. It's part of the @c elementar_test suite, and thus has the code for
171  * the three examples referenced by this documentation.
172  *
173  * This example will show the properties available for the background object,
174  * and will use of some more widgets to set them.
175  *
176  * In order to do this, we will set some callbacks for these widgets. The
177  * first is for the radio buttons that will be used to choose the option
178  * passed as argument to elm_bg_option_set():
179  *
180  * @skip _cb_radio_changed
181  * @until }
182  *
183  * The next callback will be used when setting the overlay (using
184  * elm_bg_overlay_set()):
185  *
186  * @skip _cb_overlay_changed
187  * @until }
188  * @until }
189  *
190  * And the last one, used to set the color (with elm_bg_color_set()):
191  *
192  * @skip _cb_color_changed
193  * @until }
194  *
195  * We will get back to what these functions do soon. If you want to know more
196  * about how to set these callbacks and what these widgets are, look for:
197  * @li elm_radio_add()
198  * @li elm_check_add()
199  * @li elm_spinner_add()
200  *
201  * Now going to the main function, @c test_bg_options, we have the common
202  * code with the other examples:
203  *
204  * @skip bg-options
205  * @until autodel_set
206  *
207  * We add a plain background to this window, so it will have the default
208  * background color behind everything:
209  *
210  * @skip bg = elm_bg_add
211  * @until evas_object_show(bg)
212  *
213  * Then we add a vertical box (elm_box_add()) that will hold the background
214  * object that we are going to play with, as well as a horizontal box that
215  * will hold widgets:
216  *
217  * @skip elm_box_add
218  * @until evas_object_show
219  *
220  * Now we add the background object that is going to be of use for our
221  * example. It is an image background, as used in @ref bg_02_example_page ,
222  * so the code should be familiar:
223  *
224  * @skip elm_bg_add
225  * @until evas_object_show
226  *
227  * Notice the call to elm_box_pack_end(): it will pack the background object
228  * in the end of the Elementary box declared above. Just refer to that
229  * documentation for more info.
230  *
231  * Since this Elementary background is already an image background, we are
232  * going to play with its other properties. We will change its option
233  * (CENTER, SCALE, STRETCH, TILE), its color (RGB), and add an overlay to it.
234  * For all of these properties, we are going to add widgets that will
235  * configure them.
236  *
237  * First, lets add the horizontal box that will hold these widgets:
238  * @skip hbox
239  * @until align_set
240  *
241  * For now, just consider this @c hbox as a rectangle that will contain the
242  * widgets, and will distribute them horizontally inside its content. Then we
243  * add radio buttons that will allow us to choose the property to use with
244  * this background:
245  *
246  * @skip radio_add
247  * @until evas_object_show
248  *
249  * Again, I won't give details about the use of these widgets, just look for
250  * their documentation if necessary. It's enough to know for now that we are
251  * packing them in the @c hbox, setting a label for them, and the most
252  * important parts: setting its value to @c ELM_BG_OPTION_CENTER and its
253  * callback to @c _cb_radio_changed (the function defined in the beginning of
254  * this example). We do this for the next 3 radio buttons added after this
255  * one, each of them with a different value.
256  *
257  * Now taking a look at the code of the callback @c _cb_radio_changed again,
258  * it will call elm_bg_option_set() with the value set from the checked radio
259  * button, thus setting the option for this background. The background is
260  * passed as argument to the @p data parameter of this callback, and is
261  * referenced here as @c o_bg.
262  *
263  * Later we set the default value for this radio button:
264  *
265  * @skipline elm_radio_value_set
266  *
267  * Then we add a checkbox for the elm_bg_overlay_set() function:
268  *
269  * @skip check_add
270  * @until evas_object_show
271  *
272  * Now look at the code of the @c _cb_overlay_changed again. If the checkbox
273  * state is checked, an overlay will be added to the background. It's done by
274  * creating an Edje object, and setting it with elm_bg_overlay_set() to the
275  * background object. For information about what are and how to set Edje
276  * object, look at the Edje documentation.
277  *
278  * Finally we add a spinner object (elm_spinner_add()) to be used to select
279  * the color of our background. In its callback it's possible to see the call
280  * to elm_bg_color_set(), which will change the color of this background.
281  * This color is used by the background to fill areas where the image doesn't
282  * cover (in this case, where we have an image background). The spinner is
283  * also packed into the @c hbox :
284  *
285  * @skip elm_spinner_add
286  * @until evas_object_show
287  *
288  * Then we just have to pack the @c hbox inside the @c box, set some size
289  * hints, and show our window:
290  *
291  * @skip pack_end
292  * @until }
293  *
294  * Now to see this code in action, open elementary_test, and go to the "Bg
295  * Options" test. It should demonstrate what was implemented here.
296  */
297
298 /**
299  * @page actionslider_example_page Actionslider usage
300  * @dontinclude actionslider_example_01.c
301  *
302  * For this example we are going to assume knowledge of evas smart callbacks
303  * and some basic evas object functions. Elementary is not meant to be used
304  * without evas, if you're not yet familiar with evas it probably is worth
305  * checking that out.
306  *
307  * And now to the example, when using Elementary we start by including
308  * Elementary.h:
309  * @skipline #include
310  *
311  * Next we define some callbacks, they all share the same signature because
312  * they are all to be used with evas_object_smart_callback_add().
313  * The first one just prints the selected label(in two different ways):
314  * @until }
315  *
316  * This next callback is a little more interesting, it makes the selected
317  * label magnetic(except if it's the center label):
318  * @until }
319  *
320  * This callback enables or disables the magnetic propertty of the center
321  * label:
322  * @until }
323  *
324  * And finally a callback to stop the main loop when the window is closed:
325  * @until }
326  *
327  * To be able to create our actionsliders we need to do some setup, but this
328  * isn't really relevant here, so if you want to know about that go @ref
329  * Win "here".
330  *
331  * With all that boring stuff out of the way we can proceed to creating some
332  * actionsliders.@n
333  * All actionsliders are created the same way:
334  * @skipline actionslider_add
335  * Next we must choose where the indicator starts, and for this one we choose
336  * the right, and set the right as magnetic:
337  * @skipline indicator_pos_set
338  * @until magnet_pos_set
339  *
340  * We then set the labels for the left and right, passing NULL as an argument
341  * to any of the labels makes that position have no label.
342  * @until Stop
343  *
344  * Furthermore we mark both left and right as enabled positions, if we didn't
345  * do this all three positions would be enabled:
346  * @until RIGHT
347  *
348  * Having the the enabled positions we now add a smart callback to change
349  * which position is magnetic, so that only the last selected position is
350  * magnetic:
351  * @until NULL
352  *
353  * And finally we set our printing callback and show the actionslider:
354  * @until object_show
355  * @skip pack_end
356  *
357  * For our next actionslider we are going to do much as we did for the
358  * previous except we are going to have the center as the magnet(and not
359  * change it):
360  * @skipline actionslider_add
361  * @skipline indicator_pos_set
362  * @until object_show
363  *
364  * And another actionslider, in this one the indicator starts on the left.
365  * It has labels only in the center and right, and both bositions are
366  * magnetic. Because the left doesn't have a label and is not magnetic once
367  * the indicator leaves it can't return:
368  * @skipline actionslider_add
369  * @skipline indicator_pos_set
370  * @until object_show
371  * @note The greyed out area is a @ref Styles "style".
372  *
373  * And now an actionslider with a label in the indicator, and whose magnet
374  * properties change based on what was last selected:
375  * @skipline actionslider_add
376  * @skipline indicator_pos_set
377  * @until object_show
378  * @note The greyed out area is a @ref Styles "style".
379  *
380  * We are almost done, this next one is just an actionslider with all
381  * positions magnetized and having every possible label:
382  * @skipline actionslider_add
383  * @skipline indicator_pos_set
384  * @until object_show
385  *
386  * And for our last actionslider we have one that turns the magnetic property
387  * on and off:
388  * @skipline actionslider_add
389  * @skipline indicator_pos_set
390  * @until object_show
391  *
392  * The example will look like this:
393  *
394  * @image html screenshots/actionslider_01.png
395  * @image latex screenshots/actionslider_01.eps width=\textwidth
396  *
397  * See the full source code @ref actionslider_example_01 "here"
398  */
399
400 /**
401  * @page elm_animator_example_page_01 Animator usage
402  * @dontinclude animator_example_01.c
403  *
404  * For this example we will be using a bit of evas, you could animate a
405  * elementary widget in much the same way, but to keep things simple we use
406  * an evas_object_rectangle.
407  *
408  * As every other example we start with our include and a simple callback to
409  * exit the app when the window is closed:
410  * @skipline #include
411  * @until }
412  *
413  * This next callback is the one that actually creates our animation, it
414  * changes the size, position and color of a rectangle given to it in @a
415  * data:
416  * @until }
417  *
418  * Next we have a callback that prints a string, nothing special:
419  * @until }
420  *
421  * This next callback is a little more interesting, it has a state variable
422  * to know if the animation is currently paused or running, and it toogles
423  * the state of the animation accordingly:
424  * @until }
425  * @until }
426  * @until }
427  *
428  * Finally we have a callback to stop the animation:
429  * @until }
430  *
431  * As with every example we need to do a bit of setup before we can actually
432  * use an animation, but for the purposes of this example that's not relevant
433  * so let's just skip to the good stuff, creating an animator:
434  * @skipline animator_add
435  * @note Since elm_animator is not a widget we can give it a NULL parent.
436  *
437  * Now that we have an elm_animator we set it's duration to 1 second:
438  * @line duration_set
439  *
440  * We would also like our animation to be reversible, so:
441  * @line reverse_set
442  *
443  * We also set our animation to repeat as many times as possible, which will
444  * mean that _end_cb will only be called after UINT_MAX * 2 seconds(UINT_MAX
445  * for the animation running forward and UNIT_MAX for the animation running
446  * backwards):
447  * @line repeat_set
448  *
449  * To add some fun to our animation we will use the IN_OUT curve style:
450  * @line curve_style
451  *
452  * To actually animate anything we need an operation callback:
453  * @line operation_callback
454  *
455  * Even though we set our animation to repeat for a very long time we are
456  * going to set a end callback to it:
457  * @line completion_callback
458  * @note Notice that stoping the animation with the stop button will not make
459  * _end_cb be called.
460  *
461  * Now that we have fully set up our animator we can tell it to start
462  * animating:
463  * @line animate
464  *
465  * There's a bit more of code that doesn't really matter to use so we skip
466  * right down to our last interesting point:
467  * @skipline animator_del
468  * @note Because we created our animator with no parent we need to delete it
469  * ourselves.
470  *
471  * The example should look like this:
472  *
473  * @image html screenshots/animator_example_01.png
474  * @image latex screenshots/animator_example_01.eps width=\textwidth
475  * @n
476  * @image html screenshots/animator_example_02.png
477  * @image latex screenshots/animator_example_02.eps width=\textwidth
478  * @n
479  * @image html screenshots/animator_example_03.png
480  * @image latex screenshots/animator_example_03.eps width=\textwidth
481  *
482  * The full source code for this example can be found @ref
483  * animator_example_01_c "here"
484  */
485
486 /**
487  * @page transit_example_03_c elm_transit - Combined effects and options.
488  *
489  * This example shows how to apply the following transition effects:
490  * @li translation
491  * @li color
492  * @li rotation
493  * @li wipe
494  * @li zoom
495  * @li resizing
496  *
497  * It allows you to apply more than one effect at once, and also allows to
498  * set properties like event_enabled, auto_reverse, repeat_times and
499  * tween_mode.
500  *
501  * @include transit_example_03.c
502  */
503
504 /**
505  * @page transit_example_04_c elm_transit - Combined effects over two objects.
506  *
507  * This example shows how to apply the transition effects:
508  * @li flip
509  * @li resizable_flip
510  * @li fade
511  * @li blend
512  * over two objects. This kind of transition effect is used to make one
513  * object disappear and another one appear on its place.
514  *
515  * You can mix more than one effect of this type on the same objects, and the
516  * transition will apply both.
517  *
518  * @include transit_example_04.c
519  */
520
521 /**
522  * @page transit_example_01_explained elm_transit - Basic transit usage.
523  * @dontinclude transit_example_01.c
524  *
525  * The full code for this example can be found at @ref transit_example_01_c.
526  *
527  * This example shows the simplest way of creating a transition and applying
528  * it to an object. Similarly to every other elementary example, we create a
529  * window, set its title, size, autodel property, and setup a callback to
530  * exit the program when finished:
531  *
532  * @skip on_done
533  * @until evas_object_resize
534  *
535  * We also add a resizeable white background to use behind our animation:
536  *
537  * @skip bg_add
538  * @until evas_object_show
539  *
540  * And then we add a button that we will use to demonstrate the effects of
541  * our animation:
542  *
543  * @skip button_add
544  * @until evas_object_show(win)
545  *
546  * Notice that we are not adding the button with elm_win_resize_object_add()
547  * because we don't want the window to control the size of the button. We
548  * will use the transition to change the button size, so it could conflict
549  * with something else trying to control that size.
550  *
551  * Now, the simplest code possible to create the resize animation:
552  *
553  * @skip transit_add
554  * @until transit_go
555  *
556  * As you can see, this code is very easy to understand. First, we create the
557  * transition itself with elm_transit_add(). Then we add the button to this
558  * transition with elm_transit_object_add(), which means that the transition
559  * will operate over this button. The effect that we want now is changing the
560  * object size from 100x50 to 300x150, and can be achieved by adding the
561  * resize effect with elm_transit_effect_resizing_add().
562  *
563  * Finally, we set the transition time to 5 seconds and start the transition
564  * with elm_transit_go(). If we wanted more effects applied to this
565  * button, we could add them to the same transition. See the
566  * @ref transit_example_03_c to watch many transitions being applied to an
567  * object.
568  */
569
570 /**
571  * @page transit_example_02_explained elm_transit - Chained transitions.
572  * @dontinclude transit_example_02.c
573  *
574  * The full code for this example can be found at @ref transit_example_02_c.
575  *
576  * This example shows how to implement a chain of transitions. This chain is
577  * used to start a transition just after another transition ended. Similarly
578  * to every other elementary example, we create a window, set its title,
579  * size, autodel property, and setup a callback to exit the program when
580  * finished:
581  *
582  * @skip on_done
583  * @until evas_object_resize
584  *
585  * We also add a resizeable white background to use behind our animation:
586  *
587  * @skip bg_add
588  * @until evas_object_show
589  *
590  * This example will have a chain of 4 transitions, each of them applied to
591  * one button. Thus we create 4 different buttons:
592  *
593  * @skip button_add
594  * @until evas_object_show(bt4)
595  *
596  * Now we create a simple translation transition that will be started as soon
597  * as the program loads. It will be our first transition, and the other
598  * transitions will be started just after this transition ends:
599  *
600  * @skip transit_add
601  * @until transit_go
602  *
603  * The code displayed until now has nothing different from what you have
604  * already seen in @ref transit_example_01_explained, but now comes the new
605  * part: instead of creating a second transition that will start later using
606  * a timer, we create the it normally, and use
607  * elm_transit_chain_transit_add() instead of elm_transit_go. Since we are
608  * adding it in a chain after the first transition, it will start as soon as
609  * the first transition ends:
610  *
611  * @skip transit_add
612  * @until transit_chain_transit_add
613  *
614  * Finally we add the 2 other transitions to the chain, and run our program.
615  * It will make one transition start after the other finish, and there is the
616  * transition chain.
617  */
618
619 /**
620  * @page general_functions_example_page General (top-level) functions example
621  * @dontinclude general_funcs_example.c
622  *
623  * As told in their documentation blocks, the
624  * elm_app_compile_*_dir_set() family of functions have to be called
625  * before elm_app_info_set():
626  * @skip tell elm about
627  * @until elm_app_info_set
628  *
629  * We are here setting the fallback paths to the compiling time target
630  * paths, naturally. If you're building the example out of the
631  * project's build system, we're assuming they are the canonical ones.
632  *
633  * After the program starts, elm_app_info_set() will actually run and
634  * then you'll see an intrincasy: Elementary does the prefix lookup @b
635  * twice. This is so because of the quicklaunch infrastructure in
636  * Elementary (@ref Start), which will register a predefined prefix
637  * for possible users of the launch schema. We're not hooking into a
638  * quick launch, so this first call can't be avoided.
639  *
640  * If you ran this example from your "bindir" installation
641  * directiory, no output will emerge from these both attempts -- it
642  * will find the "magic" file there registered and set the prefixes
643  * silently. Otherwise, you could get something like:
644  @verbatim
645  WARNING: Could not determine its installed prefix for 'ELM'
646        so am falling back on the compiled in default:
647          usr
648        implied by the following:
649          bindir    = usr/lib
650          libdir    = usr/lib
651          datadir   = usr/share/elementary
652          localedir = usr/share/locale
653        Try setting the following environment variables:
654          ELM_PREFIX     - points to the base prefix of install
655        or the next 4 variables
656          ELM_BIN_DIR    - provide a specific binary directory
657          ELM_LIB_DIR    - provide a specific library directory
658          ELM_DATA_DIR   - provide a specific data directory
659          ELM_LOCALE_DIR - provide a specific locale directory
660  @endverbatim
661  * if you also didn't change those environment variables (remember
662  * they are also a valid way of communicating your prefix to the
663  * binary) - this is the scenario where it fallbacks to the paths set
664  * for compile time.
665  *
666  * Then, you can check the prefixes set on the standard output:
667  * @skip prefix was set to
668  * @until locale directory is
669  *
670  * In the fragment
671  * @skip by using this policy
672  * @until elm_win_autodel_set
673  * we demonstrate the use of Elementary policies. The policy defining
674  * under which circunstances our application should quit automatically
675  * is set to when its last window is closed (this one has just one
676  * window, though). This will save us from having to set a callback
677  * ourselves on the window, like done in @ref bg_example_01_c "this"
678  * example. Note that we need to tell the window to delete itself's
679  * object on a request to destroy the canvas coming, with
680  * elm_win_autodel_set().
681  *
682  * What follows is some boilerplate code, creating a frame with a @b
683  * button, our object of interest, and, below, widgets to change the
684  * button's behavior and exemplify the group of functions in question.
685  *
686  * @dontinclude general_funcs_example.c
687  * We enabled the focus highlight object for this window, so that you
688  * can keep track of the current focused object better:
689  * @skip elm_win_focus_highlight_enabled_set
690  * @until evas_object_show
691  * Use the tab key to navigate through the focus chain.
692  *
693  * @dontinclude general_funcs_example.c
694  * While creating the button, we exemplify how to use Elementary's
695  * finger size information to scale our UI:
696  * @skip fprintf(stdout, "Elementary
697  * @until evas_object_show
698  *
699  * @dontinclude general_funcs_example.c
700  * The first checkbox's callback is:
701  * @skip static void
702  * @until }
703  * When unsetting the checkbox, we disable the button, which will get a new
704  * decoration (greyed out) and stop receiving events. The focus chain
705  * will also ignore it.
706  *
707  * Following, there are 2 more buttons whose actions are focus/unfocus
708  * the top button, respectively:
709  * @skip focus callback
710  * @until }
711  * and
712  * @skip unfocus callback
713  * @until }
714  * Note the situations in which they won't take effect:
715  * - the button is not allowed to get focus or
716  * - the button is disabled
717  *
718  * The first restriction above you'll get by a second checkbox, whose
719  * callback is:
720  * @skip focus allow callback
721  * @until }
722  * Note that the button will still get mouse events, though.
723  *
724  * Next, there's a slider controlling the button's scale:
725  * @skip scaling callback
726  * @until }
727  *
728  * Experiment with it, so you understand the effect better. If you
729  * change its value, it will mess with the button's original size,
730  * naturally.
731  *
732  * The full code for this example can be found
733  * @ref general_functions_example_c "here".
734  */
735
736 /**
737  * @page theme_example_01 Theme - Using extensions
738  *
739  * @dontinclude theme_example_01.c
740  *
741  * Using extensions is extremely easy, discarding the part where you have to
742  * write the theme for them.
743  *
744  * In the following example we'll be creating two buttons, one to load or
745  * unload our extension theme and one to cycle around three possible styles,
746  * one of which we created.
747  *
748  * After including our one and only header we'll jump to the callback for
749  * the buttons. First one takes care of loading or unloading our extension
750  * file, relative to the default theme set (thus the @c NULL in the
751  * functions first parameter).
752  * @skipline Elementary.h
753  * @skip static void
754  * @until }
755  * @until }
756  * @until }
757  *
758  * The second button, as we said before, will just switch around different
759  * styles. In this case we have three of them. The first one is our custom
760  * style, named after something very unlikely to find in the default theme.
761  * The other two styles are the standard and one more, anchor, which exists
762  * in the default and is similar to the default, except the button vanishes
763  * when the mouse is not over it.
764  * @skip static void
765  * @until }
766  * @until }
767  *
768  * So what happens if the style switches to our custom one when the
769  * extension is loaded? Elementary falls back to the default for the
770  * widget.
771  *
772  * And the main function, simply enough, will create the window, set the
773  * buttons and their callbacks, and just to begin with our button styled
774  * we're also loading our extension at the beginning.
775  * @skip int
776  * @until ELM_MAIN
777  *
778  * In this case we wanted to easily remove extensions, but all adding an
779  * extension does is tell Elementary where else it should look for themes
780  * when it can't find them in the default theme. Another way to do this
781  * is to set the theme search order using elm_theme_set(), but this requires
782  * that the developer is careful not to override any user configuration.
783  * That can be helped by adding our theme to the end of whatver is already
784  * set, like in the following snippet.
785  * @code
786  * char buf[4096];
787  * snprintf(buf, sizeof(buf), "%s:./theme_example.edj", elme_theme_get(NULL);
788  * elm_theme_set(NULL, buf);
789  * @endcode
790  *
791  * If we were using overlays instead of extensions, the same thing applies,
792  * but the custom theme must be added to the front of the search path.
793  *
794  * In the end, we should be looking at something like this:
795  *
796  * @image html screenshots/theme_example_01.png
797  * @image latex screenshots/theme_example_01.eps width=\textwidth
798  *
799  * That's all. Boringly simple, and the full code in one piece can be found
800  * @ref theme_example_01.c "here".
801  *
802  * And the code for our extension is @ref theme_example.edc "here".
803  *
804  * @example theme_example_01.c
805  * @example theme_example.edc
806  */
807
808 /**
809  * @page theme_example_02 Theme - Using overlays
810  *
811  * @dontinclude theme_example_02.c
812  *
813  * Overlays are like extensions in that you tell Elementary that some other
814  * theme contains the styles you need for your program. The difference is that
815  * they will be look in first, so they can override the default style of any
816  * widget.
817  *
818  * There's not much to say about them that hasn't been said in our previous
819  * example about @ref theme_example_01 "extensions", so going quickly through
820  * the code we have a function to load or unload the theme, which will be
821  * called when we click any button.
822  * @skipline Elementary.h
823  * @skip static void
824  * @until }
825  *
826  * And the main function, creating the window and adding some buttons to it.
827  * We load our theme as an overlay and nothing else. Notice there's no style
828  * set for any button there, which means they should be using the default
829  * that we override.
830  * @skip int
831  * @until ELM_MAIN
832  *
833  * That's pretty much it. The full code is @ref theme_example_02.c "here" and
834  * the definition of the theme is the same as before, and can be found in
835  * @ref theme_example.edc "here".
836  *
837  * @example theme_example_02.c
838  */
839
840  /**
841   * @page button_example_01 Button - Complete example
842   *
843   * @dontinclude button_example_01.c
844   *
845   * A button is simple, you click on it and something happens. That said,
846   * we'll go through an example to show in detail the button API less
847   * commonly used.
848   *
849   * In the end, we'll be presented with something that looks like this:
850   *
851   * @image html screenshots/button_01.png
852   * @image latex screenshots/button_01.eps width=\textwidth
853   *
854   * The full code of the example is @ref button_example_01.c "here" and we
855   * will follow here with a rundown of it.
856   *
857   * @skip Elementary.h
858   * @until Elementary.h
859   * @skip struct
860   * @until App_Data
861   *
862   * We have several buttons to set different times for the autorepeat timeouts
863   * of the buttons that use it and a few more that we keep track of in our
864   * data struct. The mid button doesn't do much, just moves around according
865   * to what other buttons the user presses. Then four more buttons to move the
866   * central one, and we're also keeping track of the icon set in the middle
867   * button, since when this one moves, we change the icon, and when movement
868   * is finished (by releasing one of the four arrow buttons), we set back the
869   * normal icon.
870   * @skip static void
871   * @until }
872   *
873   * Keeping any of those four buttons pressed will trigger their autorepeat
874   * callback, where we move the button doing some size hint magic. To
875   * understand how that works better, refer to the @ref Box documentation.
876   * Also, the first time the function is called, we change the icon in the
877   * middle button, using elm_button_icon_unset() first to keep the reference
878   * to the previous one, so we don't need to recreate it when we are done
879   * moving it.
880   * @skip static void
881   * @until }
882   * @until size_hint_align_set
883   * @until }
884   *
885   * One more callback for the option buttons, that just sets the timeouts for
886   * the different autorepeat options.
887   *
888   * @skip static void
889   * @until }
890   * @until }
891   * @until }
892   *
893   * And the main function, which does some setting up of the buttons in boxes
894   * to make things work. Here we'll go through some snippets only.
895   *
896   * For the option buttons, it's just the button with its label and callback.
897   * @skip elm_button_add
898   * @until smart_callback_add
899   *
900   * For the ones that move the central button, we have no labels. There are
901   * icons instead, and the autorepeat option is toggled.
902   * @skip Gap: 1.0
903   * @skip elm_button_add
904   * @until data.cursors.up
905   *
906   * And just to show the mid button, which doesn't have anything special.
907   * @skip data.cursors.left
908   * @skip elm_button_add
909   * @until data.mid
910   *
911   * And we are done.
912   *
913   * @example button_example_01.c
914   */
915
916 /**
917  * @page bubble_01_example_page elm_bubble - Simple use.
918  * @dontinclude bubble_example_01.c
919  *
920  * This example shows a bubble with all fields set(label, info, content and
921  * icon) and the selected corner changing when the bubble is clicked. To be
922  * able use a bubble we need to do some setup and create a window, for this
923  * example we are going to ignore that part of the code since it isn't
924  * relevant to the bubble.
925  *
926  * To have the selected corner change in a clockwise motion we are going to
927  * use the following callback:
928  * @skip static
929  * @until }
930  * @until }
931  *
932  * Here we are creating an elm_label that is going to be used as the content
933  * for our bubble:
934  * @skipline elm_label
935  * @until show
936  * @note You could use any evas_object for this, we are using an elm_label
937  * for simplicity.
938  *
939  * Despite it's name the bubble's icon doesn't have to be an icon, it can be
940  * any evas_object. For this example we are going to make the icon a simple
941  * blue rectangle:
942  * @until show
943  *
944  * And finally we have the actual bubble creation and the setting of it's
945  * label, info and content:
946  * @until content
947  * @skipline show
948  * @note Because we didn't set a corner, the default("top_left") will be
949  * used.
950  *
951  * Now that we have our bubble all that is left is connecting the "clicked"
952  * signals to our callback:
953  * @line smart_callback
954  *
955  * This last bubble we created was very complete, so it's pertinent to show
956  * that most of that stuff is optional a bubble can be created with nothing
957  * but content:
958  * @until content
959  * @skipline show
960  *
961  * Our example will look like this:
962  *
963  * @image html screenshots/bubble_example_01.png
964  * @image latex screenshots/bubble_example_01.eps width=\textwidth
965  *
966  * See the full source code @ref bubble_example_01.c here.
967  * @example bubble_example_01.c
968  */
969
970 /**
971  * @page box_example_01 Box - Basic API
972  *
973  * @dontinclude button_example_01.c
974  *
975  * As a special guest tonight, we have the @ref button_example_01 "simple
976  * button example". There are plenty of boxes in it, and to make the cursor
977  * buttons that moved a central one around when pressed, we had to use a
978  * variety of values for their hints.
979  *
980  * To start, let's take a look at the handling of the central button when
981  * we were moving it around. To achieve this effect without falling back to
982  * a complete manual positioning of the @c Evas_Object in our canvas, we just
983  * put it in a box and played with its alignment within it, as seen in the
984  * following snippet of the callback for the pressed buttons.
985  * @skip evas_object_size_hint_align_get
986  * @until evas_object_size_hint_align_set
987  *
988  * Not much to it. We get the current alignment of the object and change it
989  * by just a little, depending on which button was pressed, then set it
990  * again, making sure we stay within the 0.0-1.0 range so the button moves
991  * inside the space it has, instead of disappearing under the other objects.
992  *
993  * But as useful as an example as that may have been, the usual case with boxes
994  * is to set everything at the moment they are created, like we did for
995  * everything else in our main function.
996  *
997  * The entire layout of our program is made with boxes. We have one set as the
998  * resize object for the window, which means it will always be resized with
999  * the window. The weight hints set to @c EVAS_HINT_EXPAND will tell the
1000  * window that the box can grow past it's minimum size, which allows resizing
1001  * of it.
1002  * @skip elm_main
1003  * @skip elm_box_add
1004  * @until evas_object_show
1005  *
1006  * Two more boxes, set to horizontal, hold the buttons to change the autorepeat
1007  * configuration used by the buttons. We create each to take over all the
1008  * available space horizontally, but we don't want them to grow vertically,
1009  * so we keep that axis of the weight with 0.0. Then it gets packed in the
1010  * main box.
1011  * @skip box2
1012  * @until evas_object_show
1013  *
1014  * The buttons in each of those boxes have nothing special, they are just packed
1015  * in with their default values and the box will use their minimum size, as set
1016  * by Elementary itself based on the label, icon, finger size and theme.
1017  *
1018  * But the buttons used to move the central one have a special disposition.
1019  * The top one first, is placed right into the main box like our other smaller
1020  * boxes. Set to expand horizontally and not vertically, and in this case we
1021  * also tell it to fill that space, so it gets resized to take the entire
1022  * width of the window.
1023  * @skip Gap: 1.0
1024  * @skip elm_button_add
1025  * @until evas_object_show
1026  *
1027  * The bottom one will be the same, but for the other two we need to use a
1028  * second box set to take as much space as we have, so we can place our side
1029  * buttons in place and have the big empty space where the central button will
1030  * move.
1031  * @skip elm_box_add
1032  * @until evas_object_show
1033  *
1034  * Then the buttons will have their hints inverted to the other top and bottom
1035  * ones, to expand and fill vertically and keep their minimum size horizontally.
1036  * @skip elm_button_add
1037  * @until evas_object_show
1038  *
1039  * The central button takes every thing else. It will ask to be expanded in
1040  * both directions, but without filling its cell. Changing its alignment by
1041  * pressing the buttons will make it move around.
1042  * @skip elm_button_add
1043  * @until evas_object_show
1044  *
1045  * To end, the rightmost button is packed in the smaller box after the central
1046  * one, and back to the main box we have the bottom button at the end.
1047  */
1048
1049 /**
1050  * @page box_example_02 Box - Layout transitions
1051  *
1052  * @dontinclude box_example_02.c
1053  *
1054  * Setting a customized layout for a box is simple once you have the layout
1055  * function, which is just like the layout function for @c Evas_Box. The new
1056  * and fancier thing we can do with Elementary is animate the transition from
1057  * one layout to the next. We'll see now how to do that through a simple
1058  * example, while also taking a look at some of the API that was left
1059  * untouched in our @ref box_example_01 "previous example".
1060  *
1061  * @image html screenshots/box_example_02.png
1062  * @image latex screenshots/box_example_02.eps width=\textwidth
1063  *
1064  * @skipline Elementary.h
1065  *
1066  * Our application data consists of a list of layout functions, given by
1067  * @c transitions. We'll be animating through them throughout the entire run.
1068  * The box with the stuff to move around and the last layout that was set to
1069  * make things easier in the code.
1070  * @skip typedef
1071  * @until Transitions_Data
1072  *
1073  * The box starts with three buttons, clicking on any of them will take it
1074  * out of the box without deleting the object. There are also two more buttons
1075  * outside, one to add an object to the box and the other to clear it.
1076  * This is all to show how you can interact with the items in the box, add
1077  * things and even remove them, while the transitions occur.
1078  *
1079  * One of the callback we'll be using creates a new button, asks the box for
1080  * the list of its children and if it's not empty, we add the new object after
1081  * the first one, otherwise just place at the end as it will not make any
1082  * difference.
1083  * @skip static void
1084  * @until }
1085  * @until }
1086  *
1087  * The clear button is even simpler. Everything in the box will be deleted,
1088  * leaving it empty and ready to fill it up with more stuff.
1089  * @skip static void
1090  * @until }
1091  *
1092  * And a little function to remove buttons from the box without deleting them.
1093  * This one is set for the @c clicked callback of the original buttons,
1094  * unpacking them when clicked and placing it somewhere in the screen where
1095  * they will not disturb. Once we do this, the box no longer has any control
1096  * of it, so it will be left untouched until the program ends.
1097  * @skip static void
1098  * @until }
1099  *
1100  * If we wanted, we could just call @c evas_object_del() on the object to
1101  * destroy it. In this case, no unpack is really necessary, as the box would
1102  * be notified of a child being deleted and adjust its calculations accordingly.
1103  *
1104  * The core of the program is the following function. It takes whatever
1105  * function is first on our list of layouts and together with the
1106  * @c last_layout, it creates an ::Elm_Box_Transition to use with
1107  * elm_box_layout_transition(). In here, we tell it to start from whatever
1108  * layout we last set, end with the one that was at the top of the list and
1109  * when everything is finished, call us back so we can create another
1110  * transition. Finally, move the new layout to the end of the list so we
1111  * can continue running through them until the program ends.
1112  * @skip static void
1113  * @until }
1114  *
1115  * The main function doesn't have antyhing special. Creation of box, initial
1116  * buttons and some callback setting. The only part worth mentioning is the
1117  * initialization of our application data.
1118  * @skip tdata.box
1119  * @until evas_object_box_layout_stack
1120  *
1121  * We have a simple static variable, set the box, the first layout we are
1122  * using as last and create the list with the different functions to go
1123  * through.
1124  *
1125  * And in the end, we set the first layout and call the same function we went
1126  * through before to start the run of transitions.
1127  * @until _test_box_transition_change
1128  *
1129  * For the full code, follow @ref box_example_02.c "here".
1130  *
1131  * @example box_example_02.c
1132  */
1133
1134 /**
1135  * @page calendar_example_01 Calendar - Simple creation.
1136  * @dontinclude calendar_example_01.c
1137  *
1138  * As a first example, let's just display a calendar in our window,
1139  * explaining all steps required to do so.
1140  *
1141  * First you should declare objects we intend to use:
1142  * @skipline Evas_Object
1143  *
1144  * Then a window is created, a title is set and its set to be autodeleted.
1145  * More details can be found on windows examples:
1146  * @until elm_win_autodel
1147  *
1148  * Next a simple background is placed on our windows. More details on
1149  * @ref bg_01_example_page:
1150  * @until evas_object_show(bg)
1151  *
1152  * Now, the exciting part, let's add the calendar with elm_calendar_add(),
1153  * passing our window object as parent.
1154  * @until evas_object_show(cal);
1155  *
1156  * To conclude our example, we should show the window and run elm mainloop:
1157  * @until ELM_MAIN
1158  *
1159  * Our example will look like this:
1160  *
1161  * @image html screenshots/calendar_example_01.png
1162  * @image latex screenshots/calendar_example_01.eps width=\textwidth
1163  *
1164  * See the full source code @ref calendar_example_01.c here.
1165  * @example calendar_example_01.c
1166  */
1167
1168 /**
1169  * @page calendar_example_02 Calendar - Layout strings formatting.
1170  * @dontinclude calendar_example_02.c
1171  *
1172  * In this simple example, we'll explain how to format the label displaying
1173  * month and year, and also set weekday names.
1174  *
1175  * To format month and year label, we need to create a callback function
1176  * to create a string given the selected time, declared under a
1177  * <tt> struct tm </tt>.
1178  *
1179  * <tt> struct tm </tt>, declared on @c time.h, is a structure composed by
1180  * nine integers:
1181  * @li tm_sec   seconds [0,59]
1182  * @li tm_min   minutes [0,59]
1183  * @li tm_hour  hour [0,23]
1184  * @li tm_mday  day of month [1,31]
1185  * @li tm_mon   month of year [0,11]
1186  * @li tm_year  years since 1900
1187  * @li tm_wday  day of week [0,6] (Sunday = 0)
1188  * @li tm_yday  day of year [0,365]
1189  * @li tm_isdst daylight savings flag
1190  * @note glib version has 2 additional fields.
1191  *
1192  * For our function, only stuff that matters are tm_mon and tm_year.
1193  * But we don't need to access it directly, since there are nice functions
1194  * to format date and time, as @c strftime.
1195  * We will get abbreviated month (%b) and year (%y) (check strftime manpage
1196  * for more) in our example:
1197  * @skipline static char
1198  * @until }
1199  *
1200  * We need to alloc the string to be returned, and calendar widget will
1201  * free it when it's not needed, what is done by @c strdup.
1202  * So let's register our callback to calendar object:
1203  * @skipline elm_calendar_format_function_set
1204  *
1205  * To set weekday names, we should declare them as an array of strings:
1206  * @dontinclude calendar_example_02.c
1207  * @skipline weekdays
1208  * @until }
1209  *
1210  * And finally set them to calendar:
1211  * skipline weekdays_names_set
1212  *
1213  * Our example will look like this:
1214  *
1215  * @image html screenshots/calendar_example_02.png
1216  * @image latex screenshots/calendar_example_02.eps width=\textwidth
1217  *
1218  * See the full source code @ref calendar_example_02.c here.
1219  * @example calendar_example_02.c
1220  */
1221
1222 /**
1223  * @page calendar_example_03 Calendar - Years restrictions.
1224  * @dontinclude calendar_example_03.c
1225  *
1226  * This example explains how to set max and min year to be displayed
1227  * by a calendar object. This means that user won't be able to
1228  * see or select a date before and after selected years.
1229  * By default, limits are 1902 and maximun value will depends
1230  * on platform architecture (year 2037 for 32 bits); You can
1231  * read more about time functions on @c ctime manpage.
1232  *
1233  * Straigh to the point, to set it is enough to call
1234  * elm_calendar_min_max_year_set(). First value is minimun year, second
1235  * is maximum. If first value is negative, it won't apply limit for min
1236  * year, if the second one is negative, won't apply for max year.
1237  * Setting both to negative value will clear limits (default state):
1238  * @skipline elm_calendar_min_max_year_set
1239  *
1240  * Our example will look like this:
1241  *
1242  * @image html screenshots/calendar_example_03.png
1243  * @image latex screenshots/calendar_example_03.eps width=\textwidth
1244  *
1245  * See the full source code @ref calendar_example_03.c here.
1246  * @example calendar_example_03.c
1247  */
1248
1249 /**
1250  * @page calendar_example_04 Calendar - Days selection.
1251  * @dontinclude calendar_example_04.c
1252  *
1253  * It's possible to disable date selection and to select a date
1254  * from your program, and that's what we'll see on this example.
1255  *
1256  * If isn't required that users could select a day on calendar,
1257  * only interacting going through months, disabling days selection
1258  * could be a good idea to avoid confusion. For that:
1259  * @skipline elm_calendar_day_selection_enabled_set
1260  *
1261  * Also, regarding days selection, you could be interested to set a
1262  * date to be highlighted on calendar from your code, maybe when
1263  * a specific event happens, or after calendar creation. Let's select
1264  * two days from current day:
1265  * @dontinclude calendar_example_04.c
1266  * @skipline SECS_DAY
1267  * @skipline current_time
1268  * @until elm_calendar_selected_time_set
1269  *
1270  * Our example will look like this:
1271  *
1272  * @image html screenshots/calendar_example_04.png
1273  * @image latex screenshots/calendar_example_04.eps width=\textwidth
1274  *
1275  * See the full source code @ref calendar_example_04.c here.
1276  * @example calendar_example_04.c
1277  */
1278
1279 /**
1280  * @page calendar_example_05 Calendar - Signal callback and getters.
1281  * @dontinclude calendar_example_05.c
1282  *
1283  * Most of setters explained on previous examples have associated getters.
1284  * That's the subject of this example. We'll add a callback to display
1285  * all calendar information every time user interacts with the calendar.
1286  *
1287  * Let's check our callback function:
1288  * @skipline static void
1289  * @until double interval;
1290  *
1291  * To get selected day, we need to call elm_calendar_selected_time_get(),
1292  * but to assure nothing wrong happened, we must check for function return.
1293  * It'll return @c EINA_FALSE if fail. Otherwise we can use time set to
1294  * our structure @p stime.
1295  * @skipline elm_calendar_selected_time_get
1296  * @until return
1297  *
1298  * Next we'll get information from calendar and place on declared vars:
1299  * @skipline interval
1300  * @until elm_calendar_weekdays_names_get
1301  *
1302  * The only tricky part is that last line gets an array of strings
1303  * (char arrays), one for each weekday.
1304  *
1305  * Then we can simple print that to stdin:
1306  * @skipline printf
1307  * @until }
1308  *
1309  * <tt> struct tm </tt> is declared on @c time.h. You can check @c ctime
1310  * manpage to read about it.
1311  *
1312  * To register this callback, that will be called every time user selects
1313  * a day or goes to next or previous month, just add a callback for signal
1314  * @b changed.
1315  * @skipline evas_object_smart_callback_add
1316  *
1317  * Our example will look like this:
1318  *
1319  * @image html screenshots/calendar_example_05.png
1320  * @image latex screenshots/calendar_example_05.eps width=\textwidth
1321  *
1322  * See the full source code @ref calendar_example_05.c here.
1323  * @example calendar_example_05.c
1324  */
1325
1326 /**
1327  * @page calendar_example_06 Calendar - Calendar marks.
1328  * @dontinclude calendar_example_06.c
1329  *
1330  * On this example marks management will be explained. Functions
1331  * elm_calendar_mark_add(), elm_calendar_mark_del() and
1332  * elm_calendar_marks_clear() will be covered.
1333  *
1334  * To add a mark, will be required to choose three things:
1335  * @li mark style
1336  * @li mark date, or start date if it will be repeated
1337  * @li mark periodicity
1338  *
1339  * Style defines the kind of mark will be displayed over marked day,
1340  * on caledar. Default theme supports @b holiday and @b checked.
1341  * If more is required, is possible to set a new theme to calendar
1342  * widget using elm_object_style_set(), and use
1343  * the signal that will be used by such marks.
1344  *
1345  * Date is a <tt> struct tm </tt>, as defined by @c time.h. More can
1346  * be read on @c ctime manpage.
1347  * If a date relative from current is required, this struct can be set
1348  * as:
1349  * @skipline current_time
1350  * @until localtime_r
1351  *
1352  * Or if it's an absolute date, you can just declare the struct like:
1353  * @dontinclude calendar_example_06.c
1354  * @skipline sunday
1355  * @until christmas.tm_mon
1356  *
1357  * Periodicity is how frequently the mark will be displayed over the
1358  * calendar.  Can be a unique mark (that don't repeat), or it can repeat
1359  * daily, weekly, monthly or annually. It's enumerated by
1360  * @c Elm_Calendar_Mark_Repeat.
1361  *
1362  * So let's add some marks to our calendar. We will add christmas holiday,
1363  * set Sundays as holidays, and check current day and day after that.
1364  * @dontinclude calendar_example_06.c
1365  * @skipline sunday
1366  * @until christmas.tm_mon
1367  * @skipline current_time
1368  * @until ELM_CALENDAR_WEEKLY
1369  *
1370  * We kept the return of first mark add, because we don't really won't it
1371  * to be checked, so let's remove it:
1372  * @skipline elm_calendar_mark_del
1373  *
1374  * After all marks are added and removed, is required to draw them:
1375  * @skipline elm_calendar_marks_draw
1376  *
1377  * Finally, to clear all marks, let's set a callback for our button:
1378  * @skipline elm_button_add
1379  * @until evas_object_show(bt);
1380  *
1381  * This callback will receive our calendar object, and should clear it:
1382  * @dontinclude calendar_example_06.c
1383  * @skipline static
1384  * @until }
1385  * @note Remember to draw marks after clear the calendar.
1386  *
1387  * Our example will look like this:
1388  *
1389  * @image html screenshots/calendar_example_06.png
1390  * @image latex screenshots/calendar_example_06.eps width=\textwidth
1391  *
1392  * See the full source code @ref calendar_example_06.c here.
1393  * @example calendar_example_06.c
1394  */
1395
1396 /**
1397  * @page clock_example Clock widget example
1398  *
1399  * This code places five Elementary clock widgets on a window, each of
1400  * them exemplifying a part of the widget's API.
1401  *
1402  * The first of them is the pristine clock:
1403  * @dontinclude clock_example.c
1404  * @skip pristine
1405  * @until evas_object_show
1406  * As you see, the defaults for a clock are:
1407  * - military time
1408  * - no seconds shown
1409  *
1410  * For am/pm time, see the second clock:
1411  * @dontinclude clock_example.c
1412  * @skip am/pm
1413  * @until evas_object_show
1414  *
1415  * The third one will show the seconds digits, which will flip in
1416  * synchrony with system time. Note, besides, that the time itself is
1417  * @b different from the system's -- it was customly set with
1418  * elm_clock_time_set():
1419  * @dontinclude clock_example.c
1420  * @skip with seconds
1421  * @until evas_object_show
1422  *
1423  * In both fourth and fifth ones, we turn on the <b>edition
1424  * mode</b>. See how you can change each of the sheets on it, and be
1425  * sure to try holding the mouse pressed over one of the sheet
1426  * arrows. The forth one also starts with a custom time set:
1427  * @dontinclude clock_example.c
1428  * @skip in edition
1429  * @until evas_object_show
1430  *
1431  * The fifth, besides editable, has only the time @b units editable,
1432  * for hours, minutes and seconds. This exemplifies
1433  * elm_clock_digit_edit_set():
1434  * @dontinclude clock_example.c
1435  * @skip but only
1436  * @until evas_object_show
1437  *
1438  * See the full @ref clock_example.c "example", whose window should
1439  * look like this picture:
1440  *
1441  * @image html screenshots/clock_example.png
1442  * @image latex screenshots/clock_example.eps width=\textwidth
1443  *
1444  * See the full @ref clock_example_c "source code" for this example.
1445  *
1446  * @example clock_example.c
1447  */
1448
1449 /**
1450  * @page diskselector_example_01 Diskselector widget example
1451  *
1452  * This code places 4 Elementary diskselector widgets on a window, each of
1453  * them exemplifying a part of the widget's API.
1454  *
1455  * All of them will have weekdays as items, since we won't focus
1456  * on items management on this example. For an example about this subject,
1457  * check @ref diskselector_example_02.
1458  *
1459  * The first of them is a default diskselector.
1460  * @dontinclude diskselector_example_01.c
1461  * @skipline lbl
1462  * @until }
1463  * @skipline elm_diskselector_add
1464  * @until evas_object_show
1465  *
1466  * We are just adding the diskselector, so as you can see, defaults for it are:
1467  * @li Only 3 items visible each time.
1468  * @li Only 3 characters are displayed for labels on side positions.
1469  * @li The first added item remains centeres, i.e., it's the selected item.
1470  *
1471  * To add items, we are just appending it on a loop, using function
1472  * elm_diskselector_item_append(), that will be better exaplained on
1473  * items management example.
1474  *
1475  * For a circular diskselector, check the second widget. A circular
1476  * diskselector will display first item after last, and last previous to
1477  * the first one. So, as you can see, @b Sa will appears on left side
1478  * of selected @b Sunday. This property is set with
1479  * elm_diskselector_round_set().
1480  *
1481  * Also, we decide to display only 2 character for side labels, instead of 3.
1482  * For this we call elm_diskselector_side_label_length_set(). As result,
1483  * we'll see @b Mo displayed instead of @b Mon, when @b Monday is on a
1484  * side position.
1485  *
1486  * @skipline elm_diskselector_add
1487  * @until evas_object_show
1488  *
1489  * But so far, we are only displaying 3 items at once. If more are wanted,
1490  * is enough to call elm_diskselector_display_item_num_set(), as you can
1491  * see here:
1492  * @skipline elm_diskselector_add
1493  * @until evas_object_show
1494  *
1495  * @note You can't set less than 3 items to be displayed.
1496  *
1497  * Finally, if a bounce effect is required, or you would like to see
1498  * scrollbars, it is possible. But, for default theme, diskselector
1499  * scrollbars will be invisible anyway.
1500  * @skipline elm_diskselector_add
1501  * @until evas_object_show
1502  *
1503  * See the full @ref diskselector_example_01.c "diskselector_example_01.c"
1504  * code, whose window should look like this picture:
1505  *
1506  * @image html screenshots/diskselector_example_01.png
1507  * @image latex screenshots/diskselector_example_01.eps width=\textwidth
1508  *
1509  * @example diskselector_example_01.c
1510  */
1511
1512 /**
1513  * @page diskselector_example_02 Diskselector - Items management
1514  *
1515  * This code places a Elementary diskselector widgets on a window,
1516  * along with some buttons trigerring actions on it (though its API).
1517  * It covers most of Elm_Diskselector_Item functions.
1518  *
1519  * On our @c main function, we are adding a default diskselector with
1520  * 3 items. We are only setting their labels (second parameter of function
1521  * elm_diskselector_item_append):
1522  * @dontinclude diskselector_example_02.c
1523  * @skipline elm_diskselector_add
1524  * @until Item 2
1525  *
1526  * Next we are adding lots of buttons, each one for a callback function
1527  * that will realize a task covering part of diskselector items API.
1528  * Lets check the first one:
1529  * @skipline elm_button_add
1530  * @until evas_object_show
1531  *
1532  * We are labeling the button with a task description with
1533  * elm_object_text_set() and setting a callback
1534  * function evas_object_smart_callback_add().
1535  * Each callback function will have the signature:
1536  * <tt> static void _task_cb(void *data, Evas_Object *obj,
1537  * void *event_info)</tt> with the function name varying for each task.
1538  *
1539  * Now let's cover all of them.
1540  *
1541  * <b> Appending an item: </b>
1542  * @dontinclude diskselector_example_02.c
1543  * @skipline _add_cb
1544  * @until }
1545  *
1546  * All items are included on diskselector after last one. You @b can't
1547  * preprend items.
1548  *
1549  * The first parameter of elm_diskselector_item_append() is the diskselector
1550  * object, that we are receiving as data on our callback function.
1551  * The second one is a label, the string that will be placed in the center
1552  * of our item. As we don't wan't icons or callback functions, we can
1553  * send NULL as third, fourth and fifth parameters.
1554  *
1555  * <b> Appending an item with icon: </b>
1556  * @dontinclude diskselector_example_02.c
1557  * @skipline _add_ic_cb
1558  * @until }
1559  *
1560  * If an icon is required, you can pass it as third paramenter on our
1561  * elm_diskselector_item_append() function. It will be place on the
1562  * left side of item's label, that will be shifted to right a bit.
1563  *
1564  * For more details about how to create icons, look for elm_icon examples.
1565  *
1566  * <b> Appending an item with callback function for selected: </b>
1567  * @dontinclude diskselector_example_02.c
1568  * @skipline _sel_cb
1569  * @until }
1570  * @until }
1571  *
1572  * To set a callback function that will be called every time an item is
1573  * selected, i.e., everytime the diskselector stops with this item in
1574  * center position, just pass the function as fourth paramenter.
1575  *
1576  * <b> Appending an item with callback function for selected with data: </b>
1577  * @dontinclude diskselector_example_02.c
1578  * @skipline _sel_data_cb
1579  * @until }
1580  * @until }
1581  * @until }
1582  * @until }
1583  *
1584  * If the callback function request an extra data, it can be attached to our
1585  * item passing a pointer for data as fifth parameter.
1586  * Our function _sel_data_cb will receive it as <tt> void *data </tt>.
1587  *
1588  * If you want to free this data, or handle that the way you need when the
1589  * item is deleted, set a callback function for that, with
1590  * elm_diskselector_item_del_cb_set().
1591  *
1592  * As you can see we check if @c it is not @c NULL after appending it.
1593  * If an error happens, we won't try to set a function for it.
1594  *
1595  * <b> Deleting an item: </b>
1596  * @dontinclude diskselector_example_02.c
1597  * @skip _del_cb
1598  * @skipline _del_cb
1599  * @until }
1600  *
1601  * To delete an item we simple need to call elm_diskselector_item_del() with
1602  * a pointer for such item.
1603  *
1604  * If you need, you can get selected item with
1605  * elm_diskselector_selected_item_get(), that will return a pointer for it.
1606  *
1607  * <b> Unselecting an item: </b>
1608  * @dontinclude diskselector_example_02.c
1609  * @skipline _unselect_cb
1610  * @until }
1611  *
1612  * To select an item, you should call elm_diskselector_item_selected_set()
1613  * passing @c EINA_TRUE, and to unselect it, @c EINA_FALSE.
1614  *
1615  * If you unselect the selected item, diskselector will automatically select
1616  * the first item.
1617  *
1618  * <b> Printing all items: </b>
1619  * @dontinclude diskselector_example_02.c
1620  * @skipline _print_cb
1621  * @until }
1622  *
1623  * <b> Clearing the diskselector: </b>
1624  * @dontinclude diskselector_example_02.c
1625  * @skipline _clear_cb
1626  * @until }
1627  *
1628  * <b> Selecting the first item: </b>
1629  * @dontinclude diskselector_example_02.c
1630  * @skipline _select_first_cb
1631  * @until }
1632  *
1633  * <b> Selecting the last item: </b>
1634  * @dontinclude diskselector_example_02.c
1635  * @skipline _select_last_cb
1636  * @until }
1637  *
1638  * <b> Selecting the next item: </b>
1639  * @dontinclude diskselector_example_02.c
1640  * @skipline _select_next_cb
1641  * @until }
1642  *
1643  * <b> Selecting the previous item: </b>
1644  * @dontinclude diskselector_example_02.c
1645  * @skipline _select_prev_cb
1646  * @until }
1647  *
1648  * See the full @ref diskselector_example_02.c "diskselector_example_02.c"
1649  * code, whose window should look like this picture:
1650  *
1651  * @image html screenshots/diskselector_example_02.png
1652  * @image latex screenshots/diskselector_example_02.eps width=\textwidth
1653  *
1654  * @example diskselector_example_02.c
1655  */
1656
1657 /**
1658  * @page flipselector_example Flip selector widget example
1659  *
1660  * This code places an Elementary flip selector widget on a window,
1661  * along with two buttons trigerring actions on it (though its API).
1662  *
1663  * The selector is being populated with the following items:
1664  * @dontinclude flipselector_example.c
1665  * @skip lbl[]
1666  * @until ;
1667  *
1668  * Next, we create it, populating it with those items and registering
1669  * two (smart) callbacks on it:
1670  * @dontinclude flipselector_example.c
1671  * @skip fp = elm_flipselector_add
1672  * @until object_show
1673  *
1674  * Those two callbacks will take place whenever one of those smart
1675  * events occur, and they will just print something to @c stdout:
1676  * @dontinclude flipselector_example.c
1677  * @skip underflow callback
1678  * @until static void
1679  * Flip the sheets on the widget while looking at the items list, in
1680  * the source code, and you'll get the idea of those events.
1681  *
1682  * The two buttons below the flip selector will take the actions
1683  * described in their labels:
1684  * @dontinclude flipselector_example.c
1685  * @skip bt = elm_button_add
1686  * @until callback_add(win
1687  *
1688  * @dontinclude flipselector_example.c
1689  * @skip unselect the item
1690  * @until underflow
1691  *
1692  * Click on them to exercise those flip selector API calls. To
1693  * interact with the other parts of this API, there's a command line
1694  * interface, whose help string can be asked for with the 'h' key:
1695  * @dontinclude flipselector_example.c
1696  * @skip commands
1697  * @until ;
1698  *
1699  * The 'n' and 'p' keys will exemplify elm_flipselector_flip_next()
1700  * and elm_flipselector_flip_prev(), respectively. 'f' and 'l' account
1701  * for elm_flipselector_first_item_get() and
1702  * elm_flipselector_last_item_get(), respectively. Finally, 's' will
1703  * issue elm_flipselector_selected_item_get() on our example flip
1704  * selector widget.
1705  *
1706  * See the full @ref flipselector_example.c "example", whose window should
1707  * look like this picture:
1708  *
1709  * @image html screenshots/flipselector_example.png
1710  * @image latex screenshots/flipselector_example.eps width=\textwidth
1711  *
1712  * See the full @ref flipselector_example_c "source code" for this example.
1713  *
1714  * @example flipselector_example.c
1715  */
1716
1717 /**
1718  * @page fileselector_example File selector widget example
1719  *
1720  * This code places two Elementary file selector widgets on a window.
1721  * The one on the left is layouting file system items in a @b list,
1722  * while the the other is layouting them in a @b grid.
1723  *
1724  * The one having the majority of hooks of interest is on the left,
1725  * which we create as follows:
1726  * @dontinclude fileselector_example.c
1727  * @skip first file selector
1728  * @until object_show
1729  *
1730  * Note that we enable custom edition of file/directory selection, via
1731  * the text entry it has on its bottom, via
1732  * elm_fileselector_is_save_set(). It starts with the list view, which
1733  * is the default, and we make it not expandable in place
1734  * (elm_fileselector_expandable_set()), so that it replaces its view's
1735  * contents with the current directory's entries each time one
1736  * navigates to a different folder.  For both of file selectors we are
1737  * starting to list the contents found in the @c "/tmp" directory
1738  * (elm_fileselector_path_set()).
1739  *
1740  * Note the code setting it to "grid mode" and observe the differences
1741  * in the file selector's views, in the example. We also hide the
1742  * second file selector's Ok/Cancel buttons -- since it's there just
1743  * to show the grid view (and navigation) -- via
1744  * elm_fileselector_buttons_ok_cancel_set().
1745  *
1746  * The @c "done" event, which triggers the callback below
1747  * @dontinclude fileselector_example.c
1748  * @skip 'done' cb
1749  * @until }
1750  * will be called at the time one clicks the "Ok"/"Cancel" buttons of
1751  * the file selector (on the left). Note that it will print the path
1752  * to the current selection, if any.
1753  *
1754  * The @c "selected" event, which triggers the callback below
1755  * @dontinclude fileselector_example.c
1756  * @skip bt = 'selected' cb
1757  * @until }
1758  * takes place when one selects a file (if the file selector is @b not
1759  * under folders-only mode) or when one selects a folder (when in
1760  * folders-only mode). Experiment it by selecting different file
1761  * system entries.
1762  *
1763  * What comes next is the code creating the three check boxes and two
1764  * buttons below the file selector in the right. They will exercise a
1765  * bunch of functions on the file selector's API, for the instance on
1766  * the left. Experiment with them, specially the buttons, to get the
1767  * difference between elm_fileselector_path_get() and
1768  * elm_fileselector_selected_get().
1769  *
1770  * Finally, there's the code adding the second file selector, on the
1771  * right:
1772  * @dontinclude fileselector_example.c
1773  * @skip second file selector
1774  * @until object_show
1775  *
1776  * Pay attention to the code setting it to "grid mode" and observe the
1777  * differences in the file selector's views, in the example. We also
1778  * hide the second file selector's Ok/Cancel buttons -- since it's
1779  * there just to show the grid view (and navigation) -- via
1780  * elm_fileselector_buttons_ok_cancel_set().
1781  *
1782  * See the full @ref fileselector_example.c "example", whose window
1783  * should look like this picture:
1784  *
1785  * @image html screenshots/fileselector_example.png
1786  * @image latex screenshots/fileselector_example.eps width=\textwidth
1787  *
1788  * See the full @ref fileselector_example_c "source code" for this example.
1789  *
1790  * @example fileselector_example.c
1791  */
1792
1793 /**
1794  * @page fileselector_button_example File selector button widget example
1795  *
1796  * This code places an Elementary file selector button widget on a
1797  * window, along with some other checkboxes and a text entry. Those
1798  * are there just as knobs on the file selector button's state and to
1799  * display information from it.
1800  *
1801  * Here's how we instantiate it:
1802  * @dontinclude fileselector_button_example.c
1803  * @skip ic = elm_icon_add
1804  * @until evas_object_show
1805  *
1806  * Note that we set on it both icon and label decorations. It's set to
1807  * list the contents of the @c "/tmp" directory, too, with
1808  * elm_fileselector_button_path_set(). What follows are checkboxes to
1809  * exercise some of its API funtions:
1810  * @dontinclude fileselector_button_example.c
1811  * @skip ck = elm_check_add
1812  * @until evas_object_show(en)
1813  *
1814  * The checkboxes will toggle whether the file selector button's
1815  * internal file selector:
1816  * - must have an editable text entry for file names (thus, be in
1817  *   "save dialog mode")
1818  * - is to be raised as an "inner window" (note it's the default
1819  *   behavior) or as a dedicated window
1820  * - is to populate its view with folders only
1821  * - is to expand its folders, in its view, <b>in place</b>, and not
1822  *   repainting it entirely just with the contents of a sole
1823  *   directory.
1824  *
1825  * The entry labeled @c "Last selection" will exercise the @c
1826  * "file,chosen" smart event coming from the file selector button:
1827  * @dontinclude fileselector_button_example.c
1828  * @skip hook on the
1829  * @until toggle inwin
1830  *
1831  * Whenever you dismiss or acknowledges the file selector, after it's
1832  * raised, the @c event_info string will contain the last selection on
1833  * it (if any was made).
1834  *
1835  * This is how the example, just after called, should look like:
1836  *
1837  * @image html screenshots/fileselector_button_example_00.png
1838  * @image latex screenshots/fileselector_button_example_00.eps width=\textwidth
1839  *
1840  * Click on the file selector button to raise its internal file
1841  * selector, which will be contained on an <b>"inner window"</b>:
1842  *
1843  * @image html screenshots/fileselector_button_example_01.png
1844  * @image latex screenshots/fileselector_button_example_01.eps width=\textwidth
1845  *
1846  * Toggle the "inwin mode" switch off and, if you click on the file
1847  * selector button again, you'll get @b two windows, the original one
1848  * (note the last selection there!)
1849  *
1850  * @image html screenshots/fileselector_button_example_02.png
1851  * @image latex screenshots/fileselector_button_example_02.eps width=\textwidth
1852  *
1853  * and the file selector's new one
1854  *
1855  * @image html screenshots/fileselector_button_example_03.png
1856  * @image latex screenshots/fileselector_button_example_03.eps width=\textwidth
1857  *
1858  * Play with the checkboxes to get the behavior changes on the file
1859  * selector button. The respective API calls on the widget coming from
1860  * those knobs where shown in the code already.
1861  *
1862  * See the full @ref fileselector_button_example_c "source code" for
1863  * this example.
1864  *
1865  * @example fileselector_button_example.c
1866  */
1867
1868 /**
1869  * @page fileselector_entry_example File selector entry widget example
1870  *
1871  * This code places an Elementary file selector entry widget on a
1872  * window, along with some other checkboxes. Those are there just as
1873  * knobs on the file selector entry's state.
1874  *
1875  * Here's how we instantiate it:
1876  * @dontinclude fileselector_entry_example.c
1877  * @skip ic = elm_icon_add
1878  * @until evas_object_show
1879  *
1880  * Note that we set on it's button both icon and label
1881  * decorations. It's set to exhibit the path of (and list the contents
1882  * of, when internal file selector is launched) the @c "/tmp"
1883  * directory, also, with elm_fileselector_entry_path_set(). What
1884  * follows are checkboxes to exercise some of its API funtions:
1885  * @dontinclude fileselector_entry_example.c
1886  * @skip ck = elm_check_add
1887  * @until callback_add(fs_entry
1888  *
1889  * The checkboxes will toggle whether the file selector entry's
1890  * internal file selector:
1891  * - must have an editable text entry for file names (thus, be in
1892  *   "save dialog mode")
1893  * - is to be raised as an "inner window" (note it's the default
1894  *   behavior) or as a dedicated window
1895  * - is to populate its view with folders only
1896  * - is to expand its folders, in its view, <b>in place</b>, and not
1897  *   repainting it entirely just with the contents of a sole
1898  *   directory.
1899  *
1900  * Observe how the entry's text will match the string coming from the
1901  * @c "file,chosen" smart event:
1902  * @dontinclude fileselector_entry_example.c
1903  * @skip hook on the
1904  * @until }
1905  * Whenever you dismiss or acknowledges the file selector, after it's
1906  * raised, the @c event_info string will contain the last selection on
1907  * it (if any was made).
1908  *
1909  * Try, also, to type in a valid system path and, then, open the file
1910  * selector's window: it will start the file browsing there, for you.
1911  *
1912  * This is how the example, just after called, should look like:
1913  *
1914  * @image html screenshots/fileselector_entry_example_00.png
1915  * @image latex screenshots/fileselector_entry_example_00.eps width=\textwidth
1916  *
1917  * Click on the file selector entry to raise its internal file
1918  * selector, which will be contained on an <b>"inner window"</b>:
1919  *
1920  * @image html screenshots/fileselector_entry_example_01.png
1921  * @image latex screenshots/fileselector_entry_example_01.eps width=\textwidth
1922  *
1923  * Toggle the "inwin mode" switch off and, if you click on the file
1924  * selector entry again, you'll get @b two windows, the original one
1925  * (note the last selection there!)
1926  *
1927  * @image html screenshots/fileselector_entry_example_02.png
1928  * @image latex screenshots/fileselector_entry_example_02.eps width=\textwidth
1929  *
1930  * and the file selector's new one
1931  *
1932  * @image html screenshots/fileselector_entry_example_03.png
1933  * @image latex screenshots/fileselector_entry_example_03.eps width=\textwidth
1934  *
1935  * Play with the checkboxes to get the behavior changes on the file
1936  * selector entry. The respective API calls on the widget coming from
1937  * those knobs where shown in the code already.
1938  *
1939  * See the full @ref fileselector_entry_example_c "source code" for
1940  * this example.
1941  *
1942  * @example fileselector_entry_example.c
1943  */
1944
1945 /**
1946  * @page layout_example_01 Layout - Content, Table and Box
1947  *
1948  * This example shows how one can use the @ref Layout widget to create a
1949  * customized distribution of widgets on the screen, controled by an Edje theme.
1950  * The full source code for this example can be found at @ref
1951  * layout_example_01_c.
1952  *
1953  * Our custom layout is defined by a file, @ref layout_example_edc, which is an
1954  * Edje theme file. Look for the Edje documentation to understand it. For now,
1955  * it's enough to know that we describe some specific parts on this layout
1956  * theme:
1957  * @li a title text field;
1958  * @li a box container;
1959  * @li a table container;
1960  * @li and a content container.
1961  *
1962  * Going straight to the code, the following snippet instantiates the layout
1963  * widget:
1964  *
1965  * @dontinclude layout_example_01.c
1966  * @skip elm_layout_add
1967  * @until evas_object_show(layout)
1968  *
1969  * As any other widget, we set some properties for the size calculation. But
1970  * notice on this piece of code the call to the function elm_layout_file_set().
1971  * Here is where the theme file is loaded, and particularly the specific group
1972  * from this theme file. Also notice that the theme file here is referenced as
1973  * an .edj, which is a .edc theme file compiled to its binary form. Again, look
1974  * for the Edje documentation for more information about theme files.
1975  *
1976  * Next, we fetch from our theme a data string referenced by the key "title".
1977  * This data was defined in the theme, and can be used as parameters which the
1978  * program get from the specific theme that it is using. In this case, we store
1979  * the title of this window and program in the theme, as a "data" entry, just
1980  * for demonstration purposes:
1981  *
1982  * @until }
1983  *
1984  * This call elm_layout_data_get() is used to fetch the string based on the key,
1985  * and elm_object_text_part_set() will set the part defined in the theme as
1986  * "example/title" to contain this string. This key "example/title" has nothing
1987  * special. It's just an arbitrary convention that we are using in this example.
1988  * Every string in this example referencing a part of this theme will be of the
1989  * form "example/<something>".
1990  *
1991  * Now let's start using our layout to distribute things on the window space.
1992  * Since the layout was added as a resize object to the elementary window, it
1993  * will always occupy the entire space available for this window.
1994  *
1995  * The theme already has a title, and it also defines a table element which is
1996  * positioned approximately between 50% and 70% of the height of this window,
1997  * and has 100% of the width. We create some widgets (two icons, a clock and a
1998  * button) and pack them inside the table, in a distribution similar to a HTML
1999  * table:
2000  *
2001  * @until evas_object_show(bt)
2002  *
2003  * Notice that we just set size hints for every object, and call the function
2004  * elm_layout_table_pack(), which does all the work. It will place the elements
2005  * in the specified row/column, with row and column span if required, and then
2006  * the object's size and position will be controled by the layout widget. It
2007  * will also respect size hints, alignments and weight properties set to these
2008  * widgets. The resulting distribution on the screen depends on the table
2009  * properties (described in the theme), the size hints set on each widget, and
2010  * on the cells of the table that are being used.
2011  *
2012  * For instance, we add the two icons and the clock on the first, second and
2013  * third cells of the first row, and add the button the second row, making it
2014  * span for 3 columns (thus having the size of the entire table width). This
2015  * will result in a table that has 2 rows and 3 columns.
2016  *
2017  * Now let's add some widgets to the box area of our layout. This box is around
2018  * 20% and 50% of the vertical size of the layout, and 100% of its width. The
2019  * theme defines that it will use an "horizontal flow" distribution to its
2020  * elements. Unlike the table, a box will distribute elements without knowing
2021  * about rows and columns, and the distribution function selected will take care
2022  * of putting them in row, column, both, or any other available layout. This is
2023  * also described in the Edje documentation.
2024  *
2025  * This box area is similar to the @ref Box widget of elementary, with the
2026  * difference that its position and properties are controled by the theme of the
2027  * layout. It also contains more than one API to add items to it, since the
2028  * items position now is defined in terms of a list of items, not a matrix.
2029  * There's the first position (can have items added to it with
2030  * elm_layout_box_prepend()), the last position (elm_layout_box_append()), the
2031  * nth position (elm_layout_box_insert_at()) and the position right before an
2032  * element (elm_layout_box_insert_before()). We use insert_at and prepend
2033  * functions to add the first two buttons to this box, and insert_before on the
2034  * callback of each button. The callback code will be shown later, but it
2035  * basically adds a button just before the clicked button using the
2036  * elm_layout_box_insert_before() function. Here's the code for adding the first
2037  * 2 buttons:
2038  *
2039  * @until evas_object_show(item)
2040  * @until evas_object_show(item)
2041  *
2042  * Finally, we have an area in this layout theme, in the bottom part of it,
2043  * reserved for adding an specific widget. Differently from the 2 parts
2044  * described until now, this one can only receive one widget with the call
2045  * elm_layout_content_set(). If there was already an item on this specific part,
2046  * it will be deleted (one can use elm_layout_content_unset() in order to remove
2047  * it without deleting). An example of removing it without deleting, but
2048  * manually deleting this widget just after that, can be seen on the callback
2049  * for this button. Actually, the callback defined for this button will clean
2050  * the two other parts (deleting all of their elements) and then remove and
2051  * delete this button.
2052  *
2053  * @until _swallow_btn_cb
2054  *
2055  * Also notice that, for this last added button, we don't have to call
2056  * evas_object_show() on it. This is a particularity of the theme for layouts,
2057  * that will have total control over the properties like size, position,
2058  * visibility and clipping of a widget added with elm_layout_content_set().
2059  * Again, read the Edje documentation to understand this better.
2060  *
2061  * Now we just put the code for the different callbacks specified for each kind
2062  * of button and make simple comments about them:
2063  *
2064  * @dontinclude layout_example_01.c
2065  * @skip static void
2066  * @until evas_object_del(item)
2067  * @until }
2068  *
2069  * The first callback is used for the button in the table, and will just remove
2070  * itself from the table with elm_layout_table_unpack(), which remove items
2071  * without deleting them, and then calling evas_object_del() on itself.
2072  *
2073  * The second callback is for buttons added to the box. When clicked, these
2074  * buttons will create a new button, and add them to the same box, in the
2075  * position just before the clicked button.
2076  *
2077  * And the last callback is for the button added to the "content" area. It will
2078  * clear both the table and the box, passing @c EINA_TRUE to their respective @c
2079  * clear parameters, which will imply on the items of these containers being
2080  * deleted.
2081  *
2082  * A screenshot of this example can be seen on:
2083  *
2084  * @image html screenshots/layout_example_01.png
2085  * @image latex screenshots/layout_example_01.eps width=\textwidth
2086  *
2087  */
2088
2089 /**
2090  * @page layout_example_02 Layout - Predefined Layout
2091  *
2092  * This example shows how one can use the @ref Layout with a predefined theme
2093  * layout to add a back and next button to a simple window. The full source code
2094  * for this example can be found at @ref layout_example_02_c.
2095  *
2096  * After setting up the window and background, we add the layout widget to the
2097  * window. But instead of using elm_layout_file_set() to load its theme from a
2098  * custom theme file, we can use elm_layout_theme_set() to load one of the
2099  * predefined layouts that come with elementary. Particularly on this example,
2100  * we load the them of class "layout", group "application" and style
2101  * "content-back-next" (since we want the back and next buttons).
2102  *
2103  * @dontinclude layout_example_02.c
2104  * @skip elm_layout_add
2105  * @until evas_object_show(layout)
2106  *
2107  * This default theme contains only a "content" area named
2108  * "elm.swallow.content", where we can add any widget (it can be even a
2109  * container widget, like a box, frame, list, or even another layout). Since we
2110  * just want to show the resulting layout, we add a simple icon to it:
2111  *
2112  * @until layout_content_set
2113  *
2114  * This default layout also provides some signals when the next and prev buttons
2115  * are clicked. We can register callbacks to them with the
2116  * elm_object_signal_callback_add() function:
2117  *
2118  * @until elm,action,next
2119  *
2120  * In the @ref layout_example_03 you can see how to send signals to the layout with
2121  * elm_object_signal_emit().
2122  *
2123  * Now our callback just changes the picture being displayed when one of the
2124  * buttons are clicked:
2125  *
2126  * @dontinclude layout_example_02.c
2127  * @skip images
2128  * @until standard_set
2129  * @until }
2130  *
2131  * It's possible to see that it gets the name of the image being shown from the
2132  * array of image names, going forward on this array when "next" is clicked and
2133  * backward when "back" is clicked.
2134  *
2135  * A screenshot of this example can be seen on:
2136  *
2137  * @image html screenshots/layout_example_02.png
2138  * @image latex screenshots/layout_example_02.eps width=\textwidth
2139  */
2140
2141 /**
2142  * @page layout_example_03 Layout - Signals and Size Changed
2143  *
2144  * This example shows how one can send and receive signals to/from the layout,
2145  * and what to do when the layout theme has its size changed. The full source
2146  * code for this example can be found at @ref layout_example_03_c.
2147  *
2148  * In this exmaple we will use another group from the same layout theme file
2149  * used in @ref layout_example_01. Its instanciation and loading happens in the
2150  * following lines:
2151  *
2152  * @dontinclude layout_example_03.c
2153  * @skip elm_layout_add
2154  * @until evas_object_show
2155  *
2156  * This time we register a callback to be called whenever we receive a signal
2157  * after the end of the animation that happens in this layout:
2158  *
2159  * @until signal_callback_add
2160  *
2161  * We also add a button that will send signals to the layout:
2162  *
2163  * @until callback_add
2164  *
2165  * The callback for this button will check what type of signal it should send,
2166  * and then emit it. The code for this callback follows:
2167  *
2168  * @dontinclude layout_exmaple_03.c
2169  * @skip static Eina_Bool
2170  * @until Enlarge
2171  * @until }
2172  * @until }
2173  *
2174  * As we said before, we are receiving a signal whenever the animation started
2175  * by the button click ends. This is the callback for that signal:
2176  *
2177  * @until }
2178  *
2179  * Notice from this callback that the elm_layout_sizing_eval() function must be
2180  * called if we want our widget to update its size after the layout theme having
2181  * changed its minimum size. This happens because the animation specified in the
2182  * theme increases the size of the content area to a value higher than the
2183  * widget size, thus requiring more space. But the elementary layout widget
2184  * has no way to know this, thus needing the elm_layout_sizing_eval() to
2185  * be called on the layout, informing that this size has changed.
2186  *
2187  * A screenshot of this example can be seen on:
2188  *
2189  * @image html screenshots/layout_example_03.png
2190  * @image latex screenshots/layout_example_03.eps width=\textwidth
2191  */
2192
2193 /**
2194  * @page tutorial_hover Hover example
2195  * @dontinclude hover_example_01.c
2196  *
2197  * On this example we are going to have a button that when clicked will show our
2198  * hover widget, this hover will have content set on it's left, top, right and
2199  * middle positions. In the middle position we are placing a button that when
2200  * clicked will hide the hover. We are also going to use a non-default theme
2201  * for our hover. We won't explain the functioning of button for that see @ref
2202  * Button.
2203  *
2204  * We start our example with a couple of callbacks that show and hide the data
2205  * they're given(which we'll see later on is the hover widget):
2206  * @skip static
2207  * @until }
2208  * @until }
2209  *
2210  * In our main function we'll do some initialization and then create 3
2211  * rectangles, one red, one green and one blue to use in our hover. We'll also
2212  * create the 2 buttons that will show and hide the hover:
2213  * @until show(bt2)
2214  *
2215  * With all of that squared away we can now get to the heart of the matter,
2216  * creating our hover widget, which is easy as pie:
2217  * @until hover
2218  *
2219  * Having created our hover we now need to set the parent and target. Which if
2220  * you recall from the function documentations are going to tell the hover which
2221  * area it should cover and where it should be centered:
2222  * @until bt
2223  *
2224  * Now we set the theme for our hover. We're using the popout theme which gives
2225  * our contents a white background and causes their appearance to be animated:
2226  * @until popout
2227  *
2228  * And finally we set the content for our positions:
2229  * @until bt2
2230  *
2231  * So far so good? Great 'cause that's all there is too it, what is left now is
2232  * just connecting our buttons to the callbacks we defined at the beginning of
2233  * the example and run the main loop:
2234  * @until ELM_MAIN
2235  *
2236  * Our example will initially look like this:
2237  *
2238  * @image html screenshots/hover_example_01.png
2239  * @image latex screenshots/hover_example_01.eps width=\textwidth
2240  *
2241  * And after you click the "Show hover" button it will look like this:
2242  *
2243  * @image html screenshots/hover_example_01_a.png
2244  * @image latex screenshots/hover_example_01_a.eps width=\textwidth
2245  *
2246  * @example hover_example_01.c
2247  */
2248
2249 /**
2250   * @page tutorial_flip Flip example
2251   * @dontinclude flip_example_01.c
2252   *
2253   * This example will show a flip with two rectangles on it(one blue, one
2254   * green). Our example will allow the user to choose the animation the flip
2255   * uses and to interact with it. To allow the user to choose the interaction
2256   * mode we use radio buttons, we will however not explain them, if you would
2257   * like to know more about radio buttons see @ref radio.
2258   *
2259   * We start our example with the usual setup and then create the 2 rectangles
2260   * we will use in our flip:
2261   * @until show(rect2)
2262   *
2263   * The next thing to do is to create our flip and set it's front and back
2264   * content:
2265   * @until show
2266   *
2267   * The next thing we do is set the interaction mode(which the user can later
2268   * change) to the page animation:
2269   * @until PAGE
2270   *
2271   * Setting a interaction mode however is not sufficient, we also need to
2272   * choose which directions we allow interaction from, for this example we
2273   * will use all of them:
2274   * @until RIGHT
2275   *
2276   * We are also going to set the hitsize to the entire flip(in all directions)
2277   * to make our flip very easy to interact with:
2278   * @until RIGHT
2279   *
2280   * After that we create our radio buttons and start the main loop:
2281   * @until ELM_MAIN()
2282   *
2283   * When the user clicks a radio button a function that changes the
2284   * interaction mode and animates the flip is called:
2285   * @until }
2286   * @note The elm_flip_go() call here serves no purpose other than to
2287   * ilustrate that it's possible to animate the flip programmatically.
2288   *
2289   * Our example will look like this:
2290   *
2291   * @image html screenshots/flip_example_01.png
2292   * @image latex screenshots/flip_example_01.eps width=\textwidth
2293   *
2294   * @note Since this is an animated example the screenshot doesn't do it
2295   * justice, it is a good idea to compile it and see the animations.
2296   *
2297   * @example flip_example_01.c
2298   */
2299
2300  /**
2301   * @page tutorial_label Label example
2302   * @dontinclude label_example_01.c
2303   *
2304   * In this example we are going to create 6 labels, set some properties on
2305   * them and see what changes in appearance those properties cause.
2306   *
2307   * We start with the setup code that by now you should be familiar with:
2308   * @until show(bg)
2309   *
2310   * For our first label we have a moderately long text(that doesn't fit in the
2311   * label's width) so we will make it a sliding label. Since the text isn't
2312   * too long we don't need the animation to be very long, 3 seconds should
2313   * give us a nice speed:
2314   * @until show(label
2315   *
2316   * For our second label we have the same text, but this time we aren't going
2317   * to have it slide, we're going to ellipsize it. Because we ask our label
2318   * widget to ellipsize the text it will first diminsh the fontsize so that it
2319   * can show as much of the text as possible:
2320   * @until show(label
2321   *
2322   * For the third label we are going to ellipsize the text again, however this
2323   * time to make sure the fontsize isn't diminshed we will set a line wrap.
2324   * The wrap won't actually cause a line break because we set the label to
2325   * ellipsize:
2326   * @until show(label
2327   *
2328   * For our fourth label we will set line wrapping but won't set ellipsis, so
2329   * that our text will indeed be wrapped instead of ellipsized. For this label
2330   * we choose character wrap:
2331   * @until show(label
2332   *
2333   * Just two more, for our fifth label we do the same as for the fourth
2334   * except we set the wrap to word:
2335   * @until show(label
2336   *
2337   * And last but not least for our sixth label we set the style to "marker" and
2338   * the color to red(the default color is white which would be hard to see on
2339   * our white background):
2340   * @until show(label
2341   *
2342   * Our example will look like this:
2343   *
2344   * @image html screenshots/label_example_01.png
2345   * @image latex screenshots/label_example_01.eps width=\textwidth
2346   *
2347   * @example label_example_01.c
2348   */
2349
2350  /**
2351   * @page tutorial_image Image example
2352   * @dontinclude image_example_01.c
2353   *
2354   * This example is as simple as possible. An image object will be added to the
2355   * window over a white background, and set to be resizeable together with the
2356   * window. All the options set through the example will affect the behavior of
2357   * this image.
2358   *
2359   * We start with the code for creating a window and its background, and also
2360   * add the code to write the path to the image that will be loaded:
2361   *
2362   * @skip int
2363   * @until snprintf
2364   *
2365   * Now we create the image object, and set that file to be loaded:
2366   *
2367   * @until }
2368   *
2369   * We can now go setting our options.
2370   *
2371   * elm_image_no_scale_set() is used just to set this value to true (we
2372   * don't want to scale our image anyway, just resize it).
2373   *
2374   * elm_image_scale_set() is used to allow the image to be resized to a size
2375   * smaller than the original one, but not to a size bigger than it.
2376   *
2377   * elm_elm_image_smooth_set() will disable the smooth scaling, so the scale
2378   * algorithm used to scale the image to the new object size is going to be
2379   * faster, but with a lower quality.
2380   *
2381   * elm_image_orient_set() is used to flip the image around the (1, 0) (0, 1)
2382   * diagonal.
2383   *
2384   * elm_image_aspect_ratio_retained_set() is used to keep the original aspect
2385   * ratio of the image, even when the window is resized to another aspect ratio.
2386   *
2387   * elm_image_fill_outside_set() is used to ensure that the image will fill the
2388   * entire area available to it, even if keeping the aspect ratio. The image
2389   * will overflow its width or height (any of them that is necessary) to the
2390   * object area, instead of resizing the image down until it can fit entirely in
2391   * this area.
2392   *
2393   * elm_image_editable_set() is used just to cover the API, but won't affect
2394   * this example since we are not using any copy & paste property.
2395   *
2396   * This is the code for setting these options:
2397   *
2398   * @until editable
2399   *
2400   * Now some last touches in our object size hints, window and background, to
2401   * display this image properly:
2402   *
2403   * @until ELM_MAIN
2404   *
2405   * This example will look like this:
2406   *
2407   * @image html screenshots/image_example_01.png
2408   * @image latex screenshots/image_example_01.eps width=\textwidth
2409   *
2410   * @example image_example_01.c
2411   */
2412
2413  /**
2414   * @page tutorial_icon Icon example
2415   * @dontinclude icon_example_01.c
2416   *
2417   * This example is as simple as possible. An icon object will be added to the
2418   * window over a white background, and set to be resizeable together with the
2419   * window. All the options set through the example will affect the behavior of
2420   * this icon.
2421   *
2422   * We start with the code for creating a window and its background:
2423   *
2424   * @skip int
2425   * @until show(bg)
2426   *
2427   * Now we create the icon object, and set lookup order of the icon, and choose
2428   * the "home" icon:
2429   *
2430   * @until home
2431   *
2432   * An intersting thing is that after setting this, it's possible to check where
2433   * in the filesystem is the theme used by this icon, and the name of the group
2434   * used:
2435   *
2436   * @until printf
2437   *
2438   * We can now go setting our options.
2439   *
2440   * elm_icon_no_scale_set() is used just to set this value to true (we
2441   * don't want to scale our icon anyway, just resize it).
2442   *
2443   * elm_icon_scale_set() is used to allow the icon to be resized to a size
2444   * smaller than the original one, but not to a size bigger than it.
2445   *
2446   * elm_elm_icon_smooth_set() will disable the smooth scaling, so the scale
2447   * algorithm used to scale the icon to the new object size is going to be
2448   * faster, but with a lower quality.
2449   *
2450   * elm_icon_fill_outside_set() is used to ensure that the icon will fill the
2451   * entire area available to it, even if keeping the aspect ratio. The icon
2452   * will overflow its width or height (any of them that is necessary) to the
2453   * object area, instead of resizing the icon down until it can fit entirely in
2454   * this area.
2455   *
2456   * This is the code for setting these options:
2457   *
2458   * @until fill_outside
2459   *
2460   * However, if you try this example you may notice that this image is not being
2461   * affected by all of these options. This happens because the used icon will be
2462   * from elementary theme, and thus it has its own set of options like smooth
2463   * scaling and fill_outside options. You can change the "home" icon to use some
2464   * image (from your system) and see that then those options will be respected.
2465   *
2466   * Now some last touches in our object size hints, window and background, to
2467   * display this icon properly:
2468   *
2469   * @until ELM_MAIN
2470   *
2471   * This example will look like this:
2472   *
2473   * @image html screenshots/icon_example_01.png
2474   * @image latex screenshots/icon_example_01.eps width=\textwidth
2475   *
2476   * @example icon_example_01.c
2477   */
2478
2479 /**
2480  * @page tutorial_hoversel Hoversel example
2481  * @dontinclude hoversel_example_01.c
2482  *
2483  * In this example we will create a hoversel with 3 items, one with a label but
2484  * no icon and two with both a label and an icon. Every item that is clicked
2485  * will be deleted, but everytime the hoversel is activated we will also add an
2486  * item. In addition our first item will print all items when clicked and our
2487  * third item will clear all items in the hoversel.
2488  *
2489  * We will start with the normal creation of window stuff:
2490  * @until show(bg)
2491  *
2492  * Next we will create a red rectangle to use as the icon of our hoversel:
2493  * @until show
2494  *
2495  * And now we create our hoversel and set some of it's properties. We set @p win
2496  * as its parent, ask it to not be horizontal(be vertical) and give it a label
2497  * and icon:
2498  * @until icon_set
2499  *
2500  * Next we will add our three items, setting a callback to be called for the
2501  * first and third:
2502  * @until _rm_items
2503  *
2504  * We also set a pair of callbacks to be called whenever any item is selected or
2505  * when the hoversel is activated:
2506  * @until clicked
2507  *
2508  * And then ask that our hoversel be shown and run the main loop:
2509  * @until ELM_MAIN
2510  *
2511  * We now have the callback for our first item which prints all items in the
2512  * hoversel:
2513  * @until }
2514  *
2515  * Next we have the callback for our third item which removes all items from the
2516  * hoversel:
2517  * @until }
2518  *
2519  * Next we have the callback that is called whenever an item is clicked and
2520  * deletes that item:
2521  * @until }
2522  *
2523  * And the callback that is called when the hoversel is activated and adds an
2524  * item to the hoversel. Note that since we allocate memory for the item we need
2525  * to know when the item dies so we can free that memory:
2526  * @until }
2527  *
2528  * And finally the callback that frees the memory we allocated for items created
2529  * in the @p _add_item callback:
2530  * @until }
2531  *
2532  * Our example will initially look like this:
2533  *
2534  * @image html screenshots/hoversel_example_01.png
2535  * @image latex screenshots/hoversel_example_01.eps width=\textwidth
2536  *
2537  * And when the hoversel is clicked it will look like this:
2538  *
2539  * @image html screenshots/hoversel_example_01_a.png
2540  * @image latex screenshots/hoversel_example_01_a.eps width=\textwidth
2541  *
2542  * @example hoversel_example_01.c
2543  */
2544
2545 /**
2546  * @page conformant_example Conformant Example.
2547  *
2548  * In this example we'll explain how to create applications to work
2549  * with illume, considering space required for virtual keyboards, indicator
2550  * and softkeys.
2551  *
2552  * Illume is a module for Enlightenment that modifies the user interface
2553  * to work cleanly and nicely on a mobile device. It has support for
2554  * virtual keyboard, among other nice features.
2555  *
2556  * Let's start creating a very simple window with a vertical box
2557  * with multi-line entry between two buttons.
2558  * This entry will expand filling all space on window not used by buttons.
2559  *
2560  * @dontinclude conformant_example_01.c
2561  * @skipline elm_main
2562  * @until }
2563  *
2564  * For information about how to create windows, boxes, buttons or entries,
2565  * look for documentation for these widgets.
2566  *
2567  * It will looks fine when you don't need a virtual keyboard, as you
2568  * can see on the following image:
2569  *
2570  * @image html screenshots/conformant_example_01.png
2571  * @image latex screenshots/conformant_example_01.eps width=\textwidth
2572  *
2573  * But if you call a virtual keyboard, the window will resize, changing
2574  * widgets size and position. All the content will shrink.
2575  *
2576  * If you don't want such behaviour, you
2577  * will need a conformant to account for space taken up by the indicator,
2578  * virtual keyboard and softkey.
2579  *
2580  * In this case, using the conformant in a proper way, you will have
2581  * a window like the following:
2582  *
2583  * @image html screenshots/conformant_example_02.png
2584  * @image latex screenshots/conformant_example_02.eps width=\textwidth
2585  *
2586  * As you can see, it guess the space that will be required by the keyboard,
2587  * indicator and softkey bars.
2588  *
2589  * So, let's study each step required to transform our initial example on
2590  * the second one.
2591  *
2592  * First of all, we need to set the window as an illume conformant window:
2593  * @dontinclude conformant_example_02.c
2594  * @skipline elm_win_conformant_set
2595  *
2596  * Next, we'll add a conformant widget, and set it to resize with the window,
2597  * instead of the box.
2598  * @skipline conform
2599  * @until evas_object_show
2600  *
2601  * Finally, we'll set the box as conformant's content, just like this:
2602  * @skipline elm_conformant_content_set
2603  *
2604  * Compare both examples code:
2605  * @ref conformant_example_01.c "conformant_example_01.c"
2606  * @ref conformant_example_02.c "conformant_example_02.c"
2607  *
2608  * @example conformant_example_01.c
2609  * @example conformant_example_02.c
2610  */
2611
2612 /**
2613  * @page index_example_01 Index widget example 1
2614  *
2615  * This code places an Elementary index widget on a window, which also
2616  * has a very long list of arbitrary strings on it.  The list is
2617  * sorted alphabetically and the index will be used to index the first
2618  * items of each set of strings beginning with an alphabet letter.
2619  *
2620  * Below the list are some buttons, which are there just to exercise
2621  * some index widget's API.
2622  *
2623  * Here's how we instantiate it:
2624  * @dontinclude index_example_01.c
2625  * @skip elm_list_add
2626  * @until evas_object_show(d.index)
2627  * where we're showing also the list being created. Note that we issue
2628  * elm_win_resize_object_add() on the index, so that it's set to have
2629  * the whole window as its container. Then, we have to populate both
2630  * list and index widgets:
2631  * @dontinclude index_example_01.c
2632  * @skip for (i = 0; i < (sizeof(dict) / sizeof(dict[0])); i++)
2633  * @until }
2634  * @until }
2635  *
2636  * The strings populating the list come from a file
2637  * @dontinclude index_example_01.c
2638  * @skip static const char *dict
2639  * @until }
2640  *
2641  * We use the @c curr char variable to hold the last initial letter
2642  * seen on that ordered list of strings, so that we're able to have an
2643  * index item pointing to each list item starting a new letter
2644  * "section". Note that our index item data pointers will be the list
2645  * item handles. We are also setting a callback function to index
2646  * items deletion events:
2647  * @dontinclude index_example_01.c
2648  * @skip static void
2649  * @until }
2650  *
2651  * There, we show you that the @c event_info pointer will contain the
2652  * item in question's data, i.e., a given list item's pointer. Because
2653  * item data is also returned in the @c data argument on
2654  * @c Evas_Smart_Cb functions, those two pointers must have the same
2655  * values. On this deletion callback, we're deleting the referred list
2656  * item too, just to exemplify that anything could be done there.
2657  *
2658  * Next, we hook to two smart events of the index object:
2659  * @dontinclude index_example_01.c
2660  * @skip smart_callback_add(d.index
2661  * @until _index_selected
2662  * @dontinclude index_example_01.c
2663  * @skip "delay,changed" hook
2664  * @until }
2665  * @until }
2666  *
2667  * Check that, whenever one holds the mouse pressed over a given index
2668  * letter for some time, the list beneath it will roll down to the
2669  * item pointed to by that index item. When one releases the mouse
2670  * button, the second callback takes place. There, we check that the
2671  * reported item data, on @c event_info, is the same reported by
2672  * elm_index_item_selected_get(), which gives the last selection's
2673  * data on the index widget.
2674  *
2675  * The first of the three buttons that follow will call
2676  * elm_index_active_set(), thus showing the index automatically for
2677  * you, if it's not already visible, what is checked with
2678  * elm_index_active_get(). The second button will exercise @b deletion
2679  * of index item objects, by the following code:
2680  * @dontinclude index_example_01.c
2681  * @skip delete an index item
2682  * @until }
2683  *
2684  * It will get the last index item selected's data and find the
2685  * respective #Elm_Index_Item handle with elm_index_item_find(). We
2686  * need the latter to query the indexing letter string from, with
2687  * elm_index_item_letter_get(). Next, comes the delition, itself,
2688  * which will also trigger the @c _index_item_del callback function,
2689  * as said above.
2690  *
2691  * The third button, finally, will exercise elm_index_item_clear(),
2692  * which will delete @b all of the index's items.
2693  *
2694  * This is how the example program's window looks like with the index
2695  * widget hidden:
2696  * @image html screenshots/index_example_00.png
2697  * @image latex screenshots/index_example_00.eps
2698  *
2699  * When it's shown, it's like the following figure:
2700  * @image html screenshots/index_example_01.png
2701  * @image latex screenshots/index_example_01.eps
2702  *
2703  * See the full @ref index_example_01_c "source code" for
2704  * this example.
2705  *
2706  * @example index_example_01.c
2707  */
2708
2709 /**
2710  * @page index_example_02 Index widget example 2
2711  *
2712  * This code places an Elementary index widget on a window, indexing
2713  * grid items. The items are placed so that their labels @b don't
2714  * follow any order, but the index itself is ordered (through
2715  * elm_index_item_sorted_insert()). This is a complement to to @ref
2716  * index_example_01 "the first example on indexes".
2717  *
2718  * Here's the list of item labels to be used on the grid (in that
2719  * order):
2720  * @dontinclude index_example_02.c
2721  * @skip static const char *items
2722  * @until };
2723  *
2724  * In the interesting part of the code, here, we first instantiate the
2725  * grid (more on grids on their examples) and, after creating our
2726  * index, for each grid item we also create an index one to reference
2727  * it:
2728  * @dontinclude index_example_02.c
2729  * @skip grid = elm_gengrid_add
2730  * @until }
2731  * @until smart_callback_add
2732  *
2733  * The order in which they'll appear in the index, though, is @b
2734  * alphabetical, becase of elm_index_item_sorted_insert() usage
2735  * together with the comparing function, where we take the letters of
2736  * each index item to base our ordering on. The parameters on
2737  * @c _index_cmp have to be declared as void pointers because of the
2738  * @c Eina_Compare_Cb prototype requisition, but in this case we know
2739  * they'll be #Elm_Index_Item's:
2740  * @dontinclude index_example_02.c
2741  * @skip ordering alphabetically
2742  * @until }
2743  *
2744  * The last interesting bit is the callback in the @c "delay,changed"
2745  * smart event, which will bring the given grid item to the grid's
2746  * visible area:
2747  * @dontinclude index_example_02.c
2748  * @skip static void
2749  * @until }
2750  *
2751  * Note how the grid will move kind of randomly while you move your
2752  * mouse pointer held over the index from top to bottom -- that's
2753  * because of the the random order the items have in the grid itself.
2754  *
2755  * This is how the example program's window looks like:
2756  * @image html screenshots/index_example_03.png
2757  * @image latex screenshots/index_example_03.eps
2758  *
2759  * See the full @ref index_example_c "source code" for
2760  * this example.
2761  *
2762  * @example index_example_02.c
2763  */
2764
2765 /**
2766  * @page tutorial_ctxpopup Ctxpopup example
2767  * @dontinclude ctxpopup_example_01.c
2768  *
2769  * In this example we have a list with two items, when either item is clicked
2770  * a ctxpopup for it will be shown. Our two ctxpopups are quite different, the
2771  * one for the first item is a vertical and it's items contain both labels and
2772  * icons, the one for the second item is horizontal and it's items have icons
2773  * but not labels.
2774  *
2775  * We will begin examining our example code by looking at the callback we'll use
2776  * when items in the ctxpopup are clicked. It's very simple, all it does is
2777  * print the label present in the ctxpopup item:
2778  * @until }
2779  *
2780  * Next we examine a function that creates ctxpopup items, it was created to
2781  * avoid repeating the same code whenever we needed to add an item to our
2782  * ctxpopup. Our function creates an icon from the standard set of icons, and
2783  * then creates the item, with the label received as an argument. We also set
2784  * the callback to be called when the item is clicked:
2785  * @until }
2786  *
2787  * Finally we have the function that will create the ctxpopup for the first item
2788  * in our list. This one is somewhat more complex though, so let's go through it
2789  * in parts. First we declare our variable and add the ctxpopup:
2790  * @until ctxpopup_add
2791  *
2792  * Next we create a bunch of items for our ctxpopup, marking two of them as
2793  * disabled just so we can see what that will look like:
2794  * @until disabled_set
2795  * @until disabled_set
2796  *
2797  * Then we ask evas where the mouse pointer was so that we can have our ctxpopup
2798  * appear in the right place, set a maximum size for the ctxpopup, move it and
2799  * show it:
2800  * @until show
2801  *
2802  * And last we mark the list item as not selected:
2803  * @until }
2804  *
2805  * Our next function is the callback that will create the ctxpopup for the
2806  * second list item, it is very similar to the previous function. A couple of
2807  * interesting things to note is that we ask our ctxpopup to be horizontal, and
2808  * that we pass NULL as the label for every item:
2809  * @until }
2810  *
2811  * And with all of that in place we can now get to our main function where we
2812  * create the window, the list, the list items and run the main loop:
2813  * @until ELM_MAIN()
2814  *
2815  * The example will initially look like this:
2816  *
2817  * @image html screenshots/ctxpopup_example_01.png
2818  * @image latex screenshots/ctxpopup_example_01.eps width=\textwidth
2819  *
2820  * @note This doesn't show the ctxpopup tough, since it will only appear when
2821  * we click one of the list items.
2822  *
2823  * Here is what our first ctxpopup will look like:
2824  *
2825  * @image html screenshots/ctxpopup_example_01_a.png
2826  * @image latex screenshots/ctxpopup_example_01_a.eps width=\textwidth
2827  *
2828  * And here the second ctxpopup:
2829  *
2830  * @image html screenshots/ctxpopup_example_01_b.png
2831  * @image latex screenshots/ctxpopup_example_01_b.eps width=\textwidth
2832  *
2833  * @example ctxpopup_example_01.c
2834  */
2835
2836 /**
2837  * @page tutorial_pager
2838  * @dontinclude pager_example_01.c
2839  *
2840  * In this example we'll have a pager with 3 rectangles on it, one blue, one
2841  * green and one blue, we'll also have 1 button for each rectangle. Pressing a
2842  * button will bring the associated rectangle to the front of the pager(promote
2843  * it).
2844  *
2845  * We start our example with some run of the mill code that you've seen in other
2846  * examples:
2847  * @until show
2848  *
2849  * And then we get right to creating our pager, setting a style and some basic
2850  * properties to it:
2851  * @until show
2852  *
2853  * Well a pager without any content is not of much use, so let's create the
2854  * first of our rectangles, add it to the pager and create the button for it:
2855  * @until smart_callback
2856  * @note The only line of above code that directly relates to our pager is the
2857  * call to elm_pager_content_push().
2858  *
2859  * And now we will do the same thing again twice for our next two rectangles:
2860  * @until smart_callback
2861  * @until smart_callback
2862  *
2863  * Now that we haver our widgets create we can get to running the main loop:
2864  * @until ELM_MAIN
2865  *
2866  * We also have the callback that is called when any of the buttons is pressed,
2867  * this callback is receiving the rectangle in it's @p data argument, so we
2868  * check if it's already on top and if not move it there:
2869  * @until }
2870  *
2871  * Our example will look like this:
2872  *
2873  * @image html screenshots/pager_example_01.png
2874  * @image latex screenshots/pager_example_01.eps width=\textwidth
2875  * @note Like all examples that involve animations the screenshot doesn't do it
2876  * justice, seeing it in action is a must.
2877  *
2878  * @example pager_example_01.c
2879  */
2880
2881 /**
2882  * @page tutorial_separator Separator example
2883  * @dontinclude separator_example_01.c
2884  *
2885  * In this example we are going to pack two rectangles in a box, and have a
2886  * separator in the middle.
2887  *
2888  * So we start we the window, background, box and rectangle creation, all pretty
2889  * normal stuff:
2890  * @until pack_end
2891  *
2892  * Once we have our first rectangle in the box we create and add our separator:
2893  * @until pack_end
2894  * @note Since our box is in horizontal mode it's a good idea to set the
2895  * separator to be horizontal too.
2896  *
2897  * And now we add our second rectangle and run the main loop:
2898  * @until ELM_MAIN
2899  *
2900  * This example will look like this:
2901  *
2902  * @image html screenshots/separator_example_01.png
2903  * @image eps screenshots/separator_example_01.eps width=\textwidth
2904  *
2905  * @example separator_example_01.c
2906  */
2907
2908 /**
2909  * @page tutorial_radio Radio example
2910  * @dontinclude radio_example_01.c
2911  *
2912  * In this example we will create 4 radio buttons, three of them in a group and
2913  * another one not in the group. We will also have the radios in the group
2914  * change the value of a variable directly and have then print it when the value
2915  * changes. The fourth button is in the example just to make clear that radios
2916  * outside the group don't affect the group.
2917  *
2918  * We'll start with the usual includes:
2919  * @until #endif
2920  *
2921  * And move right to declaring a static variable(the one whose value the radios
2922  * will change):
2923  * @until static
2924  *
2925  * We now need to have a window and all that good stuff to be able to place our
2926  * radios in:
2927  * @until show(bx)
2928  *
2929  * And now we create a radio button, since this is the first button in our group
2930  * we set the group to be the radio(so we can set the other radios in the same
2931  * group). We also set the state value of this radio to 1 and the value pointer
2932  * to @p val, since val is @p 1 this has the additional effect of setting the
2933  * radio value to @p 1. For this radio we choose the default home icon:
2934  * @until show
2935  *
2936  * To check that our radio buttons are working we'll add a callback to the
2937  * "changed" signal of the radio:
2938  * @until smart_callback
2939  *
2940  * The creation of our second radio button is almost identical, the 2
2941  * differences worth noting are, the value of this radio 2 and that we add this
2942  * radio to the group of the first radio:
2943  * @until smart_callback
2944  *
2945  * For our third callback we'll omit the icon and set the value to 3, we'll also
2946  * add it to the group of the first radio:
2947  * @until smart_callback
2948  *
2949  * Our fourth callback has a value of 4, no icon and most relevantly is not a
2950  * member of the same group as the other radios:
2951  * @until show
2952  *
2953  * We finally run the main loop:
2954  * @until ELM_MAIN
2955  *
2956  * And the last detail in our example is the callback that prints @p val so that
2957  * we can see that the radios are indeed changing its value:
2958  * @until }
2959  *
2960  * The example will look like this:
2961  *
2962  * @image html screenshots/radio_example_01.png
2963  * @image latex screenshots/radio_example_01.epx width=\textwidth
2964  *
2965  * @example radio_example_01.c
2966  */
2967
2968 /**
2969  * @page tutorial_toggle Toggle example
2970  * @dontinclude toggle_example_01.c
2971  *
2972  * In this example we'll create 2 toggle widgets. The first will have an icon
2973  * and the state names will be the default "on"/"off", it will also change the
2974  * value of a variable directly. The second won't have a icon, the state names
2975  * will be "Enabled"/"Disabled", it will  start "Enabled" and it won't set the
2976  * value of a variable.
2977  *
2978  * We start with the usual includes and prototype for callback which will be
2979  * implemented and detailed later on:
2980  * @until _cb2
2981  *
2982  * We then declare a static global variable(the one whose value will be changed
2983  * by the first toggle):
2984  * @until static
2985  *
2986  * We now have to create our window and all that usual stuff:
2987  * @until show(bx)
2988  *
2989  * The creation of a toggle is no more complicated than that of any other
2990  * widget:
2991  * @until add
2992  *
2993  * For our first toggle we don't set the states labels so they will stay the
2994  * default, however we do set a label for the toggle, an icon and the variable
2995  * whose value it should change:
2996  * @until show
2997  *
2998  * We also set the callback that will be called when the toggles value changes:
2999  * @until smart_callback
3000  *
3001  * For our second toggle it important to note that we set the states labels,
3002  * don't set an icon or variable, but set the initial state to
3003  * EINA_TRUE("Enabled"):
3004  * @until show
3005  *
3006  * For the second toggle we will use a different callback:
3007  * @until smart_callback
3008  *
3009  * We then ask the main loop to start:
3010  * @until ELM_MAIN
3011  *
3012  * The callback for our first toggle will look the value of @p val and print it:
3013  * @until }
3014  *
3015  * For our second callback we need to do a little bit more, since the second
3016  * toggle doesn't change the value of a variable we have to ask it what its
3017  * state is:
3018  * @until }
3019  *
3020  * This example will look like this:
3021  *
3022  * @image html screenshots/toggle_example_01.png
3023  * @image latex screenshots/toggle_example_01.eps width=\textwidth
3024  *
3025  * @example toggle_example_01.c
3026  */
3027
3028 /**
3029  * @page tutorial_panel Panel example
3030  * @dontinclude panel_example_01.c
3031  *
3032  * In this example will have 3 panels, one for each possible orientation. Two of
3033  * our panels will start out hidden, the third will start out expanded. For each
3034  * of the panels we will use a label as the content, it's however possible to
3035  * have any widget(including containers) as the content of panels.
3036  *
3037  * We start by doing some setup, code you should be familiar with from other
3038  * examples:
3039  * @until show(bx)
3040  *
3041  * And move right to creating our first panel, for this panel we are going to
3042  * choose the orientation as TOP and toggle it(tell it to hide itself):
3043  * @until pack_end
3044  *
3045  * For the second panel we choose the RIGHT orientation and explicitly set the
3046  * state as hidden:
3047  * @until pack_end
3048  *
3049  * For our third and last panel we won't set the orientation(which means it will
3050  * use the default: LEFT):
3051  * @until pack_end
3052  *
3053  * All that is left is running the main loop:
3054  * @until ELM_MAIN
3055  *
3056  * This example will look like this;
3057  *
3058  * @image html screenshots/panel_example_01.png
3059  * @image latex screenshots/panel_example_01.epx width=\textwidth
3060  * @note The buttons with arrow allow the user to hide/show the panels.
3061  *
3062  * @example panel_example_01.c
3063  */
3064
3065 /**
3066  * @page gengrid_example Gengrid widget example
3067  *
3068  * This application is a thorough exercise on the gengrid widget's
3069  * API. We place an Elementary gengrid widget on a window, with
3070  * various knobs below its viewport, each one acting on it somehow.
3071  *
3072  * The code's relevant part begins at the grid's creation. After
3073  * instantiating it, we set its items sizes, so that we don't end with
3074  * items one finger size wide, only. We're setting them to fat, 150
3075  * pixel wide ones, for this example. We give it some size hints, not
3076  * to be discussed in this context and, than, we register a callback
3077  * on one of its smart events -- the one coming each time an item gets
3078  * doubly clicked. There, we just print the item handle's value.
3079  * @dontinclude gengrid_example.c
3080  * @skip grid = elm_gengrid_add
3081  * @until evas_object_sho
3082  * @dontinclude gengrid_example.c
3083  * @skip item double click callback
3084  * @until }
3085  *
3086  * Before we actually start to deal with the items API, let's show
3087  * some things items will be using throughout all the code. The first
3088  * of them is a struct to be used as item data, for all of them:
3089  * @dontinclude gengrid_example.c
3090  * @skip typedef struct
3091  * @until Item;
3092  *
3093  * That path will be used to index an image, to be swallowed into one
3094  * of the item's icon spots. The imagens themselves are distributed
3095  * with Elementary:
3096  * @dontinclude gengrid_example.c
3097  * @skip static const char *imgs
3098  * @until ;
3099  *
3100  * We also have an (unique) gengrid item class we'll be using for
3101  * items in the example:
3102  * @dontinclude gengrid_example.c
3103  * @skip static Elm_Gengrid_Item_Class
3104  * @until static Elm_Gengrid_Item_Class
3105  * @dontinclude gengrid_example.c
3106  * @skip item_style =
3107  * @until _grid_del
3108  *
3109  * As you see, our items will follow the default theme on gengrid
3110  * items. For the label fetching code, we return a string composed of
3111  * the item's image path:
3112  * @dontinclude gengrid_example.c
3113  * @skip label fetching callback
3114  * @until }
3115  *
3116  * For item icons, we'll be populating the item default theme's two
3117  * icon spots, @c "elm.swallow.icon" and @c "elm.swallow.end". The
3118  * former will receive one of the images in our list (in the form of
3119  * a @ref bg_02_example_page "background"), while the latter will be
3120  * a check widget. Note that we prevent the check to propagate click
3121  * events, so that the user can toggle its state without messing with
3122  * the respective item's selection in the grid:
3123  * @dontinclude gengrid_example.c
3124  * @skip icon fetching callback
3125  * @until return NULL
3126  * @until }
3127  *
3128  * As the default gengrid item's theme does not have parts
3129  * implementing item states, we'll be just returning false for every
3130  * item state:
3131  * @dontinclude gengrid_example.c
3132  * @skip state fetching callback
3133  * @until }
3134  *
3135  * Finally, the deletion callback on gengrid items takes care of
3136  * freeing the item's label string and its data struct:
3137  * @dontinclude gengrid_example.c
3138  * @skip deletion callback
3139  * @until }
3140  *
3141  * Let's move to item insertion/deletion knobs, them. They are four
3142  * buttons, above the grid's viewport, namely
3143  * - "Append" (to append an item to the grid),
3144  * - "Prepend" (to prepend an item to the grid),
3145  * - "Insert before" (to insert an item before the selection, on the
3146  *   grid),
3147  * - "Insert after" (to insert an item after the selection, on the
3148  *   grid),
3149  * - "Clear" (to delete all items in the grid),
3150  * .
3151  * which are displaced and declared in that order. We're not dealing
3152  * with the buttons' creation code (see @ref button_example_01
3153  * "a button example", for more details on it), but with their @c
3154  * "clicked" registered callbacks.  For all of them, the grid's handle
3155  * is passed as @c data. The ones creating new items use a common
3156  * code, which just gives a new @c Example_Item struct, with @c path
3157  * filled with a random image in our images list:
3158  * @dontinclude gengrid_example.c
3159  * @skip new item with random path
3160  * @until }
3161  *
3162  * Moreover, that ones will set a common function to be issued on the
3163  * selection of the items. There, we print the item handle's value,
3164  * along with the callback function data. The latter will be @c NULL,
3165  * always, because it's what we pass when adding all icons.
3166  *
3167  * The appending button will exercise elm_gengrid_item_append(), simply:
3168  * @dontinclude gengrid_example.c
3169  * @skip append an item
3170  * @until }
3171  *
3172  * The prepending, naturally, is analogous, but exercising
3173  * elm_gengrid_item_prepend(), on its turn. The "Insert before" one
3174  * will expect an item to be selected in the grid, so that it will
3175  * insert a new item just before it:
3176  * @dontinclude gengrid_example.c
3177  * @skip "insert before" callback
3178  * @until }
3179  *
3180  * The "Insert after" is analogous, just using
3181  * elm_gengrid_item_insert_after(), instead. The "Clear" button will,
3182  * as expected, just issue elm_gengrid_clear():
3183  * @dontinclude gengrid_example.c
3184  * @skip delete items
3185  * @until }
3186  *
3187  * To change the grid's cell (items) size, we've placed a spinner,
3188  * which has the following @c "changed" smart callback:
3189  * @dontinclude gengrid_example.c
3190  * @skip change items' size
3191  * @until }
3192  *
3193  * Experiment with it and see how the items are affected. To toggle
3194  * between horizontal and vertical layouting modes on the grid, use
3195  * the "Horizontal mode" check, which will call the respective API
3196  * function on the grid:
3197  * @dontinclude gengrid_example.c
3198  * @skip change layouting mode
3199  * @until }
3200  *
3201  * If you toggle the check right after that one, "Always select",
3202  * you'll notice all subsequent clicks on the @b same grid item will
3203  * still issue the selection callback on it, what is different from
3204  * when it's not checked. This is the
3205  * elm_gengrid_always_select_mode_set() behavior:
3206  * @dontinclude gengrid_example.c
3207  * @skip "always select" callback
3208  * @until }
3209  *
3210  * One more check follows, "Bouncing", which will turn on/off the
3211  * bouncing animations on the grid, when one scrolls past its
3212  * borders. Experiment with scrolling the grid to get the idea, having
3213  * it turned on and off:
3214  * @dontinclude gengrid_example.c
3215  * @skip "bouncing mode" callback
3216  * @until }
3217  *
3218  * The next two checks will affect items selection on the grid. The
3219  * first, "Multi-selection", will make it possible to select more the
3220  * one item on the grid. Because it wouldn't make sense to fetch for
3221  * an unique selected item on this case, we also disable two of the
3222  * buttons, which insert items relatively, if multi-selection is on:
3223  * @dontinclude gengrid_example.c
3224  * @skip multi-selection callback
3225  * @until }
3226  *
3227  * Note that we also @b unselect all items in the grid, when returning
3228  * from multi-selection mode, making use of
3229  * elm_gengrid_item_selected_set().
3230  *
3231  * The second check acting on selection, "No selection", is just what
3232  * its name depicts -- no selection will be allowed anymore, on the
3233  * grid, while it's on. Check it out for yourself, interacting with
3234  * the program:
3235  * @dontinclude gengrid_example.c
3236  * @skip no selection callback
3237  * @until }
3238  *
3239  * We have, finally, one more line of knobs, now sliders, to change
3240  * the grids behavior. The two first will change the horizontal @b
3241  * alignment of the whole actual grid of items within the gengrid's
3242  * viewport:
3243  * @dontinclude gengrid_example.c
3244  * @skip items grid horizontal alignment change
3245  * @until }
3246  *
3247  * Naturally, the vertical counterpart just issues
3248  * elm_gengrid_align_set() changing the second alignment component,
3249  * instead.
3250  *
3251  * The last slider will change the grid's <b>page size</b>, relative
3252  * to its own one. Try to change those values and, one manner of
3253  * observing the paging behavior, is to scroll softly and release the
3254  * mouse button, with different page sizes, at different grid
3255  * positions, while having lots of items in it -- you'll see it
3256  * snapping to page boundaries differenty, for each configuration:
3257  * @dontinclude gengrid_example.c
3258  * @skip page relative size change
3259  * @until }
3260  *
3261  * This is how the example program's window looks like:
3262  * @image html screenshots/gengrid_example.png
3263  * @image latex screenshots/gengrid_example.eps
3264  *
3265  * Note that it starts with three items which we included at will:
3266  * @dontinclude gengrid_example.c
3267  * @skip _clicked(grid,
3268  * @until _clicked(grid,
3269  * @until _clicked(grid,
3270  * @until _clicked(grid,
3271  *
3272  * See the full @ref gengrid_example_c "source code" for
3273  * this example.
3274  *
3275  * @example gengrid_example.c
3276  */
3277
3278 /**
3279  * @page bg_example_01_c bg_example_01.c
3280  * @include bg_example_01.c
3281  * @example bg_example_01.c
3282  */
3283
3284 /**
3285  * @page bg_example_02_c bg_example_02.c
3286  * @include bg_example_02.c
3287  * @example bg_example_02.c
3288  */
3289
3290 /**
3291  * @page bg_example_03_c bg_example_03.c
3292  * @include bg_example_03.c
3293  * @example bg_example_03.c
3294  */
3295
3296 /**
3297  * @page actionslider_example_01 Actionslider example
3298  * @include actionslider_example_01.c
3299  * @example actionslider_example_01.c
3300  */
3301
3302 /**
3303  * @page animator_example_01_c Animator example 01
3304  * @include animator_example_01.c
3305  * @example animator_example_01.c
3306  */
3307
3308 /**
3309  * @page transit_example_01_c Transit example 1
3310  * @include transit_example_01.c
3311  * @example transit_example_01.c
3312  */
3313
3314 /**
3315  * @page transit_example_02_c Transit example 2
3316  * @include transit_example_02.c
3317  * @example transit_example_02.c
3318  */
3319
3320 /**
3321  * @page general_functions_example_c General (top-level) functions example
3322  * @include general_funcs_example.c
3323  * @example general_funcs_example.c
3324  */
3325
3326 /**
3327  * @page clock_example_c Clock example
3328  * @include clock_example.c
3329  * @example clock_example.c
3330  */
3331
3332 /**
3333  * @page flipselector_example_c Flipselector example
3334  * @include flipselector_example.c
3335  * @example flipselector_example.c
3336  */
3337
3338 /**
3339  * @page fileselector_example_c Fileselector example
3340  * @include fileselector_example.c
3341  * @example fileselector_example.c
3342  */
3343
3344 /**
3345  * @page fileselector_button_example_c Fileselector button example
3346  * @include fileselector_button_example.c
3347  * @example fileselector_button_example.c
3348  */
3349
3350 /**
3351  * @page fileselector_entry_example_c Fileselector entry example
3352  * @include fileselector_entry_example.c
3353  * @example fileselector_entry_example.c
3354  */
3355
3356 /**
3357  * @page index_example_01_c Index example
3358  * @include index_example_01.c
3359  * @example index_example_01.c
3360  */
3361
3362 /**
3363  * @page index_example_02_c Index example
3364  * @include index_example_02.c
3365  * @example index_example_02.c
3366  */
3367
3368 /**
3369  * @page layout_example_01_c layout_example_01.c
3370  * @include layout_example_01.c
3371  * @example layout_example_01.c
3372  */
3373
3374 /**
3375  * @page layout_example_02_c layout_example_02.c
3376  * @include layout_example_02.c
3377  * @example layout_example_02.c
3378  */
3379
3380 /**
3381  * @page layout_example_03_c layout_example_03.c
3382  * @include layout_example_03.c
3383  * @example layout_example_03.c
3384  */
3385
3386 /**
3387  * @page layout_example_edc An example of layout theme file
3388  *
3389  * This theme file contains two groups. Each of them is a different theme, and
3390  * can be used by an Elementary Layout widget. A theme can be used more than
3391  * once by many different Elementary Layout widgets too.
3392  *
3393  * @include layout_example.edc
3394  * @example layout_example.edc
3395
3396 /**
3397  * @page gengrid_example_c Gengrid example
3398  * @include gengrid_example.c
3399  * @example gengrid_example.c
3400  */