Commit graph

1008 commits

Author SHA1 Message Date
Bingus
63fb608d8b
Merge remote-tracking branch 'origin/master' into feat/multi-window-support
# Conflicts:
#	native/src/command/action.rs
#	native/src/window/action.rs
#	winit/src/window.rs
2023-02-15 14:55:02 -08:00
Bingus
64e0e817c2
Widget operations for multi-window. 2023-02-15 14:31:16 -08:00
Bingus
367fea5dc8
Redraw request events for multiwindow. 2023-02-15 11:28:36 -08:00
Cory Forsstrom
a9992d131b
Pad after setting width
Otherwise `width` will set limits back to a fixed width if
`Length::Units` is used, overwriting padding.
2023-02-14 11:40:29 -08:00
Héctor Ramón
8c5996c12b
Merge pull request #1675 from casperstorm/pick_list/extend-handle
Extended `pick_list::Handle` to be more flexible
2023-02-14 07:40:18 +01:00
Héctor Ramón Jiménez
7f1d58aa45
Inline Handle::content for simplicity and efficiency
We can avoid downcasting `state` :^)
2023-02-14 07:09:24 +01:00
Héctor Ramón Jiménez
fee1ab69e2
Provide State reference instead of closure to pick_list::draw 2023-02-14 07:05:35 +01:00
Héctor Ramón Jiménez
bbff06b462
Use char instead of String for pick_list::Icon 2023-02-14 07:03:25 +01:00
Héctor Ramón Jiménez
0272cac89e
Move Handle and Icon definitions in pick_list 2023-02-14 07:03:24 +01:00
Héctor Ramón Jiménez
5569e12149
Rename HandleContent to Icon and simplify generics 2023-02-14 07:03:24 +01:00
Casper Storm
efaa80fb44
Extend pick_list::Handle 2023-02-14 07:03:24 +01:00
Nick Senger
41822d0dc5 fix: panic when overlay event processing removes overlay 2023-02-11 09:12:26 -08:00
Héctor Ramón Jiménez
98a717383a
Write missing window::Action helpers in window 2023-01-31 04:53:15 +01:00
Héctor Ramón Jiménez
ecc5bfaeff
Improve consistency of window::Action 2023-01-31 04:53:00 +01:00
Héctor Ramón Jiménez
a50cc32d09
Fix layout translation in overlay::Group
This bug produced improper positioning of overlays of elements inside a
`Scrollable`.
2023-01-30 05:11:59 +01:00
Cory Forsstrom
7356f2b68d
Refactor image draw to standalone function 2023-01-28 18:41:33 -08:00
Héctor Ramón
dc6f9f432a
Merge pull request #1678 from frey/fix/mapped_operations_missing
Mapped operations is missing text_input()
2023-01-28 20:12:33 +01:00
Héctor Ramón
b9028b2619
Merge pull request #1679 from casperstorm/pick_list/width
Fixed a 1-pixel width issue on `pick_list`
2023-01-28 18:37:27 +01:00
13r0ck
42b1bfe66d Fix: Clippy lint 'uninlined_format_args' 2023-01-27 14:02:48 -07:00
13r0ck
e6092e81a4 Fix: Clippy lint 'needless_lifetimes' 2023-01-27 13:50:52 -07:00
Casper Storm
5bc37f10e2
Fixed a small pixel width issue on pick_list 2023-01-27 10:21:57 +01:00
frey
d2008eed47 Mapped operations is missing text_input()...
This fixes a bug where some operations could be dropped.
2023-01-26 22:02:36 -06:00
Ian Douglas Scott
2e4aefa7fc Annotate Command and Subscription with #[must_use]
Calling a function returning one of these types without using it is
almost certainly a mistake. Luckily Rust's `#[must_use]` can help warn
about this.
2023-01-26 16:10:45 -08:00
Héctor Ramón Jiménez
01c484245b
Fix some minor documentation inconsistencies 2023-01-24 01:59:34 +01:00
Bingus
7e9a12a4aa
New iced changes 2023-01-18 15:18:45 -08:00
Bingus
70d487ba20
Merge remote-tracking branch 'origin/master' into feat/multi-window-support
# Conflicts:
#	examples/events/src/main.rs
#	glutin/src/application.rs
#	native/src/window.rs
#	winit/src/window.rs
2023-01-18 15:01:17 -08:00
Cory Forsstrom
be860508a9
Rename method to is_over 2023-01-17 17:20:53 -08:00
Cory Forsstrom
d470467718
Add toast example 2023-01-17 17:10:58 -08:00
Cory Forsstrom
3ab6797255
New method to determine if overlay contains cursor
This is needed for "container" overlay's such as `Group` which should
only consider it's childrens layouts and not it's own when determining
if the cursor is captured by the overlay.
2023-01-17 11:12:10 -08:00
Cory Forsstrom
b2a3a85acb
Use group overlay for containers w/ children 2023-01-17 10:18:39 -08:00
Cory Forsstrom
3c866c15aa
Add group overlay element 2023-01-17 10:18:37 -08:00
Héctor Ramón Jiménez
daa3f3324d
Introduce custom method to widget::Operation trait
This allows users to write operations for their custom widgets.
2023-01-14 03:20:30 +01:00
Héctor Ramón Jiménez
35c0fa3b00
Bump versions in READMEs 2023-01-14 01:14:02 +01:00
Héctor Ramón Jiménez
9fe46de13f
Bump versions 🎉 2023-01-14 01:10:28 +01:00
Héctor Ramón Jiménez
b9c8c7b08d
Clarify documentation of window::frames 2023-01-13 18:17:15 +01:00
Héctor Ramón Jiménez
c6d0046102
Use instant instead of wasm-timer in iced_core 2023-01-12 06:25:59 +01:00
Héctor Ramón Jiménez
fc54d6ba31
Use instant to fix Wasm target 2023-01-12 05:26:39 +01:00
Héctor Ramón Jiménez
e2ddef7438
Replace Option<Instant> with RedrawRequest enum 2023-01-12 05:18:25 +01:00
Héctor Ramón Jiménez
502c9bfbf6
Rename Focus::at to Focus::updated_at in text_input 2023-01-12 04:54:34 +01:00
Héctor Ramón Jiménez
0b86c4a299
Implement window::frames subscription
... and use it in the `solar_system` example 🎉
2023-01-12 04:35:41 +01:00
Héctor Ramón Jiménez
c649ec8cf7
Use short-hand field notation in TextInput 2023-01-12 03:22:34 +01:00
Héctor Ramón Jiménez
178bd2d83c
Avoid reblinking cursor when clicking a focused TextInput 2023-01-12 03:21:15 +01:00
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
bungoboingo
ec41918ec4 Implemented window title update functionality for multiwindow. 2023-01-09 11:28:07 -08:00
Richard
f93fa02543 introduce window::spawn and window::close 2023-01-09 11:27:04 -08:00
Richard
1bc0c480f9 move window settings to iced_native 2023-01-09 11:27:04 -08:00
Richard
0ad53a3d5c add window::Id to Event and Action 2023-01-09 11:27:04 -08:00
Richard
35331d0a41 Allow closing the window from user code 2023-01-09 11:27:04 -08:00
Richard
97914daaab what is this 2023-01-09 11:27:04 -08:00
Richard
ec56c0686d Introduce opaque window::Id type 2023-01-09 11:27:04 -08:00