Enum win32console::structs::input_record::InputRecord [−][src]
pub enum InputRecord {
KeyEvent(KeyEventRecord),
MouseEvent(MouseEventRecord),
WindowBufferSizeEvent(WindowBufferSizeRecord),
FocusEvent(FocusEventRecord),
MenuEvent(MenuEventRecord),
}
Expand description
Represents an INPUT_RECORD
which describes an input event in the console input buffer.
link: https://docs.microsoft.com/en-us/windows/console/input-record-str
Variants
KeyEvent(KeyEventRecord)
The Event member contains a KEY_EVENT_RECORD
structure with
information about a keyboard event.
Tuple Fields of KeyEvent
MouseEvent(MouseEventRecord)
The Event member contains a MOUSE_EVENT_RECORD
structure with
information about a mouse movement or button press event.
Tuple Fields of MouseEvent
WindowBufferSizeEvent(WindowBufferSizeRecord)
The Event member contains a WINDOW_BUFFER_SIZE_RECORD
structure with
information about the new size of the console screen buffer.
Tuple Fields of WindowBufferSizeEvent
FocusEvent(FocusEventRecord)
The Event member contains a FOCUS_EVENT_RECORD
structure. These
events are used internally and should be ignored.
Tuple Fields of FocusEvent
MenuEvent(MenuEventRecord)
The Event member contains a MENU_EVENT_RECORD
structure. These
events are used internally and should be ignored.
Tuple Fields of MenuEvent
Trait Implementations
Performs the conversion.
Performs the conversion.
This method tests for self
and other
values to be equal, and is used
by ==
. Read more
This method tests for !=
.
Auto Trait Implementations
impl RefUnwindSafe for InputRecord
impl Send for InputRecord
impl Sync for InputRecord
impl Unpin for InputRecord
impl UnwindSafe for InputRecord
Blanket Implementations
Mutably borrows from an owned value. Read more