diff --git a/legacy/edje/doc/examples/lua_set_state.edc b/legacy/edje/doc/examples/lua_set_state.edc new file mode 100644 index 0000000000..dc24ae95c6 --- /dev/null +++ b/legacy/edje/doc/examples/lua_set_state.edc @@ -0,0 +1,46 @@ +collections { + group { name: "main"; + parts { + part { name: "bg"; + type: RECT; + description { state: "default" 0.0; + color: 255 255 255 255; + } + } + part { name: "label"; + type: TEXT; + description { state: "default" 0.0; + color: 0 0 0 255; + text { + text: "Click me."; + font: "Sans"; + size: 12; + align: 0.0 0.7; + } + } + } + part { name: "red_rect"; + type: RECT; + description { state: "default" 0.0; + color: 255 0 0 255; + max: 30 30; + align: 0.1 0.2; + } + description { state: "default" 1.0; + inherit: "default" 0.0; + color: 0 0 255 255; + align: 0.9 0.2; + } + } + } + programs { + program { + signal: "mouse,down,1"; + source: "label"; + lua_script { + ed.red_rect.state = { "default", 1.0} + } + } + } + } +} diff --git a/legacy/edje/src/lib/edje_lua.c b/legacy/edje/src/lib/edje_lua.c index cfaeef7e80..5cb8ba44a7 100644 --- a/legacy/edje/src/lib/edje_lua.c +++ b/legacy/edje/src/lib/edje_lua.c @@ -60,10 +60,9 @@ Classes hierarchy: - @ref Object - @ref Group - @ref Part - - @ref Rectangle - @ref Image - @ref Line - - @ref Poligon + - @ref Polygon - @ref Table - @ref Description