1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-29 21:00:03 -04:00

Feat: implement IME preedit visuals for native platforms

This commit is contained in:
umajho
2026-04-08 17:14:05 +08:00
parent 1fdc5c0775
commit 41b877f3f5
7 changed files with 241 additions and 22 deletions

View File

@@ -69,6 +69,13 @@ impl std::ops::SubAssign<usize> for CCursor {
}
}
impl PartialOrd for CCursor {
#[inline]
fn partial_cmp(&self, other: &Self) -> Option<std::cmp::Ordering> {
self.index.partial_cmp(&other.index)
}
}
/// Row/column cursor.
///
/// This refers to rows and columns in layout terms--text wrapping creates multiple rows.