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
Héctor Ramón
5b5a5b831c
Merge pull request #1701 from nicksenger/fix/diff-component-operate
...
Fix panic when using operations with components in certain cases
2023-02-14 06:43:18 +01:00
Héctor Ramón
4e93ae8e32
Merge pull request #1698 from iced-rs/hide-window-until-ready
...
Hide window until `Renderer` has been initialized
2023-02-14 06:42:59 +01:00
Héctor Ramón
efbf66b0a1
Merge pull request #1700 from nicksenger/overlay/fix-panic
...
Fix panic when overlay event processing removes overlay
2023-02-14 06:40:21 +01:00
Héctor Ramón
2c680a3e5f
Merge pull request #1699 from nicksenger/overlay/is_over
...
Implement `is_over` for iced_lazy widget `Overlay`s
2023-02-14 06:32:05 +01:00
Joakim Frostegård
f318e3fdbf
glow: enable GL_ARB_explicit_attrib_location to fix crashes
2023-02-13 22:34:13 +01:00
Nick Senger
2201f33c65
fix: diff widget sub-tree after rebuilding component with operation
2023-02-12 11:07:08 -08:00
Nick Senger
41822d0dc5
fix: panic when overlay event processing removes overlay
2023-02-11 09:12:26 -08:00
Nick Senger
8fe851057d
fix: lazy widgets overlay is_over
2023-02-10 21:16:44 -08:00
Héctor Ramón Jiménez
9506fb1181
Hide window until Renderer has been initialized
2023-02-11 03:06:42 +01:00
Yoo Dongryul
92ba26b8a1
Resize images on README.md ( #1659 )
...
* Resize images on README.md
* hotfix: for mobile layout
* fix: set height of both images equally
2023-02-07 21:20:46 +01:00
Héctor Ramón
344578649e
Merge pull request #1694 from sushigiri/master
...
Accept FnOnce instead of Fn in canvas cache draw
2023-02-06 21:24:45 +01:00
sushigiri
c7d8467c46
Accept FnOnce instead of Fn in canvas cache draw
...
Use FnOnce in `draw` function signature instead of `Fn`, permitting the
use of iterators and other one-time functions.
2023-02-06 09:05:07 -07: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
8c753192f8
Merge pull request #1686 from iced-rs/fix/overlay-group-position
...
Fix layout translation in `overlay::Group`
2023-01-30 05:26:51 +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
Héctor Ramón
a28bc3eaf0
Merge pull request #1685 from iced-rs/fix/component-animations
...
Fix widget-driven animations for `Component`
2023-01-30 03:58:16 +01:00
Héctor Ramón
5176148e75
Merge pull request #1682 from tarkah/standalone-image-draw
...
Refactor image draw to standalone function
2023-01-30 03:43:34 +01:00
Héctor Ramón Jiménez
a3bfa0724c
Fix widget-driven animations for Component
2023-01-30 03:41:03 +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
Héctor Ramón
cffffff2dd
Merge pull request #1681 from pop-os/fix-lints
...
Fix Clippy Lints
2023-01-28 18:34:14 +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
13r0ck
0ff1061d52
Fix: Clippy lint 'let_underscore_future'
2023-01-27 13:50:36 -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
Héctor Ramón
818ae4977a
Merge pull request #1676 from ids1024/must_use
...
Annotate `Command` and `Subscription` with `#[must_use]`
2023-01-27 02:17:42 +01: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
2dea5fe058
Merge pull request #1655 from tarkah/feat/group-overlay
...
Group Overlay
2023-01-24 02:14:50 +01:00
Héctor Ramón Jiménez
01c484245b
Fix some minor documentation inconsistencies
2023-01-24 01:59:34 +01:00
Jedsek
06fb7e0b51
Update main.rs
2023-01-20 13:56:02 +08:00
Jedsek
ccd02c525b
Update main.rs
...
The app should not render qr_code when data is empty
2023-01-20 13:46:09 +08:00
Héctor Ramón
eb4fcba05f
Merge pull request #1660 from Jedsek/patch-1
...
Update example/game_of_life: use [default] on enum
2023-01-20 00:10:11 +01:00
Héctor Ramón
8acf7c41fc
Fix #[default] in preset for game_of_life example
2023-01-19 20:20:13 +01:00
Jedsek
e80c7dff8d
Update preset.rs
2023-01-19 19:09:45 +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
5ef0648bf4
Merge pull request #1649 from iced-rs/generic-widget-operations
...
Introduce `custom` method to `widget::Operation` trait
2023-01-14 16:08:36 +01: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