//! This file has been automatically generated by `objc2`'s `header-translator`. //! DO NOT EDIT use objc2::__framework_prelude::*; use objc2_foundation::*; use objc2_metal::*; use objc2_ui_kit::*; extern_class!( #[derive(Debug, PartialEq, Eq, Hash)] pub struct MTKView; unsafe impl ClassType for MTKView { #[inherits(NSObject)] type Super = UIView; type Mutability = MainThreadOnly; } ); extern_methods!( unsafe impl MTKView { #[method_id(@__retain_semantics Init initWithFrame:device:)] pub unsafe fn initWithFrame_device( this: Allocated, frame_rect: CGRect, device: Option<&ProtocolObject>, ) -> Retained; #[method_id(@__retain_semantics Init initWithCoder:)] pub unsafe fn initWithCoder(this: Allocated, coder: &NSCoder) -> Retained; #[method_id(@__retain_semantics Other device)] pub unsafe fn device(&self) -> Option>>; #[method(setDevice:)] pub unsafe fn setDevice(&self, device: Option<&ProtocolObject>); #[method(framebufferOnly)] pub unsafe fn framebufferOnly(&self) -> bool; #[method(setFramebufferOnly:)] pub unsafe fn setFramebufferOnly(&self, framebuffer_only: bool); #[method(depthStencilAttachmentTextureUsage)] pub unsafe fn depthStencilAttachmentTextureUsage(&self) -> MTLTextureUsage; #[method(setDepthStencilAttachmentTextureUsage:)] pub unsafe fn setDepthStencilAttachmentTextureUsage(&self, depth_stencil_attachment_texture_usage: MTLTextureUsage); #[method(multisampleColorAttachmentTextureUsage)] pub unsafe fn multisampleColorAttachmentTextureUsage(&self) -> MTLTextureUsage; #[method(setMultisampleColorAttachmentTextureUsage:)] pub unsafe fn setMultisampleColorAttachmentTextureUsage(&self, multisample_color_attachment_texture_usage: MTLTextureUsage); #[method(presentsWithTransaction)] pub unsafe fn presentsWithTransaction(&self) -> bool; #[method(setPresentsWithTransaction:)] pub unsafe fn setPresentsWithTransaction(&self, presents_with_transaction: bool); #[method(colorPixelFormat)] pub unsafe fn colorPixelFormat(&self) -> MTLPixelFormat; #[method(setColorPixelFormat:)] pub unsafe fn setColorPixelFormat(&self, color_pixel_format: MTLPixelFormat); #[method(depthStencilPixelFormat)] pub unsafe fn depthStencilPixelFormat(&self) -> MTLPixelFormat; #[method(setDepthStencilPixelFormat:)] pub unsafe fn setDepthStencilPixelFormat(&self, depth_stencil_pixel_format: MTLPixelFormat); #[method(depthStencilStorageMode)] pub unsafe fn depthStencilStorageMode(&self) -> MTLStorageMode; #[method(setDepthStencilStorageMode:)] pub unsafe fn setDepthStencilStorageMode(&self, depth_stencil_storage_mode: MTLStorageMode); #[method(sampleCount)] pub unsafe fn sampleCount(&self) -> NSUInteger; #[method(setSampleCount:)] pub unsafe fn setSampleCount(&self, sample_count: NSUInteger); #[method(clearColor)] pub unsafe fn clearColor(&self) -> MTLClearColor; #[method(setClearColor:)] pub unsafe fn setClearColor(&self, clear_color: MTLClearColor); #[method(clearDepth)] pub unsafe fn clearDepth(&self) -> c_double; #[method(setClearDepth:)] pub unsafe fn setClearDepth(&self, clear_depth: c_double); #[method(clearStencil)] pub unsafe fn clearStencil(&self) -> u32; #[method(setClearStencil:)] pub unsafe fn setClearStencil(&self, clear_stencil: u32); #[method_id(@__retain_semantics Other depthStencilTexture)] pub unsafe fn depthStencilTexture(&self) -> Option>>; #[method_id(@__retain_semantics Other multisampleColorTexture)] pub unsafe fn multisampleColorTexture(&self) -> Option>>; #[method(releaseDrawables)] pub unsafe fn releaseDrawables(&self); #[method_id(@__retain_semantics Other currentRenderPassDescriptor)] pub unsafe fn currentRenderPassDescriptor(&self) -> Option>; #[method(preferredFramesPerSecond)] pub unsafe fn preferredFramesPerSecond(&self) -> NSInteger; #[method(setPreferredFramesPerSecond:)] pub unsafe fn setPreferredFramesPerSecond(&self, preferred_frames_per_second: NSInteger); #[method(enableSetNeedsDisplay)] pub unsafe fn enableSetNeedsDisplay(&self) -> bool; #[method(setEnableSetNeedsDisplay:)] pub unsafe fn setEnableSetNeedsDisplay(&self, enable_set_needs_display: bool); #[method(autoResizeDrawable)] pub unsafe fn autoResizeDrawable(&self) -> bool; #[method(setAutoResizeDrawable:)] pub unsafe fn setAutoResizeDrawable(&self, auto_resize_drawable: bool); #[method(drawableSize)] pub unsafe fn drawableSize(&self) -> CGSize; #[method(setDrawableSize:)] pub unsafe fn setDrawableSize(&self, drawable_size: CGSize); #[method(preferredDrawableSize)] pub unsafe fn preferredDrawableSize(&self) -> CGSize; #[method_id(@__retain_semantics Other preferredDevice)] pub unsafe fn preferredDevice(&self) -> Option>>; #[method(isPaused)] pub unsafe fn isPaused(&self) -> bool; #[method(setPaused:)] pub unsafe fn setPaused(&self, paused: bool); #[method(draw)] pub unsafe fn draw(&self); } );