Héctor Ramón Jiménez
48b2264bc6
Simplify component implementation in iced_lazy
2021-12-13 17:46:39 +07:00
Héctor Ramón Jiménez
03b3493138
Remove trait-specific draw logic in iced_native
2021-10-14 16:07:22 +07:00
Héctor Ramón Jiménez
a0ad399622
Refactor alignment types into an alignment module
2021-09-20 15:14:08 +07:00
Héctor Ramón Jiménez
5fae6e59ff
Introduce and use CrossAlign enum for Column and Row
2021-09-20 15:12:43 +07:00
Cory Forsstrom
95e4791a1e
Improve readability of Align::Fill branching
2021-09-20 15:11:06 +07:00
Cory Forsstrom
e89bbe8a79
Calc fill cross and use for all children
2021-09-20 15:11:06 +07:00
Cory Forsstrom
be51cac3d7
Add Align::Fill variant
2021-09-20 15:11:06 +07:00
Héctor Ramón
b94cd7a2a8
Use Padding::horizontal and Padding::vertical helpers
2021-06-01 19:21:43 +07:00
Ben LeFevre
fe0a27c56d
Add support for asymmetrical padding
2021-06-01 19:05:39 +07:00
Héctor Ramón Jiménez
01322f69a4
Use recently stabilized intra-doc links
...
See RFC: https://github.com/rust-lang/rfcs/blob/master/text/1946-intra-rustdoc-links.md
2020-11-26 02:05:43 +01:00
Héctor Ramón Jiménez
d328b07b39
Introduce viewport to Widget::draw
...
This should eventually allow us to only generate primitives that are
visible.
2020-10-28 06:21:07 +01:00
Héctor Ramón Jiménez
749a9588d7
Implement padding support for Container
2020-03-31 01:21:51 +02:00
Héctor Ramón
d817fe8e14
Merge pull request #91 from nvzqz/const-all-the-things
...
Make many functions `const`
2020-03-06 03:47:40 +01:00
Héctor Ramón Jiménez
f81827c151
Remove counterintuitive constant functions
2020-03-06 03:30:48 +01:00
Héctor Ramón Jiménez
8f83c805b1
Improve documentation for new Node methods
2020-02-14 23:23:45 +01:00
daxpedda
f4b8bce837
Revert changing the constructor and implement new method.
2020-02-14 21:41:35 +01:00
daxpedda
b72bd0b2b5
Add bound to Node constructor.
2020-02-14 15:57:07 +01:00
daxpedda
457d6f616a
Make Node::align public.
2020-02-14 15:36:33 +01:00
Héctor Ramón
9b8f86f843
Merge pull request #150 from hecrj/refactor/move-renderer-traits
...
Move `Debugger` and `Windowed` traits
2020-01-10 19:10:57 +01:00
Héctor Ramón Jiménez
d1bf3f02c7
Fix flex layout cross-alignment when not filled
2020-01-10 04:58:13 +01:00
Héctor Ramón Jiménez
e45497dfd6
Move Debugger and Windowed to a better location
...
We move `renderer::Debugger` to `layout::Debugger` and
`renderer::Windowed` to `window::Renderer`.
2020-01-10 01:58:55 +01:00
Héctor Ramón
eb88660074
Merge pull request #137 from hecrj/feature/fill-portion
...
Add `Length::FillPortion` variant
2019-12-31 10:35:51 +01:00
Héctor Ramón Jiménez
74d01a6957
Subtract size of previous elements in flex layout
2019-12-30 20:50:52 +01:00
Héctor Ramón Jiménez
aecc3ad195
Add Length::FillPortion variant
...
It allows to specify the amount of available space an element should
take relative to other elements.
2019-12-30 19:33:27 +01:00
Héctor Ramón Jiménez
2ec0a43c4a
Fix sneaky bug with padding in flex layout
2019-12-21 07:18:20 +01:00
Nikolai Vazquez
267e242238
Make many functions const
...
The point is to set up repeated components or boilerplate before their
use sites.
The majority of these make sense as `const`. However, some functions
such as those regarding state may not make sense as `const`.
2019-11-29 21:24:52 -05:00
Héctor Ramón Jiménez
a7dba612f0
Write docs for iced and iced_native
2019-11-22 19:36:57 +01:00
Héctor Ramón Jiménez
d4d14b68f4
Remove padding from Container for now
2019-11-11 05:37:51 +01:00
Héctor Ramón Jiménez
ceb02f4a36
Implement Container widget
...
Remove `align_self` and `justify_content` methods
2019-11-11 05:26:08 +01:00
Héctor Ramón Jiménez
bfe19193b9
Fix integer overflow in flex::resolve
2019-11-11 03:20:33 +01:00
Héctor Ramón Jiménez
0240c3981b
Draft custom layout engine based on druid
2019-11-11 03:08:00 +01:00
Héctor Ramón Jiménez
2303111e09
Draft new layout API
2019-11-10 01:55:32 +01:00