forked from enlightenment/efl
example screenshots auto-generated by scripts when we do "make doc" with those images put in the docs for that widget. some examples of usage. SVN revision: 61078devs/felipealmeida/promises
parent
fe511d0609
commit
c41a756c53
8 changed files with 114 additions and 1 deletions
@ -0,0 +1,14 @@ |
||||
#!/bin/sh |
||||
|
||||
DIR=$1 |
||||
shift |
||||
FILE=$1 |
||||
shift |
||||
|
||||
export ELM_THEME=default |
||||
export ELM_SCALE=1.0 |
||||
export ELM_ENGINE=shot:delay=0.5:file=$DIR/$FILE |
||||
|
||||
mkdir -p $DIR || true |
||||
|
||||
exec $@ |
@ -0,0 +1,10 @@ |
||||
#include "widget_preview_tmpl_head.c" |
||||
|
||||
Evas_Object *o = elm_button_add(win); |
||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); |
||||
elm_win_resize_object_add(win, o); |
||||
evas_object_show(o); |
||||
|
||||
elm_object_text_set(o, "Button"); |
||||
|
||||
#include "widget_preview_tmpl_foot.c" |
@ -0,0 +1,15 @@ |
||||
#include "widget_preview_tmpl_head.c" |
||||
|
||||
Evas_Object *o = elm_button_add(win); |
||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); |
||||
elm_win_resize_object_add(win, o); |
||||
evas_object_show(o); |
||||
|
||||
elm_object_text_set(o, "Button"); |
||||
|
||||
Evas_Object *o2 = elm_icon_add(win); |
||||
elm_icon_file_set(o2, "img/elementary.png", NULL); |
||||
elm_button_icon_set(o, o2); |
||||
evas_object_show(o2); |
||||
|
||||
#include "widget_preview_tmpl_foot.c" |
@ -0,0 +1,13 @@ |
||||
#include "widget_preview_tmpl_head.c" |
||||
|
||||
Evas_Object *o = elm_button_add(win); |
||||
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND); |
||||
elm_win_resize_object_add(win, o); |
||||
evas_object_show(o); |
||||
|
||||
Evas_Object *o2 = elm_icon_add(win); |
||||
elm_icon_file_set(o2, "img/elementary.png", NULL); |
||||
elm_button_icon_set(o, o2); |
||||
evas_object_show(o2); |
||||
|
||||
#include "widget_preview_tmpl_foot.c" |
@ -0,0 +1,10 @@ |
||||
|
||||
evas_object_resize(win, w, h); |
||||
evas_object_show(win); |
||||
elm_run(); |
||||
elm_shutdown(); |
||||
return 0; |
||||
} |
||||
ELM_MAIN() |
||||
|
||||
|
@ -0,0 +1,14 @@ |
||||
#include <Elementary.h> |
||||
|
||||
EAPI int |
||||
elm_main(int argc, char **argv) |
||||
{ |
||||
Evas_Object *win; |
||||
Evas_Coord w, h; |
||||
|
||||
w = atoi(argv[1]); |
||||
h = atoi(argv[2]); |
||||
|
||||
win = elm_win_add(NULL, "main", ELM_WIN_BASIC); |
||||
elm_win_alpha_set(win, EINA_TRUE); |
||||
|
Loading…
Reference in new issue