pub fn report<T, R: RoleKind>(
operation: &mut dyn Operation<T>,
bounds: Rectangle,
build: impl FnOnce() -> Annotation<'static, R>,
)Expand description
Reports an annotation for a widget at bounds to whatever operation is running.
It asks first through Operation::custom and builds the annotation only when a recorder
says yes, so every other operation costs one ignored call. Call it from operate before
traversing the widget’s children. With the semantics feature off it does nothing and
build is never called.