Function callback_placement

Source
pub fn callback_placement<L: Layoutable<C>, C: PixelColor, F: FnMut(Rectangle)>(
    callback: F,
    layoutable: L,
) -> impl Layoutable<C>
Expand description

Get a callback from the layout process about the final placement of the containing element. So you can map a touched point onto the correct element

ยงArguments

  • callback: Callback processing the information about the latest placement of the containing layoutable
  • layoutable: Element to be watched

returns: impl Layoutable+Sized