yambar/particles
Daniel Eklöf 1f182b862e particle/progress-bar: allow user to configure an on-click handler
Since we're typically interrested in *where* (on the progress-bar) the
user clicked, we need a way to pass the clicked position to the
handler.

Normally, the on-click handler is expanded when a particle
instantiates its exposable. At this point, we (obviously) don't have
the click position.

This is solved by expanding the handler a second time, when the bar is
clicked.

Thus, the user can use the "{where}" tag in the click handler. "where"
will be expanded to a percentage value (0-100).
2018-12-29 17:36:34 +01:00
..
empty.c particle: add an 'on_click_template' to base constructor. 2018-12-29 14:36:18 +01:00
empty.h particle/empty: placeholder particle, renders nothing 2018-12-27 14:21:33 +01:00
list.c particle/list: remove excessive debug output 2018-12-29 17:14:49 +01:00
list.h particle/list: on_click handler 2018-12-29 16:15:37 +01:00
map.c particle: add an 'on_click_template' to base constructor. 2018-12-29 14:36:18 +01:00
map.h particle/map: left/right margin on a map doesn't make any sense 2018-12-15 19:16:55 +01:00
progress_bar.c particle/progress-bar: allow user to configure an on-click handler 2018-12-29 17:36:34 +01:00
progress_bar.h particle/progress-bar: allow user to configure an on-click handler 2018-12-29 17:36:34 +01:00
ramp.c particle: add an 'on_click_template' to base constructor. 2018-12-29 14:36:18 +01:00
ramp.h particle/ramp: new particle, selects one particle from a list 2018-12-16 16:20:45 +01:00
string.c particle/string: tags_expand_template() now returns NULL if template is NULL 2018-12-29 17:12:11 +01:00
string.h particle/string: constructor now takes an 'on_click_template' 2018-12-29 14:38:10 +01:00