layout: add weighted child sizing - #8
Conversation
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: 06ccbd96d7
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
|
Codex Review: Didn't find any major issues. Already looking forward to the next diff. Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
06ccbd9 to
f9ae8a3
Compare
Summary
Add
gui.weighted()for assigning proportional main-axis space to container children.A
rowdistributes width, while acolumnorcircledistributes height:gui.weighted(weight: 2, view: gui.button(...))The implementation:
1:1:2-style layouts;Layoutnode and does not change theViewinterface;Validation
Shaperemains 200 bytes.examples/weighted_layout.vcompiles cleanly with-Wand runs successfully.