Skip to main content

TooltipPositionDelegate

Type Alias TooltipPositionDelegate 

Source
pub type TooltipPositionDelegate = Rc<dyn Fn(TooltipPositionContext) -> Offset>;
Expand description

Signature for computing the position of a tooltip.

The TooltipPositionContext contains all the necessary information for positioning the tooltip, including the target location, sizes, offset, and positioning preference.

Returns the offset from the top left of the overlay to the top left of the tooltip.

See also:

Aliased Typeยง

pub struct TooltipPositionDelegate { /* private fields */ }