winit-gtk 0.28.0

Cross-platform window creation library.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use objc2::foundation::{CGSize, NSObject};
use objc2::{extern_class, extern_methods, ClassType};

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub(crate) struct UIScreenMode;

    unsafe impl ClassType for UIScreenMode {
        type Super = NSObject;
    }
);

extern_methods!(
    unsafe impl UIScreenMode {
        #[sel(size)]
        pub fn size(&self) -> CGSize;
    }
);