Get a widget position

There’s a way to get a widget position? I’d like a solution similar to the one provided by the Responsive widget but for the position.

I suspect a wrapping the widget in a Container, setting the ID of the container, and then using container::visible_bounds might work

Thanks, right now I have implemented a copy of a button that sends this information in the on_press callback but I will also explore this solution