Commit graph

1033 commits

Author SHA1 Message Date
Bingus
744cef5608
Merge remote-tracking branch 'origin/master' into feat/multi-window-support
# Conflicts:
#	winit/src/window.rs
2023-02-17 11:45:34 -08:00
Bingus
8da098330b
Fixed widget animations implementation 2023-02-17 11:42:49 -08:00
Héctor Ramón Jiménez
fd14086933
Use Pixels for padding in image::Viewer 2023-02-17 16:24:37 +01:00
Héctor Ramón Jiménez
a467a037c3
Use Pixels for spacing 2023-02-17 16:23:29 +01:00
Héctor Ramón Jiménez
fd3a141024
Use f32 for Icon::size in checkbox 2023-02-17 16:18:27 +01:00
Héctor Ramón Jiménez
3320ac1126
Use f32 for Padding 2023-02-17 16:09:49 +01:00
Héctor Ramón Jiménez
0872d078e2
Use Pixels for size methods 2023-02-17 15:56:19 +01:00
Héctor Ramón Jiménez
67e3da5669
Use Pixels for Slider::height and VerticalSlider::width 2023-02-17 15:55:12 +01:00
Héctor Ramón Jiménez
70483e7fdd
Fix Scrollbar bound calculations in Scrollable 2023-02-17 15:48:35 +01:00
Héctor Ramón Jiménez
570600ce51
Use Pixels for Text::size 2023-02-17 15:47:51 +01:00
Héctor Ramón Jiménez
7b8b01f560
Use f32 in Length::Units and rename it to Fixed 2023-02-17 15:40:17 +01:00
Héctor Ramón Jiménez
d7c83080f2
Wrap image Bytes with Arc instead of Data 2023-02-17 14:37:15 +01:00
Sebastian Dröge
d2996f3ed8
image: Allow any kind of data that implements AsRef<[u8]> for the image data
It's not required anywhere for it to be a plain slice or a `Vec` and
this makes it possible to use data allocated in a different way without
copying.
2023-02-17 14:23:13 +01:00
Night_Hunter
9f75f01ddb
add action to get window id 2023-02-17 13:45:51 +01:00
Héctor Ramón Jiménez
df861d9ece
Rename SetAlwaysOnTop to ChangeAlwaysOnTop 2023-02-17 13:22:45 +01:00
Night_Hunter
095ecf016b
update docs and change to SetAlwaysOnTop 2023-02-17 13:20:07 +01:00
Night_Hunter
d1d13f6f16
add always on top action 2023-02-17 13:17:59 +01:00
Héctor Ramón
32745f472f
Merge pull request #1707 from casperstorm/feat/checkbox-icon
Added the ability to change `Checkbox` icon
2023-02-17 12:58:27 +01:00
Héctor Ramón
e3fbaed12f
Merge pull request #1695 from nicksenger/widgets/container-ids
Provide widgets IDs to `Operation::container`
2023-02-16 16:32:07 +01:00
Nick Senger
273c9be00f
container: allow specification of ID and provide to Operation::container 2023-02-16 16:15:45 +01:00
Nick Senger
d05ac38159
Revert "provide ID to operation.container in applicable widgets"
This reverts commit 8f9550bcf7c1cebbf90e80683761375406ca6139.
2023-02-16 16:15:45 +01:00
Nick Senger
84a6038961
provide ID to operation.container in applicable widgets 2023-02-16 16:15:45 +01:00
Nick Senger
6a683b603d
scrollable: provide ID to operation.container 2023-02-16 16:15:41 +01:00
Casper Storm
4fb0be1793
Added the ability to change checkbox icon 2023-02-16 14:13:04 +01:00
Bingus
3c095aa3f0
Merged in iced master 2023-02-15 14:56:15 -08:00
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