pub struct SlotFrame<'k> {
pub key: &'k str,
pub rect: Rect,
pub gestures: Vec<Gesture>,
pub pointer: Option<(f64, f64)>,
pub clicked: bool,
}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.
Implementations§
Trait Implementations§
Auto Trait Implementations§
impl<'k> Forget for SlotFrame<'k>
impl<'k> Freeze for SlotFrame<'k>
impl<'k> Move for SlotFrame<'k>
impl<'k> RefUnwindSafe for SlotFrame<'k>
impl<'k> Send for SlotFrame<'k>
impl<'k> Sync for SlotFrame<'k>
impl<'k> Unpin for SlotFrame<'k>
impl<'k> UnsafeUnpin for SlotFrame<'k>
impl<'k> UnwindSafe for SlotFrame<'k>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more