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"); + }