Struct winit::platform_impl::platform::wayland::seat::pointer::WinitPointer
source · pub struct WinitPointer {
pointer: ThemedPointer,
pointer_constraints: Option<Attached<ZwpPointerConstraintsV1>>,
confined_pointer: Weak<RefCell<Option<ZwpConfinedPointerV1>>>,
locked_pointer: Weak<RefCell<Option<ZwpLockedPointerV1>>>,
latest_serial: Rc<Cell<u32>>,
latest_enter_serial: Rc<Cell<u32>>,
seat: WlSeat,
}
Expand description
A proxy to Wayland pointer, which serves requests from a WindowHandle
.
Fields§
§pointer: ThemedPointer
§pointer_constraints: Option<Attached<ZwpPointerConstraintsV1>>
Create confined pointers.
confined_pointer: Weak<RefCell<Option<ZwpConfinedPointerV1>>>
Cursor to handle confine requests.
locked_pointer: Weak<RefCell<Option<ZwpLockedPointerV1>>>
Cursor to handle locked requests.
latest_serial: Rc<Cell<u32>>
Latest observed serial in pointer events. used by Window::start_interactive_move()
latest_enter_serial: Rc<Cell<u32>>
Latest observed serial in pointer enter events. used by Window::set_cursor()
seat: WlSeat
Seat.
Implementations§
source§impl WinitPointer
impl WinitPointer
sourcepub fn set_cursor(&self, cursor_icon: Option<CursorIcon>)
pub fn set_cursor(&self, cursor_icon: Option<CursorIcon>)
Set the cursor icon.
Providing None
will hide the cursor.
pub fn lock(&self, surface: &WlSurface)
pub fn unlock(&self)
pub fn set_cursor_position(&self, surface_x: u32, surface_y: u32)
pub fn drag_window(&self, window: &Window<AdwaitaFrame>)
Trait Implementations§
source§impl PartialEq<WinitPointer> for WinitPointer
impl PartialEq<WinitPointer> for WinitPointer
impl Eq for WinitPointer
Auto Trait Implementations§
impl !RefUnwindSafe for WinitPointer
impl !Send for WinitPointer
impl !Sync for WinitPointer
impl Unpin for WinitPointer
impl !UnwindSafe for WinitPointer
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