Commit graph

50 commits

Author SHA1 Message Date
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
d1b00ff1b0 refactor input code 2020-05-23 01:16:23 +02:00
Emil Ernerfeldt
620442a64b refactor: group mouse input into own struct 2020-05-21 10:20:16 +02:00
Emil Ernerfeldt
58a8f743be Optimize and clean up text output 2020-05-20 21:22:42 +02:00
Emil Ernerfeldt
8d89944b58 containers will (mostly) return value of add_contents function 2020-05-19 23:57:48 +02:00
Emil Ernerfeldt
0f0e385ea3 [refactor] collect stuff into new mod paint 2020-05-19 22:28:57 +02:00
Emil Ernerfeldt
aeaa611005 terminology: remove uses of the word "mesh". Prefer "triangles". 2020-05-19 20:54:02 +02:00
Emil Ernerfeldt
d123d7e9c6 Improve window throwing 2020-05-17 17:44:18 +02:00
Emil Ernerfeldt
3737067994 mutexes: crash rather than deadlock 2020-05-17 16:42:46 +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
89aa285255 Simplify text layout further with even less allocations 2020-05-16 18:17:35 +02:00
Emil Ernerfeldt
cdfd42eb3e refactor text layout with a new struct Galley 2020-05-16 11:27:02 +02:00
Emil Ernerfeldt
6f7bc3cfac Nicer handling of fragment links to #clock demo 2020-05-12 17:09:54 +02:00
Emil Ernerfeldt
d508372334 Move new windows to the top 2020-05-12 16:49:43 +02:00
Emil Ernerfeldt
71154edf9b Add a fractal clock example to showcase painting performance 2020-05-11 20:21:24 +02:00
Emil Ernerfeldt
f1c57cb950 Improve example app 2020-05-10 19:04:10 +02:00
Emil Ernerfeldt
216036e49c Refactor: Clump area logic together inside of Memory 2020-05-10 19:02:17 +02:00
Emil Ernerfeldt
be6ada6923 Refactor layers 2020-05-10 14:27:02 +02:00
Emil Ernerfeldt
fd99213222 Rename Floating to Area 2020-05-10 13:14:52 +02:00
Emil Ernerfeldt
dba494e306 bug fix: only catch clicks on currently open windows 2020-05-10 10:33:35 +02:00
Emil Ernerfeldt
fa82e8d806 Rename Region to Ui (shorter, sweeter) 2020-05-08 22:42:31 +02:00
Emil Ernerfeldt
9f6e9c94d6 Merge struct Emigui into Context 2020-05-08 22:25:28 +02:00
Emil Ernerfeldt
87e3aacf35 enforce and fix a bunch of clippy issues 2020-05-07 10:47:03 +02:00
Emil Ernerfeldt
0fdc1048c8 Bug fix: window/floating sizes 2020-05-05 19:33:02 +02:00
Emil Ernerfeldt
6aadf4128e Refactor: pass Rect:s by value (cleaner) 2020-05-05 19:12:00 +02:00
Emil Ernerfeldt
d02194d33a Made the fields in Context private 2020-05-04 21:35:16 +02:00
Emil Ernerfeldt
45564f952b Kinetic windows 2020-05-03 13:28:47 +02:00
Emil Ernerfeldt
bfbb669d02 Store/restore emigui memory state (window positions, sizes etc) 2020-05-02 11:37:12 +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
1e685d1cb0 Add support for text input in emilib and glium.
Add input inspectors
2020-04-28 23:05:22 +02:00
Emil Ernerfeldt
680d1888da Add a Debug layer 2020-04-27 16:53:14 +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
Emil Ernerfeldt
cce048509f Refactor: make Rect members min/max public 2020-04-25 15:45:38 +02:00
Emil Ernerfeldt
e26d08851f Add Floating and Frame containers as building blocks for windows 2020-04-25 15:26:24 +02:00
Emil Ernerfeldt
3a430c8fc7 Add new Resize container 2020-04-25 14:37:39 +02:00
Emil Ernerfeldt
02f3b6dddf std::f32::INFINITY -> f32::INFINITY 2020-04-25 10:52:20 +02:00
Emil Ernerfeldt
b39555bb23 Add support for hyperlinks 2020-04-23 19:15:17 +02:00
Emil Ernerfeldt
a8d9c3fc42 Listen to scroll wheel (glium only) 2020-04-22 20:01:49 +02:00
Emil Ernerfeldt
8b4e506493 Fix bug: accidental interaction on mouse-up 2020-04-21 20:43:47 +02:00
Emil Ernerfeldt
2f02446f6f WIP: clip_rect 2020-04-20 23:48:55 +02:00
Emil Ernerfeldt
98178e9d69 Show resize mouse cursor when resizing windows 2020-04-20 10:01:13 +02:00
Emil Ernerfeldt
6eae91e028 Distinguish ids that need to be unique and warn about name clashes 2020-04-19 11:13:24 +02:00
Emil Ernerfeldt
407df94945 Switch to parking_lot::Mutex 2020-04-18 09:32:39 +02:00
Emil Ernerfeldt
481af55ce5 Handle window paint order (click to bring to front etc) 2020-04-17 23:22:28 +02:00
Emil Ernerfeldt
f709423809 Rename Data to Context and move to own file 2020-04-17 15:33:52 +02:00