Skip to content

How to write custom widgets that draw an existing widget when drawing themselves #1834

Closed Answered by tarkah
anshap1719 asked this question in Q&A
Discussion options

You must be logged in to vote

I also have a snippet here which you can reference. This is a wrapper widget that tracks then the mouse cursor enters / leaves the widgets bounds:

https://github.com/tarkah/iced-snippets/blob/0df81ba17a844d0125fd4dc5b490f0ef02313c4e/snippets/hover-component/src/main.rs#L117

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@tarkah
Comment options

@tarkah
Comment options

Answer selected by anshap1719
@anshap1719
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants