use {cosmic_text::AttrsOwned, derive_more::From};
#[derive(Clone, Copy, Debug, Eq, PartialEq, From)]
pub enum Motion {
DocumentStart,
DocumentEnd,
Other(cosmic_text::Motion),
}
#[derive(Clone, Debug, Eq, PartialEq)]
pub enum Action {
Motion {
motion: Motion,
select: bool,
},
ClearSelection,
SelectAll,
Insert(char),
Enter,
Backspace,
DeleteStartOfWord,
Delete,
DeleteEndOfWord,
Indent,
Unindent,
Click {
x: i32,
y: i32,
select: bool,
},
DoubleClick {
x: i32,
y: i32,
},
TripleClick {
x: i32,
y: i32,
},
Drag {
x: i32,
y: i32,
},
Scroll {
lines: i32,
},
SetPreedit {
preedit: String,
cursor: Option<(usize, usize)>,
attrs: Option<AttrsOwned>,
},
}