Commit graph

33 commits

Author SHA1 Message Date
Emil Ernerfeldt
05583b892b [refactor] prepare for Id that is !Copy 2020-05-24 18:48:19 +02:00
Emil Ernerfeldt
7d0a16d0e8 [refactor] minor code cleanup 2020-05-23 22:10:08 +02:00
Emil Ernerfeldt
19cbe6bd6e [window] double-click title bar to collapse winodw 2020-05-23 21:52:03 +02:00
Emil Ernerfeldt
6ab7cffd7f [window] nice looking title bar separation line 2020-05-23 20:24:55 +02:00
Emil Ernerfeldt
d214574c97 [refactor] rename fill_color to just fill 2020-05-23 14:17:45 +02:00
Emil Ernerfeldt
c7a59b57d2 [refactor] remove PaintCmd::LinePath 2020-05-23 14:15:00 +02:00
Emil Ernerfeldt
ef7f3c4637 [input] fix: hover highlight either scroll or window resize; not both 2020-05-23 14:01:01 +02:00
Emil Ernerfeldt
e43ff934a0 [input] distinguish between clicks and drag
You can now drag a button in a scroll area to scroll
2020-05-23 13:38:01 +02:00
Emil Ernerfeldt
5c966bdc76 [input] widgets must say if they are interested in click or drags 2020-05-23 12:38:52 +02:00
Emil Ernerfeldt
4bea65595c If mouse moves too much, don't register it as a click 2020-05-23 12:00:03 +02:00
Emil Ernerfeldt
b30c49f409 [input] keep track of mouse press origin 2020-05-23 11:39:25 +02:00
Emil Ernerfeldt
ee0ad02717 Highlight window frame when you resize it 2020-05-23 11:28:21 +02:00
Emil Ernerfeldt
a0b12a36e7 Refactor window resize code 2020-05-23 01:22:26 +02:00
Emil Ernerfeldt
620442a64b refactor: group mouse input into own struct 2020-05-21 10:20:16 +02:00
Emil Ernerfeldt
538db9005e fix minor bug when moving a window 2020-05-21 09:26:25 +02:00
Emil Ernerfeldt
c0f9c5f7e1 small fixes 2020-05-20 21:31:34 +02:00
Emil Ernerfeldt
3022231e4f Reduce .wasm size by around 20% 2020-05-20 18:58:21 +02:00
Emil Ernerfeldt
8d89944b58 containers will (mostly) return value of add_contents function 2020-05-19 23:57:48 +02:00
Emil Ernerfeldt
d123d7e9c6 Improve window throwing 2020-05-17 17:44:18 +02:00
Emil Ernerfeldt
84099b24c9 Fix animation of collapsing windows 2020-05-17 17:00:01 +02:00
Emil Ernerfeldt
88bfcd585e Resize windows by dragging any side or corner 2020-05-17 16:42:20 +02:00
Emil Ernerfeldt
f9bb9f71c4 Add button to collapse windows 2020-05-17 12:26:17 +02:00
Emil Ernerfeldt
037b22be7f Simplify and improve the default visual style 2020-05-17 10:21:45 +02:00
Emil Ernerfeldt
71154edf9b Add a fractal clock example to showcase painting performance 2020-05-11 20:21:24 +02:00
Emil Ernerfeldt
a8d943db54 Optional close button on windows 2020-05-10 19:02:34 +02:00
Emil Ernerfeldt
9dab3628a1 Better auto-sizing of windows 2020-05-10 19:00:48 +02:00
Emil Ernerfeldt
fd99213222 Rename Floating to Area 2020-05-10 13:14:52 +02:00
Emil Ernerfeldt
f7291e4a0d Frame: more customizeable 2020-05-10 13:06:16 +02:00
Emil Ernerfeldt
fa82e8d806 Rename Region to Ui (shorter, sweeter) 2020-05-08 22:42:31 +02:00
Emil Ernerfeldt
702e135f07 Keep window title and collapsing headers on one line 2020-05-08 17:16:32 +02:00
Emil Ernerfeldt
b73fbb33d8 Improve size negotiation code.
Better enfocred minimum sizes.
You can now have windows that expand to fit their content.
2020-05-01 02:08:01 +02:00
Emil Ernerfeldt
fbedc2e9ab Add scroll bars to windows.
Auto-hide scroll bars when not needed

Bug fixes:
 * collapsing headers animation
 * clip rect interactions
 * clip rects for scroll areas
2020-04-26 22:30:24 +02:00
Emil Ernerfeldt
154424384f Implement Window as collection of Floating + Frame + Resize 2020-04-25 22:49:57 +02:00