summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/elm_getting_started.h84
1 files changed, 42 insertions, 42 deletions
diff --git a/src/lib/elm_getting_started.h b/src/lib/elm_getting_started.h
index bde223615..37c0ad8a8 100644
--- a/src/lib/elm_getting_started.h
+++ b/src/lib/elm_getting_started.h
@@ -8,10 +8,10 @@
8 * EAPI_MAIN int 8 * EAPI_MAIN int
9 * elm_main(int argc, char **argv) 9 * elm_main(int argc, char **argv)
10 * { 10 * {
11 * // create window(s) here and do any application init 11 * // create window(s) here and do any application init
12 * elm_run(); // run main loop 12 * elm_run(); // run main loop
13 * elm_shutdown(); // after mainloop finishes running, shutdown 13 * elm_shutdown(); // after mainloop finishes running, shutdown
14 * return 0; // exit 0 for exit code 14 * return 0; // exit 0 for exit code
15 * } 15 * }
16 * ELM_MAIN() 16 * ELM_MAIN()
17 * @endcode 17 * @endcode
@@ -140,55 +140,55 @@
140 * static void 140 * static void
141 * on_done(void *data, Evas_Object *obj, void *event_info) 141 * on_done(void *data, Evas_Object *obj, void *event_info)
142 * { 142 * {
143 * // quit the mainloop (elm_run function will return) 143 * // quit the mainloop (elm_run function will return)
144 * elm_exit(); 144 * elm_exit();
145 * } 145 * }
146 * 146 *
147 * EAPI_MAIN int 147 * EAPI_MAIN int
148 * elm_main(int argc, char **argv) 148 * elm_main(int argc, char **argv)
149 * { 149 * {
150 * Evas_Object *win, *box, *lab, *btn; 150 * Evas_Object *win, *box, *lab, *btn;
151 * 151 *
152 * // new window - do the usual and give it a name (hello) and title (Hello) 152 * // new window - do the usual and give it a name (hello) and title (Hello)
153 * win = elm_win_util_standard_add("hello", "Hello"); 153 * win = elm_win_util_standard_add("hello", "Hello");
154 * // when the user clicks "close" on a window there is a request to delete 154 * // when the user clicks "close" on a window there is a request to delete
155 * evas_object_smart_callback_add(win, "delete,request", on_done, NULL); 155 * evas_object_smart_callback_add(win, "delete,request", on_done, NULL);
156 * 156 *
157 * // add a box object - default is vertical. a box holds children in a row, 157 * // add a box object - default is vertical. a box holds children in a row,
158 * // either horizontally or vertically. nothing more. 158 * // either horizontally or vertically. nothing more.
159 * box = elm_box_add(win); 159 * box = elm_box_add(win);
160 * // make the box hotizontal 160 * // make the box hotizontal
161 * elm_box_horizontal_set(box, EINA_TRUE); 161 * elm_box_horizontal_set(box, EINA_TRUE);
162 * // add object as a resize object for the window (controls window minimum 162 * // add object as a resize object for the window (controls window minimum
163 * // size as well as gets resized if window is resized) 163 * // size as well as gets resized if window is resized)
164 * elm_win_resize_object_add(win, box); 164 * elm_win_resize_object_add(win, box);
165 * evas_object_show(box); 165 * evas_object_show(box);
166 * 166 *
167 * // add a label widget, set the text and put it in the pad frame 167 * // add a label widget, set the text and put it in the pad frame
168 * lab = elm_label_add(win); 168 * lab = elm_label_add(win);
169 * // set default text of the label 169 * // set default text of the label
170 * elm_object_text_set(lab, "Hello out there world!"); 170 * elm_object_text_set(lab, "Hello out there world!");
171 * // pack the label at the end of the box 171 * // pack the label at the end of the box
172 * elm_box_pack_end(box, lab); 172 * elm_box_pack_end(box, lab);
173 * evas_object_show(lab); 173 * evas_object_show(lab);
174 * 174 *
175 * // add an ok button 175 * // add an ok button
176 * btn = elm_button_add(win); 176 * btn = elm_button_add(win);
177 * // set default text of button to "OK" 177 * // set default text of button to "OK"
178 * elm_object_text_set(btn, "OK"); 178 * elm_object_text_set(btn, "OK");
179 * // pack the button at the end of the box 179 * // pack the button at the end of the box
180 * elm_box_pack_end(box, btn); 180 * elm_box_pack_end(box, btn);
181 * evas_object_show(btn); 181 * evas_object_show(btn);
182 * // call on_done when button is clicked 182 * // call on_done when button is clicked
183 * evas_object_smart_callback_add(btn, "clicked", on_done, NULL); 183 * evas_object_smart_callback_add(btn, "clicked", on_done, NULL);
184 * 184 *
185 * // now we are done, show the window 185 * // now we are done, show the window
186 * evas_object_show(win); 186 * evas_object_show(win);
187 * 187 *
188 * // run the mainloop and process events and callbacks 188 * // run the mainloop and process events and callbacks
189 * elm_run(); 189 * elm_run();
190 * elm_shutdown(); 190 * elm_shutdown();
191 * return 0; 191 * return 0;
192 * } 192 * }
193 * ELM_MAIN() 193 * ELM_MAIN()
194 * @endcode 194 * @endcode