-
Notifications
You must be signed in to change notification settings - Fork 18
Core layout widgets #1
Comments
You might want to consider adding more layout modes. Two Rust libraries for layout that already exist:
|
Interesting and nice framework! which is what I'm want (but with a little missing) The missing I mentioned is that:
But I'm very interesting with all these, we may have some discuss in future. |
After some code reading, I found that this project highly depends on And what do you think about the btw, the implements of Widgets may be too verbose for me. but I can live with that for now. |
I'm focused on making the high-level API as ergonomic as it is possible in Rust (it's my obsession at this point haha). While at it, the lower level API for interacting with drawing should still be high enough so that Frui could theoretically switch backends at any point in time without breaking user code (e.g. we should be able to switch from Currently that's not possible as I took a lot of shortcuts in the current implementation (e.g.
A few months ago, I subscribed to Raph Levien’s blog. Now, every time he posts, I am thrilled to see his ideas and work (I really like his style of writing). I think Xilem tries really hard to be as much zero-cost as possible while keeping the ui code ergonomic. I think Xilem does a great job on that front. What I'm most excited about is that Xilem and Frui came to similar design decisions, even though those projects were developed separately and with slightly different goals in mind. Some of those are:
In the end, I just hope that Frui and Xilem can improve by learning from each other. I believe that working together towards one goal (bringing the Rust UI vision to life) from different perspectives can only accelerate that process.
Yeah it's a mess 😄. I am working on it right now. |
I will be rewriting the layout/drawing API soon. I'll make sure to give those layout modes a try while at it. |
Maybe I can implement other Widgets after your new layout/drawing API's rewriting? |
I would also like to contribute to the development, my rust knowledge is only theoretical 😅 |
I will highly appreciate help with this!
I will setup Discord/Zulip later so we can talk more freely. |
I think we need Discord, many things need to be discussed.
|
Ok, Discord server is up! It's in pretty rough shape, but it will do for now! (also discussion tab is now active on github) |
#4 has just fired, |
Uh oh!
There was an error while loading. Please reload this page.
Following is a list of some of the more important core layout widgets that need to be implemented.
Their exact API is up for debate, since there may be better ways to adapt those to Rust.
Single-child layout widgets
Align
Center
Padding
Transform
SizedBox
FittedBox
LimitedBox
OverflowBox
ConstrainedBox
SizedOverflowBox
FractionallySizedBox
Flexible
Expanded
Container
AspectRatio
Multi-child layout widgets
Row
Wrap
Stack
Column
Table
ListView
GridView
The text was updated successfully, but these errors were encountered: