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

Z-sorting components based on user interaction #38

Open
ruza-net opened this issue Nov 27, 2022 · 1 comment
Open

Z-sorting components based on user interaction #38

ruza-net opened this issue Nov 27, 2022 · 1 comment

Comments

@ruza-net
Copy link
Contributor

I'd like to make some textboxes which are draggable. That means they'll be able to overlap, so I have to make the one that has been interacted with most recently float on top of the others.

Can I do it with the current facilities (without implementing this manually with canvas)?

@wtholliday
Copy link
Contributor

wtholliday commented Nov 27, 2022

I think you could do this by reordering the text box ids in a zlist. Have a look at https://github.com/audulus/rui/blob/main/examples/list.rs

Also, rui is a bit weak right now in text editing facilities and could use some help! There's text_editor which does multiline text (though it's rather incomplete). Probably should have a text_box for single-line text fields (SwiftUI has a similar distinction). (see #9)

placrosse pushed a commit to placrosse/rui that referenced this issue Jan 1, 2023
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

No branches or pull requests

2 participants