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

Added gtk stack widget #838

Merged
merged 2 commits into from
Feb 17, 2024
Merged

Added gtk stack widget #838

merged 2 commits into from
Feb 17, 2024

Conversation

vladaviedov
Copy link
Contributor

@vladaviedov vladaviedov commented Jul 4, 2023

Description

This PR adds the stack widget from GTK.
This widget shows one of its children at a time.

Usage

(stack
    :selected int_var

    (child 0)
    (child 1)
    (...)
)

Setting int_var will show child with respective index.

Showcase

stack

Additional Notes

I made this as a workaround to the problem I was having in #835, however I don't think it resolves that issue.

Checklist

Please make sure you can check all the boxes that apply to this PR.

  • All widgets I've added are correctly documented.
  • I added my changes to CHANGELOG.md, if appropriate.
  • The documentation in the docs/content/main directory has been adjusted to reflect my changes.
  • I used cargo fmt to automatically format all code before committing

@elkowar elkowar merged commit e95d3af into elkowar:master Feb 17, 2024
1 check failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants