objc2_app_kit/generated/
NSOpenGLView.rs1use core::ffi::*;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8#[cfg(all(feature = "NSResponder", feature = "NSView"))]
10impl NSView {
11 extern_methods!(
12 #[deprecated = "Use NSOpenGLView instead."]
13 #[unsafe(method(wantsBestResolutionOpenGLSurface))]
14 #[unsafe(method_family = none)]
15 pub unsafe fn wantsBestResolutionOpenGLSurface(&self) -> bool;
16
17 #[deprecated = "Use NSOpenGLView instead."]
19 #[unsafe(method(setWantsBestResolutionOpenGLSurface:))]
20 #[unsafe(method_family = none)]
21 pub fn setWantsBestResolutionOpenGLSurface(
22 &self,
23 wants_best_resolution_open_gl_surface: bool,
24 );
25 );
26}
27
28#[cfg(all(feature = "NSResponder", feature = "NSView"))]
30impl NSView {
31 extern_methods!(
32 #[deprecated = "Use NSOpenGLView instead."]
33 #[unsafe(method(wantsExtendedDynamicRangeOpenGLSurface))]
34 #[unsafe(method_family = none)]
35 pub unsafe fn wantsExtendedDynamicRangeOpenGLSurface(&self) -> bool;
36
37 #[deprecated = "Use NSOpenGLView instead."]
39 #[unsafe(method(setWantsExtendedDynamicRangeOpenGLSurface:))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn setWantsExtendedDynamicRangeOpenGLSurface(
42 &self,
43 wants_extended_dynamic_range_open_gl_surface: bool,
44 );
45 );
46}