pub struct App { /* private fields */ }Expand description
Main application - thin wrapper around state machine
Implementations§
Trait Implementations§
Source§impl CompositorHandler for App
impl CompositorHandler for App
Source§fn scale_factor_changed(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_surface: &WlSurface,
new_factor: i32,
)
fn scale_factor_changed( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _surface: &WlSurface, new_factor: i32, )
The surface has either been moved into or out of an output and the output has a different scale factor.
Source§fn transform_changed(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_surface: &WlSurface,
_new_transform: Transform,
)
fn transform_changed( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _surface: &WlSurface, _new_transform: Transform, )
The surface has either been moved into or out of an output and the output has different transform.
Source§fn frame(
&mut self,
_conn: &Connection,
qh: &QueueHandle<Self>,
_surface: &WlSurface,
_time: u32,
)
fn frame( &mut self, _conn: &Connection, qh: &QueueHandle<Self>, _surface: &WlSurface, _time: u32, )
A frame callback has been completed. Read more
Source§fn surface_enter(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_surface: &WlSurface,
_output: &WlOutput,
)
fn surface_enter( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _surface: &WlSurface, _output: &WlOutput, )
The surface has entered an output.
Source§fn surface_leave(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_surface: &WlSurface,
_output: &WlOutput,
)
fn surface_leave( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _surface: &WlSurface, _output: &WlOutput, )
The surface has left an output.
Source§impl Dispatch<WlCallback, WlSurface> for App
impl Dispatch<WlCallback, WlSurface> for App
Source§impl Dispatch<WlCompositor, GlobalData> for App
impl Dispatch<WlCompositor, GlobalData> for App
Source§impl Dispatch<WlKeyboard, KeyboardData<App>> for App
impl Dispatch<WlKeyboard, KeyboardData<App>> for App
Source§impl Dispatch<WlOutput, OutputData> for App
impl Dispatch<WlOutput, OutputData> for App
Source§impl Dispatch<WlRegistry, GlobalListContents> for App
impl Dispatch<WlRegistry, GlobalListContents> for App
Source§impl Dispatch<WlSeat, SeatData> for App
impl Dispatch<WlSeat, SeatData> for App
Source§impl Dispatch<WlShm, GlobalData> for App
impl Dispatch<WlShm, GlobalData> for App
Source§impl Dispatch<WlSurface, SurfaceData> for App
impl Dispatch<WlSurface, SurfaceData> for App
Source§impl Dispatch<ZwlrLayerShellV1, GlobalData> for App
impl Dispatch<ZwlrLayerShellV1, GlobalData> for App
Source§impl Dispatch<ZwlrLayerSurfaceV1, LayerSurfaceData> for App
impl Dispatch<ZwlrLayerSurfaceV1, LayerSurfaceData> for App
Source§impl Dispatch<ZxdgOutputManagerV1, GlobalData> for App
impl Dispatch<ZxdgOutputManagerV1, GlobalData> for App
Source§impl Dispatch<ZxdgOutputV1, OutputData> for App
impl Dispatch<ZxdgOutputV1, OutputData> for App
Source§impl KeyboardHandler for App
impl KeyboardHandler for App
Source§fn enter(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_keyboard: &WlKeyboard,
_surface: &WlSurface,
_serial: u32,
raw: &[u32],
keysyms: &[Keysym],
)
fn enter( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _keyboard: &WlKeyboard, _surface: &WlSurface, _serial: u32, raw: &[u32], keysyms: &[Keysym], )
The keyboard has entered a surface. Read more
Source§fn leave(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_keyboard: &WlKeyboard,
_surface: &WlSurface,
_serial: u32,
)
fn leave( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _keyboard: &WlKeyboard, _surface: &WlSurface, _serial: u32, )
The keyboard has left a surface. Read more
Source§fn press_key(
&mut self,
_conn: &Connection,
qh: &QueueHandle<Self>,
_keyboard: &WlKeyboard,
_serial: u32,
event: KeyEvent,
)
fn press_key( &mut self, _conn: &Connection, qh: &QueueHandle<Self>, _keyboard: &WlKeyboard, _serial: u32, event: KeyEvent, )
A key has been pressed on the keyboard. Read more
Source§fn release_key(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_keyboard: &WlKeyboard,
_serial: u32,
_event: KeyEvent,
)
fn release_key( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _keyboard: &WlKeyboard, _serial: u32, _event: KeyEvent, )
A key has been released. Read more
Source§fn repeat_key(
&mut self,
_conn: &Connection,
qh: &QueueHandle<Self>,
_keyboard: &WlKeyboard,
_serial: u32,
event: KeyEvent,
)
fn repeat_key( &mut self, _conn: &Connection, qh: &QueueHandle<Self>, _keyboard: &WlKeyboard, _serial: u32, event: KeyEvent, )
A key has been previously pressed and is now repeating. Read more
Source§fn update_modifiers(
&mut self,
_conn: &Connection,
qh: &QueueHandle<Self>,
_keyboard: &WlKeyboard,
_serial: u32,
modifiers: Modifiers,
_raw_modifiers: RawModifiers,
_layout: u32,
)
fn update_modifiers( &mut self, _conn: &Connection, qh: &QueueHandle<Self>, _keyboard: &WlKeyboard, _serial: u32, modifiers: Modifiers, _raw_modifiers: RawModifiers, _layout: u32, )
Keyboard modifiers have been updated. Read more
§fn update_repeat_info(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_keyboard: &WlKeyboard,
_info: RepeatInfo,
)
fn update_repeat_info( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _keyboard: &WlKeyboard, _info: RepeatInfo, )
The keyboard has updated the rate and delay between repeating key inputs. Read more
§fn update_keymap(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_keyboard: &WlKeyboard,
_keymap: Keymap<'_>,
)
fn update_keymap( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _keyboard: &WlKeyboard, _keymap: Keymap<'_>, )
Keyboard keymap has been updated. Read more
Source§impl LayerShellHandler for App
impl LayerShellHandler for App
Source§impl OutputHandler for App
impl OutputHandler for App
fn output_state(&mut self) -> &mut OutputState
Source§fn new_output(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_output: WlOutput,
)
fn new_output( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _output: WlOutput, )
A new output has been advertised.
Source§fn update_output(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_output: WlOutput,
)
fn update_output( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _output: WlOutput, )
An existing output has changed.
Source§fn output_destroyed(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_output: WlOutput,
)
fn output_destroyed( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _output: WlOutput, )
An output is no longer advertised. Read more
Source§impl ProvidesRegistryState for App
impl ProvidesRegistryState for App
Source§fn registry(&mut self) -> &mut RegistryState
fn registry(&mut self) -> &mut RegistryState
Returns a mutable reference to the registry state.
Source§fn runtime_add_global(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
name: u32,
interface: &str,
version: u32,
)
fn runtime_add_global( &mut self, conn: &Connection, qh: &QueueHandle<Self>, name: u32, interface: &str, version: u32, )
Called when a new global has been advertised by the compositor. Read more
Source§fn runtime_remove_global(
&mut self,
conn: &Connection,
qh: &QueueHandle<Self>,
name: u32,
interface: &str,
)
fn runtime_remove_global( &mut self, conn: &Connection, qh: &QueueHandle<Self>, name: u32, interface: &str, )
Called when a global has been destroyed by the compositor.
Source§impl SeatHandler for App
impl SeatHandler for App
fn seat_state(&mut self) -> &mut SeatState
Source§fn new_seat(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_seat: WlSeat,
)
fn new_seat( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _seat: WlSeat, )
A new seat has been created. Read more
Source§fn new_capability(
&mut self,
_conn: &Connection,
qh: &QueueHandle<Self>,
seat: WlSeat,
capability: Capability,
)
fn new_capability( &mut self, _conn: &Connection, qh: &QueueHandle<Self>, seat: WlSeat, capability: Capability, )
A new capability is available on the seat. Read more
Source§fn remove_capability(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_seat: WlSeat,
_capability: Capability,
)
fn remove_capability( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _seat: WlSeat, _capability: Capability, )
A capability has been removed from the seat. Read more
Source§fn remove_seat(
&mut self,
_conn: &Connection,
_qh: &QueueHandle<Self>,
_seat: WlSeat,
)
fn remove_seat( &mut self, _conn: &Connection, _qh: &QueueHandle<Self>, _seat: WlSeat, )
A seat has been removed. Read more
Auto Trait Implementations§
impl Freeze for App
impl !RefUnwindSafe for App
impl Send for App
impl !Sync for App
impl Unpin for App
impl !UnwindSafe for App
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
§impl<T> Downcast for Twhere
T: Any,
impl<T> Downcast for Twhere
T: Any,
§fn into_any(self: Box<T>) -> Box<dyn Any>
fn into_any(self: Box<T>) -> Box<dyn Any>
Convert
Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait.§fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
fn into_any_rc(self: Rc<T>) -> Rc<dyn Any>
Convert
Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait.§fn as_any(&self) -> &(dyn Any + 'static)
fn as_any(&self) -> &(dyn Any + 'static)
Convert
&Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s.§fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
fn as_any_mut(&mut self) -> &mut (dyn Any + 'static)
Convert
&mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s.