Changeset View
Changeset View
Standalone View
Standalone View
src/lib/elementary/efl_ui_clickable_util.eo
- This file was added.
1 | class @beta Efl.Ui.Clickable_Util { | ||||
---|---|---|---|---|---|
2 | methods { | ||||
3 | bind_to_theme @class { | ||||
4 | [[This will listen to the standard events of a theme, and emit the events on clickable | ||||
zmike: I think this should use `bind` instead of `link`.
Also this should state explicitly which… | |||||
5 | | ||||
6 | This means, widgets themselfs do not neccessarily need to listen to the theme signals. This function does this, and calls the correct clickable functions. | ||||
7 | ]] | ||||
8 | params { | ||||
9 | object : Efl.Canvas.Layout; [[The object to listen on]] | ||||
10 | clickable : Efl.Ui.Clickable; [[The object to call the clickable events on]] | ||||
11 | } | ||||
12 | } | ||||
13 | bind_to_object @class { | ||||
14 | [[This will listen to the standard events on a object, and call the correct methods on clickable | ||||
Not Done ReplySame as above. zmike: Same as above. | |||||
Not Done ReplyShouldn't this be bind_to_object? How does this even build? zmike: Shouldn't this be `bind_to_object`? How does this even build? | |||||
15 | | ||||
16 | This means, widgets themselfs do not neccessarily need to listen to the events on the object. This function does this, and calls the correct clickable functions. | ||||
17 | ]] | ||||
18 | params { | ||||
19 | object : Efl.Input.Interface; [[The object to listen on]] | ||||
20 | clickable : Efl.Ui.Clickable; [[The object to call the clickable events on]] | ||||
21 | } | ||||
22 | } | ||||
23 | } | ||||
24 | } |
I think this should use bind instead of link.
Also this should state explicitly which signals are being handled.