Commit graph

21 commits

Author SHA1 Message Date
Héctor Ramón Jiménez
28ec6df8f0
Fix cross-axis compression in layout::flex 2024-11-08 18:08:34 +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
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
7a50e9e8fb
Convert Renderer::Theme to generic Widget type 2024-01-21 17:56:01 +01:00
Héctor Ramón Jiménez
fa53d9adbb
Loosen cross axis constraint for main axis fills in flex layout 2024-01-11 06:11:36 +01:00
Héctor Ramón Jiménez
88f8c343fa
Fix cross calculation in layout::flex 2024-01-10 10:01:50 +01:00
Héctor Ramón Jiménez
025064c9e0
Fix broken doc links in layout::Node API 2024-01-10 10:01:50 +01:00
Héctor Ramón Jiménez
d62bb8193c
Introduce useful helpers in layout module 2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
4bdd8a6279
Fix cross axis calculation in flex layout 2024-01-10 10:01:49 +01:00
Héctor Ramón Jiménez
d278bfd21d
Replace width and height with Widget::size 2024-01-10 10:01:49 +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
fd8f980b88
Use max_cross if all elements are fluid in layout::flex 2024-01-04 06:53:07 +01:00
Héctor Ramón Jiménez
aa3c956516
Fix available space provided to children with non-fill main axis but fill cross axis 2024-01-04 06:53:07 +01:00
Héctor Ramón Jiménez
89418c1244
Determine cross-axis max length based on contents if Shrink 2024-01-04 06:53:06 +01:00
Héctor Ramón Jiménez
0655a20ad1
Make Shrink have priority over Fill in layout 2024-01-04 06:51:21 +01:00
Héctor Ramón Jiménez
6448429103
Draft Editor API and TextEditor widget 2023-09-12 14:51:00 +02:00
Héctor Ramón Jiménez
a026e917d3
Make widget::Tree mutable in Widget::layout 2023-08-30 06:36:24 +02:00
Héctor Ramón Jiménez
ed3454301e
Implement explicit text caching in the widget state tree 2023-08-30 04:31:21 +02:00
Héctor Ramón Jiménez
aa4b5bb6b9
Merge branch 'master' into feature/software-renderer 2023-03-07 07:24:34 +01:00
Héctor Ramón Jiménez
3a0d34c024
Create iced_widget subcrate and re-organize the whole codebase 2023-03-04 05:37:11 +01:00