euv_core/system/text_edit/enum.rs
1/// Classification of a text buffer mutation used to decide Undo coalescing boundaries.
2#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
3pub enum TextEditKind {
4 /// Forward character or string insertion.
5 #[default]
6 Insert,
7 /// Backward deletion (Backspace).
8 DeleteBackward,
9 /// Forward deletion (Delete).
10 DeleteForward,
11 /// Explicit selection replacement, paste, or bulk edit (never coalesced).
12 Replace,
13 /// Committed IME composition string (always recorded as a discrete undo step).
14 ImeCommit,
15}
16
17/// Visual underline decoration style applied to an active IME preedit clause span.
18#[derive(Clone, Copy, Debug, Default, Eq, Hash, Ord, PartialEq, PartialOrd)]
19pub enum ImeUnderlineStyle {
20 /// No underline decoration.
21 #[default]
22 None,
23 /// Thin underline marking unconverted or secondary preedit clauses.
24 Thin,
25 /// Thick underline highlighting the currently selected IME conversion clause.
26 Thick,
27 /// Dashed underline denoting tentative phonetic composition.
28 Dashed,
29}