I’m looking to bind mouseover events to a given widget, which works, but when you add a sibling
ui::Widget that visually overlaps, I can’t figure out how to check to make sure that when you mouseover it, that there isn’t another widget in the way.
Say a scene is:
Node @root_node \-> ui::Button @close_btn \-> ui::Layout @fullscreen_layout
fullscreen_layout are added to
fullscreen_layout blocks the entire view (for the sake of example, its not fullscreen in every case. purely to explain that the close button is not visible whatsoever).
If you attach a EventMouseListener, there doesn’t seem to be a way to check that when you’re mousing over
close_btn, to determine that
fullscreen_layout isn’t blocking it.
ui::Widget::hitTest() checks that the camera can see the object’s rect, not so much that it’s blocked by anything else.
ui::Widget::isClippingParentContainsPoint works for ancestors up the tree, but not non-ancestors.