Struct winit::platform_impl::platform::wayland::seat::pointer::data::PointerData
source · pub(super) struct PointerData {
pub surface: Option<WlSurface>,
pub modifiers_state: Rc<RefCell<ModifiersState>>,
pub pointer_constraints: Option<Attached<ZwpPointerConstraintsV1>>,
pub confined_pointer: Rc<RefCell<Option<ZwpConfinedPointerV1>>>,
pub locked_pointer: Rc<RefCell<Option<ZwpLockedPointerV1>>>,
pub latest_serial: Rc<Cell<u32>>,
pub latest_enter_serial: Rc<Cell<u32>>,
pub axis_data: AxisData,
}
Expand description
A data being used by pointer handlers.
Fields§
§surface: Option<WlSurface>
Winit’s surface the pointer is currently over.
modifiers_state: Rc<RefCell<ModifiersState>>
Current modifiers state.
This refers a state of modifiers from WlKeyboard
on
the given seat.
pointer_constraints: Option<Attached<ZwpPointerConstraintsV1>>
Pointer constraints.
confined_pointer: Rc<RefCell<Option<ZwpConfinedPointerV1>>>
§locked_pointer: Rc<RefCell<Option<ZwpLockedPointerV1>>>
§latest_serial: Rc<Cell<u32>>
Latest observed serial in pointer events.
latest_enter_serial: Rc<Cell<u32>>
Latest observed serial in pointer enter events.
axis_data: AxisData
The currently accumulated axis data on a pointer.
Implementations§
source§impl PointerData
impl PointerData
pub fn new( confined_pointer: Rc<RefCell<Option<ZwpConfinedPointerV1>>>, locked_pointer: Rc<RefCell<Option<ZwpLockedPointerV1>>>, pointer_constraints: Option<Attached<ZwpPointerConstraintsV1>>, modifiers_state: Rc<RefCell<ModifiersState>> ) -> Self
Auto Trait Implementations§
impl !RefUnwindSafe for PointerData
impl !Send for PointerData
impl !Sync for PointerData
impl Unpin for PointerData
impl !UnwindSafe for PointerData
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