Trait runa_orbiter::shell::Seat
source · pub trait Seat: EventSource<SeatEvent> {
// Required methods
fn capabilities(&self) -> Capability;
fn repeat_info(&self) -> RepeatInfo;
fn keymap(&self) -> &Keymap;
fn name(&self) -> &str;
}
Expand description
Seat
A seat is a set of input output devices attached to a computer. This trait is mainly used by interface implementations to get information about mouse and keyboard devices attached.
This is also an event source, it must emit events when information about the seat changes.
This needs to be implemented by the
ServerContext
.
Required Methods§
sourcefn capabilities(&self) -> Capability
fn capabilities(&self) -> Capability
Get the capabilities of the seat.
Whether the seat has a pointer, keyboard, or touch device attached.
sourcefn repeat_info(&self) -> RepeatInfo
fn repeat_info(&self) -> RepeatInfo
Get the repeat info of the keyboard.