Héctor Ramón Jiménez
fd1101bd5f
Unify Program definition in iced_program subcrate
2025-03-12 02:10:42 +01:00
Héctor Ramón Jiménez
91af1c5ed6
Update all examples to Rust 2024
2025-02-21 01:37:14 +01:00
Héctor Ramón Jiménez
f8337b8da7
Add helper functions for alignment to widget module
2025-01-24 15:55:24 +01:00
Héctor Ramón Jiménez
a805177b25
Make pin widget Fill parent by default
2024-11-22 04:13:38 +01:00
Héctor Ramón Jiménez
5be1d545d0
Implement pin widget
2024-11-22 04:06:52 +01:00
Héctor Ramón Jiménez
1383c6a4f7
Fix flex layout of Fill elements in a Shrink cross axis
...
Instead of collapsing, the `Fill` elements will fill the
cross space allocated by the other `Shrink` elements present
in the container.
2024-09-21 21:14:54 +02:00
Héctor Ramón Jiménez
6fbbc30f5c
Implement row::Wrapping widget
...
If you have a `Row`, simply call `Row::wrap` at
the end to turn it into a `Row` that will wrap its
contents.
The original alignment of the `Row` is preserved
per row wrapped.
2024-08-06 03:22:44 +02:00
Héctor Ramón Jiménez
05884870fc
Make container::Style API more consistent
2024-07-20 15:53:50 +02:00
Héctor Ramón Jiménez
76737351ea
Re-export variants of Length and alignment types
2024-07-12 18:12:34 +02:00
Héctor Ramón Jiménez
f9dd5cbb09
Introduce helper methods for alignment for all widgets
2024-07-12 15:14:43 +02:00
Héctor Ramón Jiménez
341c9a3c12
Introduce daemon API and unify shell runtimes
2024-06-19 01:53:40 +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
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 Jiménez
f0ae9a0c38
Use Catalog approach for all widgets
2024-03-24 05:03:09 +01:00
Héctor Ramón Jiménez
54f44754eb
Move Program to application module
2024-03-17 14:19:12 +01:00
Héctor Ramón Jiménez
28a27f08ed
Remove sandbox by making application more generic 🎉
2024-03-16 19:14:13 +01:00
Héctor Ramón Jiménez
bb71e8481e
Make sandbox helper take a title as well
2024-03-16 16:12:07 +01:00
Héctor Ramón Jiménez
c22269bff3
Introduce Program API
2024-03-16 05:33:47 +01:00
Héctor Ramón Jiménez
34faedd32b
Rename container::box_ to rounded_box
2024-03-08 18:57:44 +01:00
Héctor Ramón Jiménez
29326215cc
Simplify theming for Container widget
2024-03-05 03:48:08 +01:00
Héctor Ramón Jiménez
cbe4603579
Remove complex cross-axis layout logic from Column and Row
2024-03-03 01:08:11 +01:00
Héctor Ramón Jiménez
e8049af23d
Make horizontal_space and vertical_space fill by default
2024-02-15 02:08:22 +01:00
Héctor Ramón Jiménez
f53cfb8efa
Use Borrow for both options and selected in PickList
2024-02-14 03:54:40 +01:00
Alexander van Saase
b5f1ca1695
Introduce support for disabling a checkbox
2024-02-01 13:16:28 +01:00
Héctor Ramón Jiménez
64d1ce5532
Refactor KeyCode into Key and Location
2024-01-16 13:28:00 +01:00
Héctor Ramón Jiménez
226271148e
Use multiple squares instead of vertical_space in layout example
2024-01-10 10:08:11 +01:00
Héctor Ramón Jiménez
a6cbc36503
Showcase more layouts in layout example
2024-01-10 10:01:51 +01:00
Héctor Ramón Jiménez
3850a46db6
Add Theme selector to layout example
2024-01-10 10:01:51 +01:00
Héctor Ramón Jiménez
d76705df29
Add explain toggle to layout example
2024-01-10 10:01:51 +01:00
Héctor Ramón Jiménez
5dbded61de
Use flatten instead of filter_map in layout example
2024-01-10 10:01:50 +01:00
Héctor Ramón Jiménez
81ecc4a67f
Add basic controls to layout example
2024-01-10 10:01:50 +01:00
Héctor Ramón Jiménez
a79b2adf5c
Use first-class functions in layout example
2024-01-10 10:01:50 +01:00
Héctor Ramón Jiménez
22226394f7
Introduce Widget::size_hint and fix further layout inconsistencies
2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
0322e820eb
Create layout example
2024-01-10 10:01:41 +01:00