Commit graph

30 commits

Author SHA1 Message Date
Emil Ernerfeldt
fa82e8d806 Rename Region to Ui (shorter, sweeter) 2020-05-08 22:42:31 +02:00
Emil Ernerfeldt
ec93f20604 fix typo 2020-05-07 17:37:17 +02:00
Emil Ernerfeldt
6aadf4128e Refactor: pass Rect:s by value (cleaner) 2020-05-05 19:12:00 +02:00
Emil Ernerfeldt
50d759d1b4 Make Region::desired_rect private 2020-05-05 02:55:31 +02:00
Emil Ernerfeldt
be93d5b0e0 Made Region::clip_rect private 2020-05-05 02:42:01 +02:00
Emil Ernerfeldt
2d7131d713 Made more Region members private 2020-05-04 21:59:28 +02:00
Emil Ernerfeldt
f97dcdc9b5 Reorder some functions in Region 2020-05-01 09:35:44 +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
14db237b1d Basic text input support 2020-04-29 21:25:49 +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
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
3a430c8fc7 Add new Resize container 2020-04-25 14:37:39 +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
a66f4efaac Minor code cleanup and clippy fixes 2020-04-24 18:47:14 +02:00
Emil Ernerfeldt
39e17a7562 Add painter region as example 2020-04-24 18:32:27 +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
104f2191a0 Improve Widget code, and make sure it paints within the given bounds 2020-04-22 19:39:51 +02:00
Emil Ernerfeldt
d70ae351c1 Rename foldable to CollapsingHeader and move to own file 2020-04-22 19:03:33 +02:00
Emil Ernerfeldt
dbf8520e63 Basic scroll area support
Just vertical scrolling at the moment
2020-04-21 20:52:17 +02:00
Emil Ernerfeldt
4efbb94e1b Various small improvements 2020-04-21 20:48:31 +02:00
Emil Ernerfeldt
e9bdadb1da Some visual tweaks 2020-04-21 16:50:56 +02:00
Emil Ernerfeldt
335b22d38d Create region.add_label shortcut 2020-04-20 23:45:05 +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
1afda00fc4 Make it easier to create an Outline 2020-04-19 11:11:41 +02:00
Emil Ernerfeldt
2170081221 Use new type Pos2 for positions (points) instead of Vec2 2020-04-19 01:05:49 +02:00
Emil Ernerfeldt
d999962602 Refactor example code 2020-04-12 12:07:51 +02:00
Renamed from example_wasm/src/app.rs (Browse further)