pub struct SlotFrame<'k> {
pub key: &'k str,
pub rect: Rect,
pub gestures: Vec<Gesture>,
pub pointer: Option<(f64, f64)>,
pub clicked: bool,
pub pressed: Option<(f64, f64)>,
pub wheel: (f64, f64),
}Expand description
One custom-paint slot as the host paints it this frame (DomBuilder::paint_slots,
paint_slot).
Fields§
§key: &'k strThe slot key (uzor::ui::dom::El::slot / uzor::ui::dom::El::paint_slot).
rect: RectThe content box to paint into (window coordinates); painting is clipped to it and to the element’s scroll containers.
gestures: Vec<Gesture>The gestures of the fingers the slot captured since the last frame, oldest
first, in window coordinates (SlotFrame::local maps a point into the slot).
pointer: Option<(f64, f64)>The pointer (mouse, or the finger on the slot) over the slot, z-order safe:
None under a popover or a sheet.
clicked: boolThe slot was clicked or tapped this frame.
pressed: Option<(f64, f64)>The pointer while a mouse button holds the slot (a mouse drag), None otherwise.
Fingers never set it: their drags are SlotFrame::gestures.
wheel: (f64, f64)Mouse-wheel / trackpad scroll over the slot this frame, (dx, dy); a finger’s
scroll is not reported here.