Update raw-window-handle to v0.5.0
This updates raw-window-handle to v0.5.0.
This commit is contained in:
parent
3e991e13dc
commit
653bc59813
19 changed files with 177 additions and 56 deletions
|
|
@ -17,6 +17,7 @@ use cocoa::{
|
|||
foundation::{NSInteger, NSPoint, NSTimeInterval},
|
||||
};
|
||||
use objc::rc::autoreleasepool;
|
||||
use raw_window_handle::{AppKitDisplayHandle, RawDisplayHandle};
|
||||
|
||||
use crate::{
|
||||
event::Event,
|
||||
|
|
@ -87,6 +88,11 @@ impl<T: 'static> EventLoopWindowTarget<T> {
|
|||
let monitor = monitor::primary_monitor();
|
||||
Some(RootMonitorHandle { inner: monitor })
|
||||
}
|
||||
|
||||
#[inline]
|
||||
pub fn raw_display_handle(&self) -> RawDisplayHandle {
|
||||
RawDisplayHandle::AppKit(AppKitDisplayHandle::empty())
|
||||
}
|
||||
}
|
||||
|
||||
impl<T> EventLoopWindowTarget<T> {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue