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

Make tuig-ui input stateful #58

Open
nic-hartley opened this issue Oct 1, 2023 · 0 comments
Open

Make tuig-ui input stateful #58

nic-hartley opened this issue Oct 1, 2023 · 0 comments
Labels
k: feature small increment to existing bits p: tuig-ui tuig-ui crate s: input user input
Milestone

Comments

@nic-hartley
Copy link
Owner

i.e. rather than passing Actions around, pass around a struct with e.g. modifier key state, mouse position, etc. and the Action. Doing this lets us remove state from the UI components themselves, which is a very big advantage in an immediate-mode UI.

@nic-hartley nic-hartley added k: feature small increment to existing bits s: input user input p: tuig-ui tuig-ui crate labels Oct 1, 2023
@nic-hartley nic-hartley added this to the v0.1 milestone Oct 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
k: feature small increment to existing bits p: tuig-ui tuig-ui crate s: input user input
Projects
None yet
Development

No branches or pull requests

1 participant