Struct neko::prelude::ShellState
[−]
pub struct ShellState { /* fields omitted */ }
Methods
impl ShellState
fn new(repeat: Option<i64>, interval: Option<i64>) -> ShellState
The constructor method new
returns a empty ShellState.
fn set_input_keyown(&mut self, key: char)
fn set_repeat(&mut self, repeat: i64)
The mutator method set_repeat
change the time limit of repetition.
fn set_interval(&mut self, interval: i64)
The mutator method set_interval
change the interval.
fn set_idle(&mut self, entry: Option<()>)
The mutator method set_idle
update the idle event status.
fn set_input(&mut self, out_screen: &mut Display, down: Option<Control>)
The mutator method set_input
update the in_text
and save the old in_text
to in_text_past
.
fn set_output(&mut self, out_screen: &mut Display, entry: Option<(Out, usize)>)
The mutator method set_output
update the both out_text
and out_screen
variable.
fn set_task(&mut self, task: Option<(i32, [u8; 32])>)
The mutator method set_task
updates the task event.
fn is_idle(&self) -> Option<()>
The accessor method is_idle
returns the Idle event.
fn is_input_keydown(&self) -> Option<Key>
The accessor method is_input_keydown
returns the pressed Key event.
fn is_input_keyrepeat(&self) -> Option<u64>
The accessor method is_input_keyrepeat
returns the number's repetition
of the Key.
fn is_input_keyinterval(&self) -> Option<i64>
The accessor method is_input_keyinterval
returns the number's of repetition
between a range of the interval.
fn is_input_mouse(&self) -> Option<Mouse>
The accessor method is_input_mouse
returns the pressed Mouse event.
fn is_input_slice(&self) -> Option<&[u8]>
The accessor method is_in_slice
returns the bytes for a Input event.
fn is_output_last(&self) -> Option<&[u8]>
The accessor method is_output_last
returns the Output text event.
fn is_output_screen(&self) -> Option<()>
The accessor method is_output_screen
returns the Output screen event.
fn is_task(&self) -> Option<&(i32, [u8; 32])>
The mutator method set_task
updates the task event.
fn is_resized(&self) -> Option<Winszed>
fn update_from(&mut self, out_screen: &mut Display, event: DeviceState)
The method with_device
updates the state from
the event DeviceState interface.
Trait Implementations
impl Copy for ShellState
impl Debug for ShellState
impl Default for ShellState
fn default() -> ShellState
Returns the "default value" for a type. Read more
impl Clone for ShellState
fn clone(&self) -> ShellState
Returns a copy of the value. Read more
fn clone_from(&mut self, source: &Self)
1.0.0
Performs copy-assignment from source
. Read more