pub struct SpatialScaleDesc(/* private fields */);Implementations§
Source§impl SpatialScaleDesc
impl SpatialScaleDesc
pub fn color_texture_format(&self) -> PixelFormat
pub fn set_color_texture_format(&mut self, val: PixelFormat)
pub fn output_texture_format(&self) -> PixelFormat
pub fn set_output_texture_format(&mut self, val: PixelFormat)
pub fn input_width(&self) -> usize
pub fn set_input_width(&mut self, val: usize)
pub fn input_height(&self) -> usize
pub fn set_input_height(&mut self, val: usize)
pub fn output_width(&self) -> usize
pub fn set_output_width(&mut self, val: usize)
pub fn output_height(&self) -> usize
pub fn set_output_height(&mut self, val: usize)
pub fn color_processing_mode(&self) -> SpatialScalerColorProcessingMode
pub fn set_color_processing_mode( &mut self, val: SpatialScalerColorProcessingMode, )
pub fn new_spatial_scaler(&self, device: &Device) -> Option<R<SpatialScaler>>
Sourcepub fn sel_new_spatial_scaler_with_compiler() -> &'static Sel
pub fn sel_new_spatial_scaler_with_compiler() -> &'static Sel
@selector(newSpatialScalerWithDevice:compiler:) but dynamic
use this function to check if object responds to selector
pub unsafe fn new_spatial_scaler_with_compiler( &self, device: &Device, compiler: &Compiler, ) -> Option<R<SpatialScaler>>
Sourcepub fn sel_supports_metal4_fx() -> &'static Sel
pub fn sel_supports_metal4_fx() -> &'static Sel
@selector(supportsMetal4FX:) but dynamic
use this function to check if object responds to selector
pub unsafe fn supports_metal4_fx(device: &Device) -> bool
pub fn supports_device(device: &Device) -> bool
Methods from Deref<Target = Id>§
pub unsafe fn value_for_key_throws_ar(&self, key: &String) -> Option<Rar<Self>>
pub unsafe fn value_for_key_throws(&self, key: &String) -> Option<R<Self>>
pub fn value_for_key<'ear>( &self, key: &String, ) -> ExResult<'ear, Option<R<Self>>>
pub unsafe fn set_value_for_key_throws( &mut self, val: Option<&Self>, key: &String, )
pub fn set_value_for_key<'ear>( &mut self, val: Option<&Self>, key: &String, ) -> ExResult<'ear>
pub unsafe fn value_for_key_path_throws_ar( &self, key_path: &String, ) -> Option<Rar<Self>>
pub unsafe fn value_for_key_path_throws( &self, key_path: &String, ) -> Option<R<Self>>
pub fn value_for_key_path<'ear>( &self, key_path: &String, ) -> ExResult<'ear, Option<R<Self>>>
pub unsafe fn set_value_for_key_path_throws( &mut self, val: Option<&Self>, key_path: &String, )
pub fn set_value_for_key_path<'ear>( &mut self, val: Option<&Self>, key_path: &String, ) -> ExResult<'ear>
pub fn as_type_ref(&self) -> &Type
pub fn as_id_ref(&self) -> &Self
pub fn is_equal(&self, other: &Self) -> bool
pub fn hash(&self) -> UInteger
pub fn as_ptr(&self) -> *const Self
Trait Implementations§
Source§impl AsRef<Id> for SpatialScaleDesc
impl AsRef<Id> for SpatialScaleDesc
Source§impl Copying for SpatialScaleDesc
impl Copying for SpatialScaleDesc
Source§impl Debug for SpatialScaleDesc
impl Debug for SpatialScaleDesc
Source§impl Deref for SpatialScaleDesc
impl Deref for SpatialScaleDesc
Source§impl DerefMut for SpatialScaleDesc
impl DerefMut for SpatialScaleDesc
Source§impl Obj for SpatialScaleDesc
impl Obj for SpatialScaleDesc
unsafe fn retain(id: &Self) -> R<Self>
unsafe fn release(id: &mut Self)
fn desc_ar(&self) -> Rar<String>
fn desc(&self) -> R<String>
fn debug_desc_ar(&self) -> Rar<String>
fn debug_desc(&self) -> R<String>
fn responds_to_sel(&self, sel: &Sel) -> bool
fn class(&self) -> &Class<Self>
fn is_kind_of_class<T: Obj>(&self, cls: &Class<T>) -> bool
fn try_cast<T: Obj>(&self, cls: &Class<T>) -> Option<&T>
fn try_cast_mut<T: Obj>(&mut self, cls: &Class<T>) -> Option<&mut T>
fn is_member_of_class<T: Obj>(&self, cls: &Class<T>) -> bool
fn is_tagged_ptr(&self) -> bool
fn as_id_ref(&self) -> &Id
Source§impl PartialEq for SpatialScaleDesc
impl PartialEq for SpatialScaleDesc
Source§fn eq(&self, other: &SpatialScaleDesc) -> bool
fn eq(&self, other: &SpatialScaleDesc) -> bool
Tests for
self and other values to be equal, and is used by ==.Source§impl PartialEq<Retained<SpatialScaleDesc>> for SpatialScaleDesc
impl PartialEq<Retained<SpatialScaleDesc>> for SpatialScaleDesc
impl StructuralPartialEq for SpatialScaleDesc
Auto Trait Implementations§
impl !Sync for SpatialScaleDesc
impl Freeze for SpatialScaleDesc
impl RefUnwindSafe for SpatialScaleDesc
impl Send for SpatialScaleDesc
impl Unpin for SpatialScaleDesc
impl UnsafeUnpin for SpatialScaleDesc
impl UnwindSafe for SpatialScaleDesc
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more