Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Val variants example #9689

Open
ickshonpe opened this issue Sep 4, 2023 · 0 comments
Open

Val variants example #9689

ickshonpe opened this issue Sep 4, 2023 · 0 comments
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Examples An addition or correction to our examples

Comments

@ickshonpe
Copy link
Contributor

ickshonpe commented Sep 4, 2023

What problem does this solve or what need does it fill?

We don't have an example that explains the Val variants in detail.

Also the viewport_debug example kind of sucks. It's just a sanity check thing I wrote in a couple of minutes and intended to replace but never got around to it. Some discussion here: #9666

What solution would you like?

Maybe an example layout that can be adjusted using an interface. The interface could consist of some textboxes for the numeric values and buttons for the Val variants maybe.

Alternatively, the viewport_debug example could be expanded. Each node could be labelled with its assigned width and height Vals and a button could be implemented that when pressed cycles through the different coordinate representations that can be used: pixel, viewport and percentage.

Updating viewport_debug is probably easier. Both could be done also, it's not either/or.

@ickshonpe ickshonpe added C-Enhancement A new feature S-Needs-Triage This issue needs to be labelled labels Sep 4, 2023
@alice-i-cecile alice-i-cecile added C-Examples An addition or correction to our examples A-UI Graphical user interfaces, styles, layouts, and widgets and removed C-Enhancement A new feature S-Needs-Triage This issue needs to be labelled labels Sep 4, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-UI Graphical user interfaces, styles, layouts, and widgets C-Examples An addition or correction to our examples
Projects
None yet
Development

No branches or pull requests

2 participants