Trait objc2_ui_kit::UIMutableTraits

source ·
pub unsafe trait UIMutableTraits: NSObjectProtocol + IsMainThreadOnly {
Show 40 methods // Provided methods unsafe fn setCGFloatValue_forTrait( &self, value: CGFloat, trait: UICGFloatTrait ) where Self: Sized + Message { ... } unsafe fn valueForCGFloatTrait(&self, trait: UICGFloatTrait) -> CGFloat where Self: Sized + Message { ... } unsafe fn setNSIntegerValue_forTrait( &self, value: NSInteger, trait: UINSIntegerTrait ) where Self: Sized + Message { ... } unsafe fn valueForNSIntegerTrait( &self, trait: UINSIntegerTrait ) -> NSInteger where Self: Sized + Message { ... } unsafe fn setObject_forTrait( &self, object: Option<&NSObject>, trait: UIObjectTrait ) where Self: Sized + Message { ... } unsafe fn objectForTrait( &self, trait: UIObjectTrait ) -> Option<Retained<NSObject>> where Self: Sized + Message { ... } unsafe fn userInterfaceIdiom(&self) -> UIUserInterfaceIdiom where Self: Sized + Message { ... } unsafe fn setUserInterfaceIdiom( &self, user_interface_idiom: UIUserInterfaceIdiom ) where Self: Sized + Message { ... } unsafe fn userInterfaceStyle(&self) -> UIUserInterfaceStyle where Self: Sized + Message { ... } unsafe fn setUserInterfaceStyle( &self, user_interface_style: UIUserInterfaceStyle ) where Self: Sized + Message { ... } unsafe fn layoutDirection(&self) -> UITraitEnvironmentLayoutDirection where Self: Sized + Message { ... } unsafe fn setLayoutDirection( &self, layout_direction: UITraitEnvironmentLayoutDirection ) where Self: Sized + Message { ... } unsafe fn displayScale(&self) -> CGFloat where Self: Sized + Message { ... } unsafe fn setDisplayScale(&self, display_scale: CGFloat) where Self: Sized + Message { ... } unsafe fn horizontalSizeClass(&self) -> UIUserInterfaceSizeClass where Self: Sized + Message { ... } unsafe fn setHorizontalSizeClass( &self, horizontal_size_class: UIUserInterfaceSizeClass ) where Self: Sized + Message { ... } unsafe fn verticalSizeClass(&self) -> UIUserInterfaceSizeClass where Self: Sized + Message { ... } unsafe fn setVerticalSizeClass( &self, vertical_size_class: UIUserInterfaceSizeClass ) where Self: Sized + Message { ... } unsafe fn forceTouchCapability(&self) -> UIForceTouchCapability where Self: Sized + Message { ... } unsafe fn setForceTouchCapability( &self, force_touch_capability: UIForceTouchCapability ) where Self: Sized + Message { ... } unsafe fn preferredContentSizeCategory( &self ) -> Retained<UIContentSizeCategory> where Self: Sized + Message { ... } unsafe fn setPreferredContentSizeCategory( &self, preferred_content_size_category: &UIContentSizeCategory ) where Self: Sized + Message { ... } unsafe fn displayGamut(&self) -> UIDisplayGamut where Self: Sized + Message { ... } unsafe fn setDisplayGamut(&self, display_gamut: UIDisplayGamut) where Self: Sized + Message { ... } unsafe fn accessibilityContrast(&self) -> UIAccessibilityContrast where Self: Sized + Message { ... } unsafe fn setAccessibilityContrast( &self, accessibility_contrast: UIAccessibilityContrast ) where Self: Sized + Message { ... } unsafe fn userInterfaceLevel(&self) -> UIUserInterfaceLevel where Self: Sized + Message { ... } unsafe fn setUserInterfaceLevel( &self, user_interface_level: UIUserInterfaceLevel ) where Self: Sized + Message { ... } unsafe fn legibilityWeight(&self) -> UILegibilityWeight where Self: Sized + Message { ... } unsafe fn setLegibilityWeight(&self, legibility_weight: UILegibilityWeight) where Self: Sized + Message { ... } unsafe fn activeAppearance(&self) -> UIUserInterfaceActiveAppearance where Self: Sized + Message { ... } unsafe fn setActiveAppearance( &self, active_appearance: UIUserInterfaceActiveAppearance ) where Self: Sized + Message { ... } unsafe fn toolbarItemPresentationSize( &self ) -> UINSToolbarItemPresentationSize where Self: Sized + Message { ... } unsafe fn setToolbarItemPresentationSize( &self, toolbar_item_presentation_size: UINSToolbarItemPresentationSize ) where Self: Sized + Message { ... } unsafe fn imageDynamicRange(&self) -> UIImageDynamicRange where Self: Sized + Message { ... } unsafe fn setImageDynamicRange( &self, image_dynamic_range: UIImageDynamicRange ) where Self: Sized + Message { ... } unsafe fn sceneCaptureState(&self) -> UISceneCaptureState where Self: Sized + Message { ... } unsafe fn setSceneCaptureState( &self, scene_capture_state: UISceneCaptureState ) where Self: Sized + Message { ... } unsafe fn typesettingLanguage(&self) -> Retained<NSString> where Self: Sized + Message { ... } unsafe fn setTypesettingLanguage(&self, typesetting_language: &NSString) where Self: Sized + Message { ... }
}
Available on crate feature UITraitCollection only.

Provided Methods§

source

unsafe fn setCGFloatValue_forTrait(&self, value: CGFloat, trait: UICGFloatTrait)
where Self: Sized + Message,

Available on crate feature UITrait only.
source

unsafe fn valueForCGFloatTrait(&self, trait: UICGFloatTrait) -> CGFloat
where Self: Sized + Message,

Available on crate feature UITrait only.
source

unsafe fn setNSIntegerValue_forTrait( &self, value: NSInteger, trait: UINSIntegerTrait )
where Self: Sized + Message,

Available on crate feature UITrait only.
source

unsafe fn valueForNSIntegerTrait(&self, trait: UINSIntegerTrait) -> NSInteger
where Self: Sized + Message,

Available on crate feature UITrait only.
source

unsafe fn setObject_forTrait( &self, object: Option<&NSObject>, trait: UIObjectTrait )
where Self: Sized + Message,

Available on crate feature UITrait only.
source

unsafe fn objectForTrait( &self, trait: UIObjectTrait ) -> Option<Retained<NSObject>>
where Self: Sized + Message,

Available on crate feature UITrait only.
source

unsafe fn userInterfaceIdiom(&self) -> UIUserInterfaceIdiom
where Self: Sized + Message,

Available on crate feature UIDevice only.
source

unsafe fn setUserInterfaceIdiom( &self, user_interface_idiom: UIUserInterfaceIdiom )
where Self: Sized + Message,

Available on crate feature UIDevice only.
source

unsafe fn userInterfaceStyle(&self) -> UIUserInterfaceStyle
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn setUserInterfaceStyle( &self, user_interface_style: UIUserInterfaceStyle )
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn layoutDirection(&self) -> UITraitEnvironmentLayoutDirection
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn setLayoutDirection( &self, layout_direction: UITraitEnvironmentLayoutDirection )
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn displayScale(&self) -> CGFloat
where Self: Sized + Message,

source

unsafe fn setDisplayScale(&self, display_scale: CGFloat)
where Self: Sized + Message,

source

unsafe fn horizontalSizeClass(&self) -> UIUserInterfaceSizeClass
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn setHorizontalSizeClass( &self, horizontal_size_class: UIUserInterfaceSizeClass )
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn verticalSizeClass(&self) -> UIUserInterfaceSizeClass
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn setVerticalSizeClass( &self, vertical_size_class: UIUserInterfaceSizeClass )
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn forceTouchCapability(&self) -> UIForceTouchCapability
where Self: Sized + Message,

Available on crate feature UITouch only.
source

unsafe fn setForceTouchCapability( &self, force_touch_capability: UIForceTouchCapability )
where Self: Sized + Message,

Available on crate feature UITouch only.
source

unsafe fn preferredContentSizeCategory(&self) -> Retained<UIContentSizeCategory>
where Self: Sized + Message,

Available on crate feature UIContentSizeCategory only.
source

unsafe fn setPreferredContentSizeCategory( &self, preferred_content_size_category: &UIContentSizeCategory )
where Self: Sized + Message,

Available on crate feature UIContentSizeCategory only.
source

unsafe fn displayGamut(&self) -> UIDisplayGamut
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn setDisplayGamut(&self, display_gamut: UIDisplayGamut)
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn accessibilityContrast(&self) -> UIAccessibilityContrast
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn setAccessibilityContrast( &self, accessibility_contrast: UIAccessibilityContrast )
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn userInterfaceLevel(&self) -> UIUserInterfaceLevel
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn setUserInterfaceLevel( &self, user_interface_level: UIUserInterfaceLevel )
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn legibilityWeight(&self) -> UILegibilityWeight
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn setLegibilityWeight(&self, legibility_weight: UILegibilityWeight)
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn activeAppearance(&self) -> UIUserInterfaceActiveAppearance
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn setActiveAppearance( &self, active_appearance: UIUserInterfaceActiveAppearance )
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn toolbarItemPresentationSize(&self) -> UINSToolbarItemPresentationSize
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn setToolbarItemPresentationSize( &self, toolbar_item_presentation_size: UINSToolbarItemPresentationSize )
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn imageDynamicRange(&self) -> UIImageDynamicRange
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn setImageDynamicRange(&self, image_dynamic_range: UIImageDynamicRange)
where Self: Sized + Message,

Available on crate feature UIInterface only.
source

unsafe fn sceneCaptureState(&self) -> UISceneCaptureState
where Self: Sized + Message,

Available on crate feature UISceneDefinitions only.
source

unsafe fn setSceneCaptureState(&self, scene_capture_state: UISceneCaptureState)
where Self: Sized + Message,

Available on crate feature UISceneDefinitions only.
source

unsafe fn typesettingLanguage(&self) -> Retained<NSString>
where Self: Sized + Message,

source

unsafe fn setTypesettingLanguage(&self, typesetting_language: &NSString)
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn UIMutableTraits

source§

const NAME: &'static str = "UIMutableTraits"

The name of the Objective-C protocol that this type represents.
source§

fn protocol() -> Option<&'static AnyProtocol>

Get a reference to the Objective-C protocol object that this type represents. Read more
source§

impl<T> ImplementedBy<T> for dyn UIMutableTraits

Implementations on Foreign Types§

source§

impl<T> UIMutableTraits for ProtocolObject<T>
where T: ?Sized + UIMutableTraits,

Implementors§