Struct libnotcurses_sys::ffi::ncinput [−][src]
#[repr(C)]pub struct ncinput { pub id: u32, pub y: c_int, pub x: c_int, pub alt: bool, pub shift: bool, pub ctrl: bool, pub seqnum: u64, }
Expand description
An input event. Cell coordinates are currently defined only for mouse events.
Fields
id: u32identifier. Unicode codepoint or synthesized NCKEY event
y: c_inty cell coordinate of event, -1 for undefined
x: c_intx cell coordinate of event, -1 for undefined
alt: boolwas alt held?
shift: boolwas shift held?
ctrl: boolwas ctrl held?
seqnum: u64input event number
Implementations
New NcInput.
New NcInput with shift key.
Trait Implementations
This method returns an ordering between self and other values if one exists. Read more
This method tests less than (for self and other) and is used by the < operator. Read more
This method tests less than or equal to (for self and other) and is used by the <=
operator. Read more
This method tests greater than (for self and other) and is used by the > operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for ncinput
impl UnwindSafe for ncinput
Blanket Implementations
Mutably borrows from an owned value. Read more