Added redraw request handling to widget events.
This commit is contained in:
parent
91fca024b6
commit
65f4ff060a
2 changed files with 8 additions and 4 deletions
|
|
@ -5,10 +5,7 @@ use crate::core::mouse::{Cursor, Interaction};
|
|||
use crate::core::renderer::Style;
|
||||
use crate::core::widget::tree::{State, Tag};
|
||||
use crate::core::widget::{tree, Tree};
|
||||
use crate::core::{
|
||||
self, layout, mouse, widget, Clipboard, Element, Layout, Length, Rectangle,
|
||||
Shell, Size, Widget,
|
||||
};
|
||||
use crate::core::{self, layout, mouse, widget, Clipboard, Element, Layout, Length, Rectangle, Shell, Size, Widget, window};
|
||||
use std::marker::PhantomData;
|
||||
|
||||
mod event;
|
||||
|
|
@ -109,6 +106,9 @@ where
|
|||
Some(Event::Keyboard(keyboard_event))
|
||||
}
|
||||
core::Event::Touch(touch_event) => Some(Event::Touch(touch_event)),
|
||||
core::Event::Window(window::Event::RedrawRequested(instant)) => {
|
||||
Some(Event::RedrawRequested(instant))
|
||||
}
|
||||
_ => None,
|
||||
};
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue