WIP
This commit is contained in:
parent
2ea0b89e7c
commit
42ac4bf9fc
3 changed files with 27 additions and 19 deletions
|
@ -92,13 +92,13 @@ pub trait Dispatcher: Send + Sync {
|
|||
pub trait InputHandler {
|
||||
fn select(&mut self, range: Range<usize>);
|
||||
fn selected_range(&self) -> Option<Range<usize>>;
|
||||
fn set_composition(
|
||||
fn edit(&mut self, replacement_range: Option<Range<usize>>, text: &str) -> bool;
|
||||
fn compose(
|
||||
&mut self,
|
||||
marked_text: &str,
|
||||
new_selected_range: Option<Range<usize>>,
|
||||
replacement_range: Option<Range<usize>>,
|
||||
);
|
||||
fn commit(&mut self, text: &str, replacement_range: Option<Range<usize>>);
|
||||
fn cancel_composition(&mut self);
|
||||
fn finish_composition(&mut self);
|
||||
fn unmark(&mut self);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue