Add interrupting the events loop

This commit is contained in:
Pierre Krieger 2017-01-28 15:09:01 +01:00
parent e7d43174e7
commit 0242daa242
3 changed files with 17 additions and 1 deletions

View file

@ -127,6 +127,11 @@ impl EventsLoop {
{
self.events_loop.run_forever(callback)
}
#[inline]
pub fn interrupt(&self) {
self.events_loop.interrupt()
}
}
/// Object that allows you to build windows.