objc2_app_kit/generated/
NSOpenGLView.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use objc2::__framework_prelude::*;
5
6use crate::*;
7
8/// NSOpenGLSurfaceResolution.
9#[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        /// Setter for [`wantsBestResolutionOpenGLSurface`][Self::wantsBestResolutionOpenGLSurface].
18        #[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/// NSExtendedDynamicRange.
29#[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        /// Setter for [`wantsExtendedDynamicRangeOpenGLSurface`][Self::wantsExtendedDynamicRangeOpenGLSurface].
38        #[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}