Widget.encapsulatedChildren

If encapsulatedChildren returns true, it changes the event handling mechanism to act as if events from the child widgets are actually targeted on this widget.

The idea is then you can use child widgets as part of your implementation, but not expose those details through the event system; if someone checks the mouse coordinates and target of the event once it bubbles past you, it will show as it it came from you.

class Widget
protected
bool
encapsulatedChildren
()

Meta

History

Added May 22, 2021