From bb4c6f8ae82095a2ee958d90b906aef7a3c77b64 Mon Sep 17 00:00:00 2001 From: Daniel Juyung Seo Date: Sun, 17 Aug 2014 01:56:43 +0900 Subject: [PATCH] dev: added elm theme viewer development guideline. --- DEV.txt | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 DEV.txt diff --git a/DEV.txt b/DEV.txt new file mode 100644 index 0000000..d1d2ee0 --- /dev/null +++ b/DEV.txt @@ -0,0 +1,20 @@ +=== to add a new widget === + + +=== to add a new widget option === +- add a new variable +- to initialize the variable, modify _wod_init() +- add a new entry in widget_option_content_update() + ex) WIDGET_OPTION(notify, ETV_ID_NOTIFY) +- add specific options + - check + - for caller + WIDGET_OPTION_CHECK_ADD("Allow background events", wod->notify_event, _notify_event_changed_cb); + - for callee + WIDGET_OPTION_CHECK_CHANGED_CB(notify_event, wod->notify_event); +- use specific options + if (wod) + { + if (wod->btn_text) + elm_object_text_set(o, "This is a Button"); + }