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§
unsafe fn setCGFloatValue_forTrait(&self, value: CGFloat, trait: UICGFloatTrait)
Available on crate feature
UITrait
only.unsafe fn valueForCGFloatTrait(&self, trait: UICGFloatTrait) -> CGFloat
Available on crate feature
UITrait
only.unsafe fn setNSIntegerValue_forTrait( &self, value: NSInteger, trait: UINSIntegerTrait )
Available on crate feature
UITrait
only.unsafe fn valueForNSIntegerTrait(&self, trait: UINSIntegerTrait) -> NSInteger
Available on crate feature
UITrait
only.unsafe fn setObject_forTrait( &self, object: Option<&NSObject>, trait: UIObjectTrait )
Available on crate feature
UITrait
only.unsafe fn objectForTrait( &self, trait: UIObjectTrait ) -> Option<Retained<NSObject>>
Available on crate feature
UITrait
only.unsafe fn userInterfaceIdiom(&self) -> UIUserInterfaceIdiom
Available on crate feature
UIDevice
only.unsafe fn setUserInterfaceIdiom( &self, user_interface_idiom: UIUserInterfaceIdiom )
Available on crate feature
UIDevice
only.unsafe fn userInterfaceStyle(&self) -> UIUserInterfaceStyle
Available on crate feature
UIInterface
only.unsafe fn setUserInterfaceStyle( &self, user_interface_style: UIUserInterfaceStyle )
Available on crate feature
UIInterface
only.unsafe fn layoutDirection(&self) -> UITraitEnvironmentLayoutDirection
Available on crate feature
UIInterface
only.unsafe fn setLayoutDirection( &self, layout_direction: UITraitEnvironmentLayoutDirection )
Available on crate feature
UIInterface
only.unsafe fn displayScale(&self) -> CGFloat
unsafe fn setDisplayScale(&self, display_scale: CGFloat)
unsafe fn horizontalSizeClass(&self) -> UIUserInterfaceSizeClass
Available on crate feature
UIInterface
only.unsafe fn setHorizontalSizeClass( &self, horizontal_size_class: UIUserInterfaceSizeClass )
Available on crate feature
UIInterface
only.unsafe fn verticalSizeClass(&self) -> UIUserInterfaceSizeClass
Available on crate feature
UIInterface
only.unsafe fn setVerticalSizeClass( &self, vertical_size_class: UIUserInterfaceSizeClass )
Available on crate feature
UIInterface
only.unsafe fn forceTouchCapability(&self) -> UIForceTouchCapability
Available on crate feature
UITouch
only.unsafe fn setForceTouchCapability( &self, force_touch_capability: UIForceTouchCapability )
Available on crate feature
UITouch
only.unsafe fn preferredContentSizeCategory(&self) -> Retained<UIContentSizeCategory>
Available on crate feature
UIContentSizeCategory
only.unsafe fn setPreferredContentSizeCategory( &self, preferred_content_size_category: &UIContentSizeCategory )
Available on crate feature
UIContentSizeCategory
only.unsafe fn displayGamut(&self) -> UIDisplayGamut
Available on crate feature
UIInterface
only.unsafe fn setDisplayGamut(&self, display_gamut: UIDisplayGamut)
Available on crate feature
UIInterface
only.unsafe fn accessibilityContrast(&self) -> UIAccessibilityContrast
Available on crate feature
UIInterface
only.unsafe fn setAccessibilityContrast( &self, accessibility_contrast: UIAccessibilityContrast )
Available on crate feature
UIInterface
only.unsafe fn userInterfaceLevel(&self) -> UIUserInterfaceLevel
Available on crate feature
UIInterface
only.unsafe fn setUserInterfaceLevel( &self, user_interface_level: UIUserInterfaceLevel )
Available on crate feature
UIInterface
only.unsafe fn legibilityWeight(&self) -> UILegibilityWeight
Available on crate feature
UIInterface
only.unsafe fn setLegibilityWeight(&self, legibility_weight: UILegibilityWeight)
Available on crate feature
UIInterface
only.unsafe fn activeAppearance(&self) -> UIUserInterfaceActiveAppearance
Available on crate feature
UIInterface
only.unsafe fn setActiveAppearance( &self, active_appearance: UIUserInterfaceActiveAppearance )
Available on crate feature
UIInterface
only.unsafe fn toolbarItemPresentationSize(&self) -> UINSToolbarItemPresentationSize
Available on crate feature
UIInterface
only.unsafe fn setToolbarItemPresentationSize( &self, toolbar_item_presentation_size: UINSToolbarItemPresentationSize )
Available on crate feature
UIInterface
only.unsafe fn imageDynamicRange(&self) -> UIImageDynamicRange
Available on crate feature
UIInterface
only.unsafe fn setImageDynamicRange(&self, image_dynamic_range: UIImageDynamicRange)
Available on crate feature
UIInterface
only.unsafe fn sceneCaptureState(&self) -> UISceneCaptureState
Available on crate feature
UISceneDefinitions
only.unsafe fn setSceneCaptureState(&self, scene_capture_state: UISceneCaptureState)
Available on crate feature
UISceneDefinitions
only.