mirror of
https://github.com/italicsjenga/winit-sonoma-fix.git
synced 2024-12-26 07:11:31 +11:00
26 lines
526 B
Rust
26 lines
526 B
Rust
|
#![cfg(any(target_os = "android"))]
|
||
|
|
||
|
use std::os::raw::c_void;
|
||
|
use Window;
|
||
|
use WindowBuilder;
|
||
|
|
||
|
/// Additional methods on `Window` that are specific to Android.
|
||
|
pub trait WindowExt {
|
||
|
fn get_native_window(&self) -> *const c_void;
|
||
|
}
|
||
|
|
||
|
impl WindowExt for Window {
|
||
|
#[inline]
|
||
|
fn get_native_window(&self) -> *const c_void {
|
||
|
self.window.get_native_window()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
/// Additional methods on `WindowBuilder` that are specific to Android.
|
||
|
pub trait WindowBuilderExt {
|
||
|
|
||
|
}
|
||
|
|
||
|
impl WindowBuilderExt for WindowBuilder {
|
||
|
}
|