Implement methods to query the contents of a TextEditor
This commit is contained in:
parent
f7fc13d98c
commit
c6d0443627
4 changed files with 107 additions and 0 deletions
|
|
@ -125,6 +125,18 @@ impl text::Editor for () {
|
|||
text::editor::Cursor::Caret(Point::ORIGIN)
|
||||
}
|
||||
|
||||
fn selection(&self) -> Option<String> {
|
||||
None
|
||||
}
|
||||
|
||||
fn line(&self, _index: usize) -> Option<&str> {
|
||||
None
|
||||
}
|
||||
|
||||
fn line_count(&self) -> usize {
|
||||
0
|
||||
}
|
||||
|
||||
fn perform(&mut self, _action: text::editor::Action) {}
|
||||
|
||||
fn bounds(&self) -> Size {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue