Commit graph

81 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
7354f68b3c
Draft Shell:request_redraw API
... and implement `TextInput` cursor blink 🎉
2023-01-12 02:59:08 +01:00
Héctor Ramón Jiménez
0e9c1ab192
Add Renderer argument to operate 2022-12-22 14:29:24 +01:00
Héctor Ramón Jiménez
4c61f12768
Bump versions 🎉 2022-12-07 04:44:20 +01:00
Cory Forsstrom
9a601c0954 Get widget operations working w/ overlay 2022-11-29 12:50:57 -08:00
tarkah
f1ada7a803 Allow &mut self in overlay 2022-11-29 12:17:29 -08:00
Héctor Ramón Jiménez
bbd55ff3a9
Invalidate overlay layout when base layer captures an Event 2022-11-14 00:50:18 +01:00
mtkennerly
8a5a365be9
#1484, #1527: Fix overlay transition 2022-11-11 20:00:18 +08:00
Héctor Ramón Jiménez
a6298ba12c
Fix outdated links in documentation 2022-11-10 18:14:40 +01:00
13r0ck
92958e49ad Update docs for renamed integration examples
The integration examples were renamed in
77a0b68aa1 , this just updates the
docs to point to the updates links.
2022-09-07 14:50:58 -06:00
Héctor Ramón Jiménez
c23ed7e4a0
Lay out UserInterface after diffing 2022-08-05 23:51:32 +02:00
Héctor Ramón Jiménez
52f84e51e9
Implement Widget::operate for TextInput 2022-07-28 03:53:47 +02:00
Héctor Ramón Jiménez
80688689aa
Draft widget operations 2022-07-28 02:46:51 +02:00
Héctor Ramón Jiménez
ff2519b1d4
Replace stateful widgets with new iced_pure API 2022-07-27 06:49:20 +02:00
Poly
15f794b7a8
Address Clippy lints 2022-07-09 17:07:38 +02:00
Héctor Ramón Jiménez
bb07d017e8
Add Style variant support to application::StyleSheet 2022-07-08 20:07:33 +02:00
Héctor Ramón Jiménez
fa55dff61d
Merge branch 'master' into theming 2022-07-08 19:31:45 +02:00
Cory Forsstrom
cec032f9ed Don't process captured overlay statuses 2022-05-30 13:25:27 -07:00
Héctor Ramón Jiménez
7f3b7075db
Rename theme::Definition to application::StyleSheet 2022-05-26 19:02:15 +02:00
Héctor Ramón Jiménez
822a3cd04f
Let a Theme control the text_color of an application 2022-05-26 01:10:26 +02:00
Héctor Ramón Jiménez
664251f3f5
Draft first-class Theme support
RFC: https://github.com/iced-rs/rfcs/pull/6
2022-05-14 01:56:32 +02:00
Héctor Ramón Jiménez
296e157dcf
Relayout base layer when layout is invalidated from an overlay 2022-05-13 19:07:54 +02:00
Héctor Ramón Jiménez
68e9eb0a9b
Fix broken intra-doc links in documentation 2022-04-30 14:20:52 +02:00
Héctor Ramón Jiménez
ac35fe3edf
Point repository links to 0.4 branch in documentation 2022-04-30 13:54:07 +02:00
Héctor Ramón Jiménez
f85b421ae7
Fix overlay flickering after Application::update 2022-03-01 14:02:46 +07:00
Héctor Ramón Jiménez
1313c94e3b
Remove hash_layout method from Widget trait 2022-02-23 21:31:54 +07:00
Héctor Ramón Jiménez
876aa93788
Fix previous overlay affecting cursor_position during draw in UserInterface 2022-01-22 13:44:30 +07:00
Héctor Ramón Jiménez
7ef0259a2c
Write missing docs for user_interface module 2022-01-12 11:22:57 +07:00
Héctor Ramón Jiménez
810e086728
Introduce Renderer argument to mouse_interaction and on_event 2022-01-11 14:12:28 +07:00
Héctor Ramón Jiménez
6ab4611a6e
Invalidate widget tree from Responsive widget
... by introducing a new `invalidate_widgets` method to `Shell`
2022-01-11 13:47:43 +07:00
LordRatte
ff2a470fd8
Change GitHub namespace to new org for all files 2022-01-03 11:36:13 +07:00
Héctor Ramón Jiménez
bbd9355450
Introduce Shell type in iced_native
Widgets now can invalidate the current layout of the application on demand.
2021-11-29 16:22:01 +07:00
Héctor Ramón Jiménez
92b3b169c6
Fix overflow of graphics primitives in overlays
... by using `overlay_bounds` instead of `viewport` as clip bounds for overlay layer in `UserInterface::draw`
2021-11-21 15:09:53 +07:00
Héctor Ramón Jiménez
631e95ee0b
Move viewport argument to last position in mouse_interaction methods
This keeps the order of the arguments consistent with `draw`.
2021-11-02 15:03:29 +07:00
Héctor Ramón Jiménez
0aafcde0ef
Remove widget module re-exports in iced_native 2021-10-31 16:14:34 +07:00
Héctor Ramón Jiménez
9c7e340b28
Fix overlay layering in UserInterface::draw
... by properly implementing the Painter's algorithm.
2021-10-28 16:43:16 +07:00
Héctor Ramón Jiménez
4a11cbd994
Implement Widget::mouse_interaction for PaneGrid
... and fix rendering of drag interaction in `PaneGrid` by
introducing an explicit `with_translation` method to `Renderer`
and simplifying the `with_layer` and `Clip` primitive.
2021-10-25 16:35:02 +07:00
Héctor Ramón Jiménez
be97a5d502
Introduce mouse_interaction method to Widget trait 2021-10-18 16:43:18 +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
dfceee99aa
Implement Widget::draw for Scrollable
Rendering the scroller is still WIP
2021-10-14 17:15:29 +07:00
Héctor Ramón Jiménez
3a0c503db9
Implement Widget::draw for Text 2021-10-14 17:00:38 +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
Yusuf Bera Ertan
83d19689c8
docs: update all 0.2 github links to 0.3 2021-06-14 21:01:37 +03:00
Héctor Ramón Jiménez
21971e0037 Make Clipboard argument in Widget trait mutable 2021-03-10 01:59:02 +01:00
Héctor Ramón Jiménez
745aa49025 Update example links to point to 0.2 branch 2020-11-26 16:37:33 +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
bf2d2561b8 Batch event processing in UserInterface::update 2020-11-12 02:51:26 +01:00
Héctor Ramón Jiménez
33d80b5a0b Return event::Status in UserInterface::update 2020-11-12 02:00:08 +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
88993fb092 Relayout UserInterface on resize in iced_winit 2020-11-05 04:09:40 +01:00