Add simple IME handling to the terminal

This commit is contained in:
Max Brunsfeld
2022-07-21 21:32:58 -07:00
parent 6d264502b2
commit 0185b4fef4
5 changed files with 25 additions and 50 deletions
+7
View File
@@ -1713,6 +1713,13 @@ impl Cursor {
}
}
pub fn bounding_rect(&self, origin: Vector2F) -> RectF {
RectF::new(
self.origin + origin,
vec2f(self.block_width, self.line_height),
)
}
pub fn paint(&self, origin: Vector2F, cx: &mut PaintContext) {
let bounds = match self.shape {
CursorShape::Bar => RectF::new(self.origin + origin, vec2f(2.0, self.line_height)),