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: u32
identifier. Unicode codepoint or synthesized NCKEY event
y: c_int
y cell coordinate of event, -1 for undefined
x: c_int
x cell coordinate of event, -1 for undefined
alt: bool
was alt held?
shift: bool
was shift held?
ctrl: bool
was ctrl held?
seqnum: u64
input 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