Struct libnotcurses_sys::NcKey [−][src]
pub struct NcKey(pub u32);
Expand description
Synthesized input events (any input event we can report that isn’t representative of some Unicode).
This covers both keyboard and mouse events, as well as signals and even window events.
Rather than using one of the Private Use Areas of Unicode, we use the area beyond the 17 65536-entry Planes (1114112).
We round up to 5000 so that it’s trivial to identify synthesized characters. based on their numeric definition here.
This is safe, since we needn’t convert these synthesized characters into UTF8 (they would otherwise require more than four bytes).
Tuple Fields
0: u32
Implementations
Returns a new NcKey
if the provided number falls in the correct range.
Returns the name of the NcKey
the number would be.
Rather than using one of the Private Use Areas of Unicode, we use the area beyond the 17 65536-entry Planes (1114112).
We round up to 5000 so that it’s trivial to identify synthesized characters based on their numeric definition here.
This is safe, since we needn’t convert these synthesized characters into UTF8 (they would otherwise require more than four bytes).
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for NcKey
impl UnwindSafe for NcKey
Blanket Implementations
Mutably borrows from an owned value. Read more