Commit Graph

24 Commits

Author SHA1 Message Date
airstruck
ab43dabcb9 Add solid and modal attributes.
The `solid` attribute determines whether to propagate events downwards.
When the widget being interacted with is not solid, events propagate down
to the next layout or to underlying handlers (for example love callbacks).
This is set by the theme and works mostly behind the scenes.

The `modal` attribute can be placed on a layout root to prevent input events
from propagating downwards, even those that fall outside of the layout.
2016-01-19 12:20:19 -05:00
airstruck
73e9a10b15 Widget.pressed is now a table of booleans keyed by mouse button name 2015-12-20 10:47:40 -05:00
airstruck
1ee239b203 rework mouse buttons, fixes #18 2015-12-19 23:54:57 -05:00
airstruck
dbcbb3dd4b attributes only cascade when nil (not when false) 2015-12-13 13:18:03 -05:00
airstruck
c8ca310811 minor improvements 2015-12-10 16:05:54 -05:00
airstruck
c43d8bcf22 support vertical slider 2015-12-07 21:56:56 -05:00
airstruck
2d64e6ca69 formalize attributes 2015-11-29 14:58:08 -05:00
airstruck
290f6333b7 getRectangle returns x,y,w,h instead of x1,y1,x2,y2 2015-11-27 06:40:02 -05:00
airstruck
6aaa128463 hotkeys use modifiers 2015-11-11 23:49:54 -05:00
airstruck
74fc748e3b cleanup, docs 2015-11-04 15:08:14 -05:00
airstruck
997f9c8d12 shadow properties 2015-11-02 23:40:52 -05:00
airstruck
6c82e5f81d minor tweaks 2015-10-31 15:32:48 -04:00
airstruck
1e668f8f09 add keyboard focus 2015-10-31 04:21:50 -04:00
airstruck
62ca5bf50a make widgets identical to their data definitions 2015-10-30 05:38:46 -04:00
airstruck
0759d36702 add progress bar 2015-10-28 11:15:47 -04:00
airstruck
18f51c2ac3 misc cleanup 2015-10-28 00:06:47 -04:00
airstruck
f19ef288ca scrap widget inheritance 2015-10-27 19:27:14 -04:00
airstruck
ca67432b66 allow events bound to widget classes 2015-10-27 10:20:13 -04:00
airstruck
995825b9b3 adjust children for parent padding and margin 2015-10-25 16:01:41 -04:00
airstruck
8f604fb79d pixel alignment for lines 2015-10-24 16:05:49 -04:00
airstruck
cc0ca8387b merge window into layout 2015-10-24 15:10:22 -04:00
airstruck
efc161ea2e remove drawing methods from window 2015-10-23 02:03:48 -04:00
airstruck
03f0a48ff8 clean up rendering, allow configurable themes 2015-10-23 00:13:58 -04:00
airstruck
e490e2899f initial commit 2015-10-21 18:35:14 -04:00