Is there a way to convert iced_native::overlay::Element
into iced_native::Element
?
#1827
Unanswered
Amazingkenneth
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I want to implement multiple selection button over a map image. Like this:
The red dots are buttons for selecting positions on the map, which can be implemented by setting
iced_native::widget::image
at the background. Currently, it seems like you can implement the button effect by creatingiced_native::overlay::Group
, but there is no way to convertoverlay::Element
to native elements, which seems unreasonable and prevents me from inserting code intoview()
to display them.I tried
iced_aw::native::floating_element::FloatingElement
, but it allows only one element to be bound to an overlaying element. (see iced-rs/iced_aw#120, I closed the issue after I realized that reassigning toFloatingElement
would not work)Is there any way I can implement this?
Beta Was this translation helpful? Give feedback.
All reactions