#[repr(C)]pub struct KeyboardSeat {
pub seat_id: u64,
pub state: KeyboardState,
}Expand description
One NON-primary keyboard seat’s state (9b-ii-a-i): the per-seat twin of
PointerSeat. X11 MPX pairs each master keyboard with a master
pointer, and a Wayland wl_seat carries both; the seat id is the same
number PointerSeat::seat_id uses for that pairing, so a keystroke and
a click from the same person carry the same seat. The primary seat’s
keyboard is FullWindowState::keyboard_state, never listed here.
FOCUS IS SHARED: azul has one focused node, so every seat’s keys reach it (MPX’s per-keyboard focus is not modelled - 9b-ii-a-i-d).
Fields§
§seat_id: u64The seat’s identity - the same id as the seat’s pointer. Never
PRIMARY_POINTER_SEAT.
state: KeyboardStateThe seat’s own keyboard state.
Trait Implementations§
Source§impl Clone for KeyboardSeat
impl Clone for KeyboardSeat
Source§fn clone(&self) -> KeyboardSeat
fn clone(&self) -> KeyboardSeat
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for KeyboardSeat
impl Debug for KeyboardSeat
impl Eq for KeyboardSeat
Source§impl Extend<KeyboardSeat> for KeyboardSeatVec
impl Extend<KeyboardSeat> for KeyboardSeatVec
Source§fn extend<T: IntoIterator<Item = KeyboardSeat>>(&mut self, iter: T)
fn extend<T: IntoIterator<Item = KeyboardSeat>>(&mut self, iter: T)
Extends a collection with the contents of an iterator. Read more
Source§fn extend_one(&mut self, item: T)
fn extend_one(&mut self, item: T)
🔬This is a nightly-only experimental API. (
extend_one)Extends a collection with exactly one element.
Source§fn extend_reserve(&mut self, additional: usize)
fn extend_reserve(&mut self, additional: usize)
🔬This is a nightly-only experimental API. (
extend_one)Reserves capacity in a collection for the given number of additional elements. Read more
Source§impl FromIterator<KeyboardSeat> for KeyboardSeatVec
impl FromIterator<KeyboardSeat> for KeyboardSeatVec
Source§fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = KeyboardSeat>,
fn from_iter<T>(iter: T) -> Selfwhere
T: IntoIterator<Item = KeyboardSeat>,
Creates a value from an iterator. Read more
Source§impl PartialEq for KeyboardSeat
impl PartialEq for KeyboardSeat
impl StructuralPartialEq for KeyboardSeat
Auto Trait Implementations§
impl Freeze for KeyboardSeat
impl RefUnwindSafe for KeyboardSeat
impl Send for KeyboardSeat
impl Sync for KeyboardSeat
impl Unpin for KeyboardSeat
impl UnsafeUnpin for KeyboardSeat
impl UnwindSafe for KeyboardSeat
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