Commit graph

29 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
d61cb58d92
Wire up container styling to iced_native 2021-10-18 15:36:32 +07:00
Héctor Ramón Jiménez
edea093350
Move Defaults from iced_graphics to iced_native 2021-10-18 15:19:04 +07:00
Héctor Ramón Jiménez
54a9a232f8
Draw scrollbar in Widget::draw for Scrollable 2021-10-18 14:48:33 +07:00
Héctor Ramón Jiménez
03b3493138
Remove trait-specific draw logic in iced_native 2021-10-14 16:07:22 +07:00
Héctor Ramón
8a3b71df8b Replace ignored doc-tests with additional documentation for Padding 2021-06-01 19:45:47 +07:00
Héctor Ramón
b94cd7a2a8 Use Padding::horizontal and Padding::vertical helpers 2021-06-01 19:21:43 +07:00
Héctor Ramón
92361ef07d Fix overlay::Menu implementation 2021-06-01 19:13:34 +07:00
Ben LeFevre
fe0a27c56d Add support for asymmetrical padding 2021-06-01 19:05:39 +07:00
Héctor Ramón Jiménez
21971e0037 Make Clipboard argument in Widget trait mutable 2021-03-10 01:59:02 +01:00
anunge
9e453843b2
Touch support for PaneGrid and PickList (#650)
* touch events properly parsed and converted to logical size, button working

* scrolling with a nice touch

* fixed application state level touch cursor. panel_grid is touchable now.

* format glicthes fixes

* format glitches

* tight format

* fixed pane grid

* fixing with upstream

* Remove unused `touch` module from `iced_core`

* Remove unused `crate::text` import in `iced_native`

* Remove redundant match branch in `iced_winit`

* Keep removed line break in `UserInterface::update`

* Compute `text_size` only when bounds contains cursor in `overlay::menu`

Co-authored-by: Héctor Ramón Jiménez <hector0193@gmail.com>
2021-02-12 20:52:20 +01:00
Héctor Ramón Jiménez
01322f69a4 Use recently stabilized intra-doc links
See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
2020-11-26 02:05:43 +01:00
Héctor Ramón Jiménez
6e9bd0d9d1 Make Overlay::on_event return event::Status 2020-11-12 01:29:11 +01:00
Héctor Ramón Jiménez
3f968b8c87 Make Widget::on_event return an event::Status 2020-11-12 00:09:52 +01:00
Héctor Ramón Jiménez
7f02765214 Draw only visible options in overlay::Menu 2020-10-28 06:21:07 +01:00
Héctor Ramón Jiménez
d328b07b39 Introduce viewport to Widget::draw
This should eventually allow us to only generate primitives that are
visible.
2020-10-28 06:21:07 +01:00
Héctor Ramón Jiménez
aaf5986123 Improve Menu API to facilitate external control 2020-07-23 03:58:59 +02:00
Héctor Ramón Jiménez
bf5eaca2f2 Fix hash_layout implementation of Menu overlay 2020-07-23 03:28:22 +02:00
Héctor Ramón Jiménez
d4ef470b4f Add new method to menu::State 2020-07-23 03:27:21 +02:00
Héctor Ramón Jiménez
31c30fedd5 Remove unnecessary Rc in both Element::map 2020-07-16 04:40:36 +02:00
Héctor Ramón Jiménez
2118a726f8 Write documentation for the new overlay API 2020-07-10 02:39:12 +02:00
Héctor Ramón Jiménez
dc0e423142 Remove unnecessary lifetime in Widget trait 2020-07-10 02:01:30 +02:00
Héctor Ramón Jiménez
1070b61f34 Rename overlay::Content trait to Overlay
The `Overlay` struct is now `overlay::Element`.
2020-07-10 01:35:46 +02:00
Héctor Ramón Jiménez
69ac47f463 Implement font method for ComboBox 2020-07-08 11:29:21 +02:00
Héctor Ramón Jiménez
1c12bad866 Split Menu::new into multiple builder methods 2020-07-08 11:29:21 +02:00
Héctor Ramón Jiménez
7a105ade27 Use Borrow to avoid clone in ComboBox::overlay 2020-07-08 11:29:20 +02:00
Héctor Ramón Jiménez
9fa0b4da5d Complete hash_layout for menu::List 2020-07-08 11:29:20 +02:00
Héctor Ramón Jiménez
625979b665 Draft Widget::overlay idempotency 2020-07-08 11:29:19 +02:00
Héctor Ramón Jiménez
61f22b1db2 Add styling support for ComboBox and Menu 2020-07-08 11:19:56 +02:00
Héctor Ramón Jiménez
0ff5a02550 Rename Layer to overlay::Content 2020-07-08 11:12:47 +02:00