[][src]Struct simply_wayland::wl::core::wl_keyboard_listener

#[repr(C)]
pub struct wl_keyboard_listener {
    pub keymap: Option<unsafe extern "C" fn(data: *mut c_void, wl_keyboard: *mut wl_keyboard, format: u32, fd: i32, size: u32)>,
    pub enter: Option<unsafe extern "C" fn(data: *mut c_void, wl_keyboard: *mut wl_keyboard, serial: u32, surface: *mut wl_surface, keys: *mut wl_array)>,
    pub leave: Option<unsafe extern "C" fn(data: *mut c_void, wl_keyboard: *mut wl_keyboard, serial: u32, surface: *mut wl_surface)>,
    pub key: Option<unsafe extern "C" fn(data: *mut c_void, wl_keyboard: *mut wl_keyboard, serial: u32, time: u32, key: u32, state: u32)>,
    pub modifiers: Option<unsafe extern "C" fn(data: *mut c_void, wl_keyboard: *mut wl_keyboard, serial: u32, mods_depressed: u32, mods_latched: u32, mods_locked: u32, group: u32)>,
    pub repeat_info: Option<unsafe extern "C" fn(data: *mut c_void, wl_keyboard: *mut wl_keyboard, rate: i32, delay: i32)>,
}

Fields

keymap: Option<unsafe extern "C" fn(data: *mut c_void, wl_keyboard: *mut wl_keyboard, format: u32, fd: i32, size: u32)>enter: Option<unsafe extern "C" fn(data: *mut c_void, wl_keyboard: *mut wl_keyboard, serial: u32, surface: *mut wl_surface, keys: *mut wl_array)>leave: Option<unsafe extern "C" fn(data: *mut c_void, wl_keyboard: *mut wl_keyboard, serial: u32, surface: *mut wl_surface)>key: Option<unsafe extern "C" fn(data: *mut c_void, wl_keyboard: *mut wl_keyboard, serial: u32, time: u32, key: u32, state: u32)>modifiers: Option<unsafe extern "C" fn(data: *mut c_void, wl_keyboard: *mut wl_keyboard, serial: u32, mods_depressed: u32, mods_latched: u32, mods_locked: u32, group: u32)>repeat_info: Option<unsafe extern "C" fn(data: *mut c_void, wl_keyboard: *mut wl_keyboard, rate: i32, delay: i32)>

Trait Implementations

impl Clone for wl_keyboard_listener[src]

impl Copy for wl_keyboard_listener[src]

impl Debug for wl_keyboard_listener[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.