[go: up one dir, main page]

DisplayExtManual

Trait DisplayExtManual 

Source
pub trait DisplayExtManual: IsA<Display> + 'static {
    // Provided methods
    fn translate_key(
        &self,
        keycode: u32,
        state: ModifierType,
        group: i32,
    ) -> Option<(Key, i32, i32, ModifierType)> { ... }
    fn get_setting(&self, name: impl IntoGStr) -> Option<Value> { ... }
    fn map_keyval(&self, keyval: Key) -> Option<Vec<KeymapKey>> { ... }
    fn map_keycode(&self, keycode: u32) -> Option<Vec<(KeymapKey, Key)>> { ... }
    fn backend(&self) -> Backend { ... }
}
Expand description

Trait containing manually implemented methods of Display.

Provided Methods§

Source

fn translate_key( &self, keycode: u32, state: ModifierType, group: i32, ) -> Option<(Key, i32, i32, ModifierType)>

Source

fn get_setting(&self, name: impl IntoGStr) -> Option<Value>

Source

fn map_keyval(&self, keyval: Key) -> Option<Vec<KeymapKey>>

Source

fn map_keycode(&self, keycode: u32) -> Option<Vec<(KeymapKey, Key)>>

Source

fn backend(&self) -> Backend

Get the currently used display backend

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§