-
For example, I want to show some texts over an image. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
The best place to point you for now is to look at how the PickList is implemented. If a Widget returns an (Overlay), that will rendered over everything else. It's important to note that currently Iced only supports having a single You can also check out https://github.com/iced-rs/iced_aw. A bunch of additional widgets have been created there, such as a |
Beta Was this translation helpful? Give feedback.
-
Yes that's helpful, thank you. A Tooltip can be positioned in any of several places relative to another widget, whereas I'd like to provide absolute coordinates for where it should go. So perhaps this would require creation of a new Tooltip-like widget. I've decided to go with an easier solution, involving configurable positioning of a "tooltip" box within a canvas. |
Beta Was this translation helpful? Give feedback.
The best place to point you for now is to look at how the PickList is implemented. If a Widget returns an (Overlay), that will rendered over everything else.
It's important to note that currently Iced only supports having a single
Overlay
up at one time, and anOverlay
can't nest over anotherOverlay
. However, you can definitely build something very complex if you're just adding normal elements to theOverlay
.You can also check out https://github.com/iced-rs/iced_aw. A bunch of additional widgets have been created there, such as a
Modal
, that useOverlay
.