Skip to main content

RectCallback

Type Alias RectCallback 

Source
pub type RectCallback = Rc<dyn Fn(&App) -> Rect>;
Expand description

Signature for the callback used by ink effects to obtain the rectangle for the effect.

Used by InkHighlight and InkSplash, for example.

Aliased Typeยง

pub struct RectCallback { /* private fields */ }