Implement basic IME selection in Preedit overlay
This commit is contained in:
parent
3a35fd6249
commit
c83809adb9
5 changed files with 180 additions and 42 deletions
|
|
@ -270,6 +270,23 @@ pub struct Span<'a, Link = (), Font = crate::Font> {
|
|||
pub strikethrough: bool,
|
||||
}
|
||||
|
||||
impl<Link, Font> Default for Span<'_, Link, Font> {
|
||||
fn default() -> Self {
|
||||
Self {
|
||||
text: Cow::default(),
|
||||
size: None,
|
||||
line_height: None,
|
||||
font: None,
|
||||
color: None,
|
||||
link: None,
|
||||
highlight: None,
|
||||
padding: Padding::default(),
|
||||
underline: false,
|
||||
strikethrough: false,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/// A text highlight.
|
||||
#[derive(Debug, Clone, Copy, PartialEq)]
|
||||
pub struct Highlight {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue