Commit graph

198 commits

Author SHA1 Message Date
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
7cd8ac2bbf Rename Widget::add_to to Widget::ui 2020-04-29 22:01:39 +02:00
Emil Ernerfeldt
bf59455097 Add a bunch of TODOs 2020-04-29 21:58:41 +02:00
Emil Ernerfeldt
4c79064760 Move code from glium example into glium library 2020-04-29 21:58:14 +02:00
Emil Ernerfeldt
14db237b1d Basic text input support 2020-04-29 21:25:49 +02:00
Emil Ernerfeldt
89823ab617 Print frame times for glium and wasm excluding painting 2020-04-29 07:20:27 +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
41eea6cd86 Update web wasm example 2020-04-28 19:55:59 +02:00
Emil Ernerfeldt
c8c4a18786 Remove legacy clone when uploading webgl texture 2020-04-27 16:56:16 +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
2897b1cafc Fix paint canvas example (move painting with window) 2020-04-26 22:25:23 +02:00
Emil Ernerfeldt
6dd41982ba Expand Region when child overflows desired_rect 2020-04-25 23:07:03 +02:00
Emil Ernerfeldt
154424384f Implement Window as collection of Floating + Frame + Resize 2020-04-25 22:49:57 +02:00
Emil Ernerfeldt
649dcec09c Refactor: replace bounding_size: Vec2 with child_bounds: Rect 2020-04-25 15:46:50 +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
9ba5bea143 Use RangeInclusive for clamp and lerp 2020-04-25 11:14:32 +02:00
Emil Ernerfeldt
8f879de9f5 minor glium app change 2020-04-25 11:12:00 +02:00
Emil Ernerfeldt
4cc6ca7236 Use ..= range arguments to remap functions 2020-04-25 11:11:44 +02:00
Emil Ernerfeldt
663fbda90c Use min..=max syntax for slider ranges 2020-04-25 11:01:57 +02:00
Emil Ernerfeldt
02f3b6dddf std::f32::INFINITY -> f32::INFINITY 2020-04-25 10:52:20 +02:00
Emil Ernerfeldt
299cc76fcf silence clippy warning 2020-04-25 10:50:51 +02:00
Emil Ernerfeldt
b407a65e87 Update rusttype 2020-04-25 10:45:53 +02:00
Emil Ernerfeldt
bfde98ccb8 cargo update 2020-04-24 19:02:41 +02:00
Emil Ernerfeldt
a66f4efaac Minor code cleanup and clippy fixes 2020-04-24 18:47:14 +02:00
Emil Ernerfeldt
ddc34d654b Nicer window resize icon 2020-04-24 18:32:55 +02:00
Emil Ernerfeldt
39e17a7562 Add painter region as example 2020-04-24 18:32:27 +02:00
Emil Ernerfeldt
7459aa60a4 Make emigui fill entire web page 2020-04-23 22:08:42 +02:00
Emil Ernerfeldt
1affa10dee Keep windows within the screen 2020-04-23 22:07:27 +02:00
Emil Ernerfeldt
44d93d3701 Fix iOS rendering (hopefully) by avoiding infinities 2020-04-23 22:07:08 +02:00
Emil Ernerfeldt
0b8351b9af Fix touch screen interactions 2020-04-23 21:27:05 +02:00
Emil Ernerfeldt
b39555bb23 Add support for hyperlinks 2020-04-23 19:15:17 +02:00
Emil Ernerfeldt
25b06a6ff0 Update wasm/web example 2020-04-23 09:50:03 +02:00
Emil Ernerfeldt
723c3ca908 Shrink window heights to fit content 2020-04-23 09:34:33 +02:00
Emil Ernerfeldt
b4ea51f0f9 Sliders: use title as id if available with scroll position as fallback
This fixes the sliders in the style window
2020-04-23 09:27:08 +02:00
Emil Ernerfeldt
fd8180cea4 Fix left alignment of widgets and tweak style slightly 2020-04-23 00:23:29 +02:00
Emil Ernerfeldt
a4db437413 Make scroll bar prettier, and handle clicks outside of handle 2020-04-22 23:41:05 +02:00
Emil Ernerfeldt
61033a5fc1 Remove dead code 2020-04-22 21:11:13 +02:00
Emil Ernerfeldt
7846aa4e98 remove deprecated TODO.md 2020-04-22 20:01:59 +02:00
Emil Ernerfeldt
a8d9c3fc42 Listen to scroll wheel (glium only) 2020-04-22 20:01:49 +02:00
Emil Ernerfeldt
9b404159c5 Expand clip_rects slightly to allow widgets just on the border 2020-04-22 19:41:42 +02:00
Emil Ernerfeldt
104f2191a0 Improve Widget code, and make sure it paints within the given bounds 2020-04-22 19:39:51 +02:00
Emil Ernerfeldt
700c93b8e3 Add Rect left/right/top/bottom accessors 2020-04-22 19:38:38 +02:00
Emil Ernerfeldt
2a4828670e Unify child region creation 2020-04-22 19:03:38 +02:00
Emil Ernerfeldt
c604574e52 Unify state management 2020-04-22 19:03:38 +02:00
Emil Ernerfeldt
d941c5830d Unify style for buttons and collapsing headers 2020-04-22 19:03:38 +02:00
Emil Ernerfeldt
d70ae351c1 Rename foldable to CollapsingHeader and move to own file 2020-04-22 19:03:33 +02:00
Emil Ernerfeldt
0b61d952e6 Drag scroll area background to scroll 2020-04-22 17:38:36 +02:00