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