|
For example, I want to show some texts over an image. |
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 |
|
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. |
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
Overlayup at one time, and anOverlaycan'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.