[−][src]Struct flutterbug::event::key_event::KeyEvent
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]
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>
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]
&self,
ic: &dyn GenericInputContext
) -> Result<(Option<KeySym>, Option<String>), FlutterbugError>
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]
fn kind(&self) -> EventType
[src]
fn serial(&self) -> c_ulong
[src]
unsafe fn display(&self) -> NonNull<Display>
[src]
fn window(&self) -> Window
[src]
fn from_send_event(&self) -> bool
[src]
fn as_anyevent(&self) -> AnyEvent
[src]
impl DerivesEvent<XKeyEvent> for KeyEvent
[src]
fn from_evstruct(ev: XKeyEvent) -> Result<Self, FlutterbugError>
[src]
fn inner(&self) -> Result<XKeyEvent, FlutterbugError>
[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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,