[][src]Struct flutterbug::event::key_event::KeyEvent

pub struct KeyEvent {
    pub state: c_uint,
    // some fields omitted
}

Fields

state: c_uint

Implementations

impl KeyEvent[src]

pub fn root(&self) -> Window[src]

pub fn subwindow(&self) -> Window[src]

pub fn time(&self) -> Time[src]

pub fn x(&self) -> i32[src]

pub fn y(&self) -> i32[src]

pub fn x_root(&self) -> u32[src]

pub fn y_root(&self) -> u32[src]

pub fn state(&self) -> c_uint[src]

pub fn keycode(&self) -> c_uint[src]

pub fn same_screen(&self) -> Bool[src]

pub fn new(
    kind: EventType,
    serial: c_ulong,
    display: &dyn GenericDisplay,
    sender_window: &Window,
    fse: bool,
    root: Window,
    subwindow: Window,
    time: Time,
    x: i32,
    y: i32,
    x_root: u32,
    y_root: u32,
    state: c_uint,
    keycode: c_uint,
    same_screen: Bool
) -> Result<Self, FlutterbugError>
[src]

impl KeyEvent[src]

pub fn has_function(&self, f: FunctionKeys) -> bool[src]

Tell if a function is in the state.

pub fn set_function(&mut self, f: FunctionKeys, is_in: bool)[src]

Add or remove a function key.

pub fn lookup(&self) -> Result<(KeySym, String), FlutterbugError>[src]

Lookup the keysym and text that this symbol corresponds to.

pub fn lookup_utf8(
    &self,
    ic: &dyn GenericInputContext
) -> Result<(Option<KeySym>, Option<String>), FlutterbugError>
[src]

Lookup the keysym and text that this symbols corresponds to, with full UTF-8 support.

Trait Implementations

impl Clone for KeyEvent[src]

impl Debug for KeyEvent[src]

impl DerivesAnEvent for KeyEvent[src]

impl DerivesEvent<XKeyEvent> for KeyEvent[src]

Auto Trait Implementations

impl RefUnwindSafe for KeyEvent

impl !Send for KeyEvent

impl !Sync for KeyEvent

impl Unpin for KeyEvent

impl UnwindSafe for KeyEvent

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.