Commit graph

409 commits

Author SHA1 Message Date
Andrew-Schwartz
06c80c5bce Add FromIterator for Row and Column 2024-06-12 10:54:50 -04:00
Héctor Ramón
e6d0b3bda5
Merge pull request #2456 from iced-rs/window-id-in-event-subscriptions
Introduce `window::Id` to `Event` subscriptions
2024-06-11 20:22:44 +02:00
Héctor Ramón Jiménez
df85d85a6f
Allow dead_code in widget::lazy::cache 2024-06-11 20:07:06 +02:00
Héctor Ramón Jiménez
5d7dcf417c
Introduce subscription::Event
... and remove `PlatformSpecific` from `Event`
2024-06-11 19:41:05 +02:00
Héctor Ramón Jiménez
e400f972c1
Introduce window::Id to Event subscriptions
And remove `window::Id` from `Event` altogether.
2024-06-10 22:03:46 +02:00
PolyMeilex
e2b00f98a0
Allow for styling of the menu of a pick list 2024-06-08 02:09:10 +02:00
Héctor Ramón Jiménez
3312dc8080
Create jump and macos_command methods in keyboard::Modifiers 2024-05-31 16:23:09 +02:00
Héctor Ramón Jiménez
8cfa8149f5
Keep unary motion function in text_editor 2024-05-31 16:14:55 +02:00
BradySimon
bd48946b02
Add Command + ArrowLeft/Right input behavior for macos 2024-05-31 16:11:33 +02:00
Héctor Ramón Jiménez
d8ba6b0673
Merge branch 'master' into feat/text-macro 2024-05-23 13:29:45 +02:00
Héctor Ramón Jiménez
05f69f495e
Ask for explicit Length in center_* methods 2024-05-13 17:56:02 +02:00
Héctor Ramón Jiménez
fa9e1d96ea
Introduce dynamic opacity support for Image and Svg 2024-05-03 13:25:58 +02:00
Héctor Ramón Jiménez
15057a05c1
Introduce center widget helper
... and also make `center_x` and `center_y` set
`width` and `height` to `Length::Fill`, respectively.

This targets the most common use case when centering
things and removes a bunch of boilerplate as a result.
2024-05-03 09:11:46 +02:00
Héctor Ramón
1cefe6be21
Merge pull request #2334 from DKolter/image-rotation
Adding feature: Image rotation
2024-05-03 07:31:34 +02:00
myuujiku
8efd32c51b Apply bounds check when grabbing image::Viewer 2024-05-02 21:18:47 +02:00
Héctor Ramón Jiménez
a57313b23e
Simplify image rotation API and its internals 2024-05-02 17:28:28 +02:00
Héctor Ramón Jiménez
09a6bcfffc
Add Image rotation support
Co-authored-by: DKolter <68352124+DKolter@users.noreply.github.com>
2024-05-02 17:27:45 +02:00
Héctor Ramón Jiménez
aae8e4f5cf
Fix clippy lints for new 1.78 stable toolchain 2024-05-02 17:23:32 +02:00
Héctor Ramón Jiménez
b52c7bb610
Use an opaque Id type for image::Handle
Hashing pointers is a terrible idea.
2024-05-01 01:39:43 +02:00
Héctor Ramón Jiménez
b5b78d505e
Introduce canvas::Cache grouping
Caches with the same `Group` will share their text
atlas!
2024-04-30 07:57:54 +02:00
Héctor Ramón
d5bb6deb2f
Merge pull request #2408 from iced-rs/feature/hover-widget
`hover` widget
2024-04-27 11:53:11 +02:00
Héctor Ramón Jiménez
05c9077581
Propagate mouse movement and button releases unconditionally in hover 2024-04-27 11:28:43 +02:00
Héctor Ramón Jiménez
9c0f2dc9a5
Fix top layer clipping in hover widget 2024-04-27 11:21:18 +02:00
Héctor Ramón Jiménez
c58155a971
Set proper size boundaries for limits in Stack::layout 2024-04-27 06:20:41 +02:00
Héctor Ramón Jiménez
95ac45e33d
Fix ambiguous link in documentation of hover helper 2024-04-27 06:19:25 +02:00
Héctor Ramón Jiménez
40dff6b23d
Fix overlay behavior in hover widget 2024-04-27 06:16:57 +02:00
Héctor Ramón Jiménez
bb9244107c
Respect width and height properties when Stack is empty 2024-04-27 06:08:30 +02:00
Héctor Ramón Jiménez
23ef6547ad
Introduce hover widget 2024-04-27 06:06:13 +02:00
Héctor Ramón Jiménez
73088a6fc1
Fix out of bounds caret in TextEditor in some circumstances 2024-04-26 15:17:35 +02:00
Héctor Ramón Jiménez
6d4155a548
Fix Shift scrolling for scrollable on macOS
Apparently, macOS inverts the scrolling axes automatically now.
Was this a thing before, or did an update just break user space?
2024-04-26 01:44:03 +02:00
Héctor Ramón Jiménez
eb49567791
Capture scrollbar events in a scrollable before content events 2024-04-26 01:19:49 +02:00
Héctor Ramón Jiménez
4cd45643d7
Introduce opaque widget helper 2024-04-25 06:05:37 +02:00
Héctor Ramón Jiménez
9492da11d9
Use Limits::resolve in Stack widget 2024-04-25 02:27:01 +02:00
Héctor Ramón Jiménez
99434b3ecf
Fix documentation of stack module 2024-04-25 01:47:07 +02:00
Héctor Ramón Jiménez
0c74d26456
Implement Stack widget
It can be used to stack elements on top of each other!
2024-04-25 01:39:34 +02:00
Daniel
fdcec03197
Don't consume unused scroll events (#2397)
* Initial Commit

* Update scrollable.rs

* Use `let _ = ` instead of `_ =` for consistency

---------

Co-authored-by: Héctor Ramón Jiménez <hector@hecrj.dev>
2024-04-23 00:45:44 +00:00
Héctor Ramón Jiménez
67e181ce7b
Fix clip bounds with nested scrollable widgets 2024-04-23 02:29:48 +02:00
mtkennerly
f962c6ce06
Allow checking whether a TextEditor is focused 2024-04-15 08:41:29 -04:00
Héctor Ramón Jiménez
d922b47815
Reintroduce support for custom primitives in iced_wgpu 2024-04-08 15:04:35 +02:00
Héctor Ramón Jiménez
13289dbd19
Merge branch 'master' into wgpu/better-architecture 2024-04-07 14:06:52 +02:00
Héctor Ramón Jiménez
5cd98f069d
Use built-in [lints] table in Cargo.toml 2024-04-07 12:42:12 +02:00
Héctor Ramón Jiménez
6d3e1d835e
Decouple caching from layering and simplify everything 2024-04-05 23:59:21 +02:00
Héctor Ramón Jiménez
394e599c3a
Fix layer transformations 2024-04-05 00:40:39 +02:00
Héctor Ramón Jiménez
b05e61f5c8
Redesign iced_wgpu layering architecture 2024-04-03 21:07:54 +02:00
Aaron McGuire
31d1d5fecb
Check is_secure before a copy/cut from TextInput (#2366)
* Check is_secure before copy/cut on text_input

* run cargo fmt
2024-04-02 08:46:35 +00:00
Héctor Ramón
b17f890482
Merge pull request #2358 from bungoboingo/text-editor-font-size
Some text_editor QoL
2024-04-02 10:12:07 +02:00
Héctor Ramón
27312187f3
Merge pull request #2364 from blazra/combobox-menu-fix
combo_box: Do not draw empty menu overlay
2024-04-02 09:49:36 +02:00
Héctor Ramón Jiménez
34f799aa3d
Rename text::IntoContent to IntoFragment 2024-04-01 21:48:47 +02:00
Radovan Blažek
8c08cce6ff combo_box: Do not draw empty menu overlay
Fixes #2311
2024-04-01 21:38:58 +02:00
Héctor Ramón Jiménez
b8d5df2817
Reintroduce old text helper as value helper 2024-04-01 21:36:52 +02:00