rofd-editor 0.1.5

Annotation command/transaction layer for the rofd OFD editor.
Documentation
1
2
3
4
5
6
7
8
9
10
11
use crate::cursor::TextCursor;
use crate::selection::AnnotationSelection;
use crate::steps::step_trait::Step;

pub struct Transaction {
    pub steps: Vec<Box<dyn Step>>,
    pub selection_before: AnnotationSelection,
    pub selection_after: AnnotationSelection,
    pub text_cursor_before: Option<TextCursor>,
    pub text_cursor_after: Option<TextCursor>,
}