Decouple mouse::Interaction from UserInterface::draw
This commit is contained in:
parent
87afd5b79d
commit
301aac794b
6 changed files with 171 additions and 187 deletions
|
|
@ -246,6 +246,15 @@ where
|
|||
}
|
||||
}
|
||||
|
||||
pub fn update_mouse(&mut self, interaction: mouse::Interaction) {
|
||||
if interaction != self.mouse_interaction {
|
||||
self.raw
|
||||
.set_cursor(conversion::mouse_interaction(interaction));
|
||||
|
||||
self.mouse_interaction = interaction;
|
||||
}
|
||||
}
|
||||
|
||||
pub fn draw_preedit(&mut self) {
|
||||
if let Some(preedit) = &self.preedit {
|
||||
preedit.draw(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue