pub unsafe trait UIMutableTraits: NSObjectProtocol + MainThreadOnly {
Show 48 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<&ProtocolObject<dyn NSObjectProtocol>>,
trait: &UIObjectTrait,
)
where Self: Sized + Message { ... }
unsafe fn objectForTrait(
&self,
trait: &UIObjectTrait,
) -> Option<Retained<ProtocolObject<dyn NSObjectProtocol>>>
where Self: Sized + Message { ... }
fn userInterfaceIdiom(&self) -> UIUserInterfaceIdiom
where Self: Sized + Message { ... }
fn setUserInterfaceIdiom(&self, user_interface_idiom: UIUserInterfaceIdiom)
where Self: Sized + Message { ... }
fn userInterfaceStyle(&self) -> UIUserInterfaceStyle
where Self: Sized + Message { ... }
fn setUserInterfaceStyle(&self, user_interface_style: UIUserInterfaceStyle)
where Self: Sized + Message { ... }
fn layoutDirection(&self) -> UITraitEnvironmentLayoutDirection
where Self: Sized + Message { ... }
fn setLayoutDirection(
&self,
layout_direction: UITraitEnvironmentLayoutDirection,
)
where Self: Sized + Message { ... }
fn displayScale(&self) -> CGFloat
where Self: Sized + Message { ... }
fn setDisplayScale(&self, display_scale: CGFloat)
where Self: Sized + Message { ... }
fn horizontalSizeClass(&self) -> UIUserInterfaceSizeClass
where Self: Sized + Message { ... }
fn setHorizontalSizeClass(
&self,
horizontal_size_class: UIUserInterfaceSizeClass,
)
where Self: Sized + Message { ... }
fn verticalSizeClass(&self) -> UIUserInterfaceSizeClass
where Self: Sized + Message { ... }
fn setVerticalSizeClass(
&self,
vertical_size_class: UIUserInterfaceSizeClass,
)
where Self: Sized + Message { ... }
fn forceTouchCapability(&self) -> UIForceTouchCapability
where Self: Sized + Message { ... }
fn setForceTouchCapability(
&self,
force_touch_capability: UIForceTouchCapability,
)
where Self: Sized + Message { ... }
fn preferredContentSizeCategory(&self) -> Retained<UIContentSizeCategory>
where Self: Sized + Message { ... }
fn setPreferredContentSizeCategory(
&self,
preferred_content_size_category: &UIContentSizeCategory,
)
where Self: Sized + Message { ... }
fn displayGamut(&self) -> UIDisplayGamut
where Self: Sized + Message { ... }
fn setDisplayGamut(&self, display_gamut: UIDisplayGamut)
where Self: Sized + Message { ... }
fn accessibilityContrast(&self) -> UIAccessibilityContrast
where Self: Sized + Message { ... }
fn setAccessibilityContrast(
&self,
accessibility_contrast: UIAccessibilityContrast,
)
where Self: Sized + Message { ... }
fn userInterfaceLevel(&self) -> UIUserInterfaceLevel
where Self: Sized + Message { ... }
fn setUserInterfaceLevel(&self, user_interface_level: UIUserInterfaceLevel)
where Self: Sized + Message { ... }
fn legibilityWeight(&self) -> UILegibilityWeight
where Self: Sized + Message { ... }
fn setLegibilityWeight(&self, legibility_weight: UILegibilityWeight)
where Self: Sized + Message { ... }
fn activeAppearance(&self) -> UIUserInterfaceActiveAppearance
where Self: Sized + Message { ... }
fn setActiveAppearance(
&self,
active_appearance: UIUserInterfaceActiveAppearance,
)
where Self: Sized + Message { ... }
fn toolbarItemPresentationSize(&self) -> UINSToolbarItemPresentationSize
where Self: Sized + Message { ... }
fn setToolbarItemPresentationSize(
&self,
toolbar_item_presentation_size: UINSToolbarItemPresentationSize,
)
where Self: Sized + Message { ... }
fn imageDynamicRange(&self) -> UIImageDynamicRange
where Self: Sized + Message { ... }
fn setImageDynamicRange(&self, image_dynamic_range: UIImageDynamicRange)
where Self: Sized + Message { ... }
fn sceneCaptureState(&self) -> UISceneCaptureState
where Self: Sized + Message { ... }
fn setSceneCaptureState(&self, scene_capture_state: UISceneCaptureState)
where Self: Sized + Message { ... }
fn typesettingLanguage(&self) -> Retained<NSString>
where Self: Sized + Message { ... }
fn setTypesettingLanguage(&self, typesetting_language: &NSString)
where Self: Sized + Message { ... }
fn listEnvironment(&self) -> UIListEnvironment
where Self: Sized + Message { ... }
fn setListEnvironment(&self, list_environment: UIListEnvironment)
where Self: Sized + Message { ... }
fn tabAccessoryEnvironment(&self) -> UITabAccessoryEnvironment
where Self: Sized + Message { ... }
fn setTabAccessoryEnvironment(
&self,
tab_accessory_environment: UITabAccessoryEnvironment,
)
where Self: Sized + Message { ... }
fn splitViewControllerLayoutEnvironment(
&self,
) -> UISplitViewControllerLayoutEnvironment
where Self: Sized + Message { ... }
fn setSplitViewControllerLayoutEnvironment(
&self,
split_view_controller_layout_environment: UISplitViewControllerLayoutEnvironment,
)
where Self: Sized + Message { ... }
fn resolvesNaturalAlignmentWithBaseWritingDirection(&self) -> bool
where Self: Sized + Message { ... }
fn setResolvesNaturalAlignmentWithBaseWritingDirection(
&self,
resolves_natural_alignment_with_base_writing_direction: bool,
)
where Self: Sized + Message { ... }
}UITraitCollection only.Expand description
Provided Methods§
Sourceunsafe fn setCGFloatValue_forTrait(
&self,
value: CGFloat,
trait: &UICGFloatTrait,
)
Available on crate features UITrait and objc2-core-foundation only.
unsafe fn setCGFloatValue_forTrait( &self, value: CGFloat, trait: &UICGFloatTrait, )
UITrait and objc2-core-foundation only.§Safety
trait must implement UICGFloatTraitDefinition.
Sourceunsafe fn valueForCGFloatTrait(&self, trait: &UICGFloatTrait) -> CGFloat
Available on crate features UITrait and objc2-core-foundation only.
unsafe fn valueForCGFloatTrait(&self, trait: &UICGFloatTrait) -> CGFloat
UITrait and objc2-core-foundation only.§Safety
trait must implement UICGFloatTraitDefinition.
Sourceunsafe fn setNSIntegerValue_forTrait(
&self,
value: NSInteger,
trait: &UINSIntegerTrait,
)
Available on crate feature UITrait only.
unsafe fn setNSIntegerValue_forTrait( &self, value: NSInteger, trait: &UINSIntegerTrait, )
UITrait only.§Safety
trait must implement UINSIntegerTraitDefinition.
Sourceunsafe fn valueForNSIntegerTrait(&self, trait: &UINSIntegerTrait) -> NSInteger
Available on crate feature UITrait only.
unsafe fn valueForNSIntegerTrait(&self, trait: &UINSIntegerTrait) -> NSInteger
UITrait only.§Safety
trait must implement UINSIntegerTraitDefinition.
Sourceunsafe fn setObject_forTrait(
&self,
object: Option<&ProtocolObject<dyn NSObjectProtocol>>,
trait: &UIObjectTrait,
)
Available on crate feature UITrait only.
unsafe fn setObject_forTrait( &self, object: Option<&ProtocolObject<dyn NSObjectProtocol>>, trait: &UIObjectTrait, )
UITrait only.§Safety
objectshould be of the correct type.traitmust implement UIObjectTraitDefinition.
Sourceunsafe fn objectForTrait(
&self,
trait: &UIObjectTrait,
) -> Option<Retained<ProtocolObject<dyn NSObjectProtocol>>>
Available on crate feature UITrait only.
unsafe fn objectForTrait( &self, trait: &UIObjectTrait, ) -> Option<Retained<ProtocolObject<dyn NSObjectProtocol>>>
UITrait only.§Safety
trait must implement UIObjectTraitDefinition.
fn userInterfaceIdiom(&self) -> UIUserInterfaceIdiom
UIDevice only.Sourcefn setUserInterfaceIdiom(&self, user_interface_idiom: UIUserInterfaceIdiom)
Available on crate feature UIDevice only.
fn setUserInterfaceIdiom(&self, user_interface_idiom: UIUserInterfaceIdiom)
UIDevice only.Setter for userInterfaceIdiom.
fn userInterfaceStyle(&self) -> UIUserInterfaceStyle
UIInterface only.Sourcefn setUserInterfaceStyle(&self, user_interface_style: UIUserInterfaceStyle)
Available on crate feature UIInterface only.
fn setUserInterfaceStyle(&self, user_interface_style: UIUserInterfaceStyle)
UIInterface only.Setter for userInterfaceStyle.
fn layoutDirection(&self) -> UITraitEnvironmentLayoutDirection
UIInterface only.Sourcefn setLayoutDirection(
&self,
layout_direction: UITraitEnvironmentLayoutDirection,
)
Available on crate feature UIInterface only.
fn setLayoutDirection( &self, layout_direction: UITraitEnvironmentLayoutDirection, )
UIInterface only.Setter for layoutDirection.
fn displayScale(&self) -> CGFloat
objc2-core-foundation only.Sourcefn setDisplayScale(&self, display_scale: CGFloat)
Available on crate feature objc2-core-foundation only.
fn setDisplayScale(&self, display_scale: CGFloat)
objc2-core-foundation only.Setter for displayScale.
fn horizontalSizeClass(&self) -> UIUserInterfaceSizeClass
UIInterface only.Sourcefn setHorizontalSizeClass(
&self,
horizontal_size_class: UIUserInterfaceSizeClass,
)
Available on crate feature UIInterface only.
fn setHorizontalSizeClass( &self, horizontal_size_class: UIUserInterfaceSizeClass, )
UIInterface only.Setter for horizontalSizeClass.
fn verticalSizeClass(&self) -> UIUserInterfaceSizeClass
UIInterface only.Sourcefn setVerticalSizeClass(&self, vertical_size_class: UIUserInterfaceSizeClass)
Available on crate feature UIInterface only.
fn setVerticalSizeClass(&self, vertical_size_class: UIUserInterfaceSizeClass)
UIInterface only.Setter for verticalSizeClass.
fn forceTouchCapability(&self) -> UIForceTouchCapability
UITouch only.Sourcefn setForceTouchCapability(
&self,
force_touch_capability: UIForceTouchCapability,
)
Available on crate feature UITouch only.
fn setForceTouchCapability( &self, force_touch_capability: UIForceTouchCapability, )
UITouch only.Setter for forceTouchCapability.
fn preferredContentSizeCategory(&self) -> Retained<UIContentSizeCategory>
UIContentSizeCategory only.Sourcefn setPreferredContentSizeCategory(
&self,
preferred_content_size_category: &UIContentSizeCategory,
)
Available on crate feature UIContentSizeCategory only.
fn setPreferredContentSizeCategory( &self, preferred_content_size_category: &UIContentSizeCategory, )
UIContentSizeCategory only.Setter for preferredContentSizeCategory.
This is copied when set.
fn displayGamut(&self) -> UIDisplayGamut
UIInterface only.Sourcefn setDisplayGamut(&self, display_gamut: UIDisplayGamut)
Available on crate feature UIInterface only.
fn setDisplayGamut(&self, display_gamut: UIDisplayGamut)
UIInterface only.Setter for displayGamut.
fn accessibilityContrast(&self) -> UIAccessibilityContrast
UIInterface only.Sourcefn setAccessibilityContrast(
&self,
accessibility_contrast: UIAccessibilityContrast,
)
Available on crate feature UIInterface only.
fn setAccessibilityContrast( &self, accessibility_contrast: UIAccessibilityContrast, )
UIInterface only.Setter for accessibilityContrast.
fn userInterfaceLevel(&self) -> UIUserInterfaceLevel
UIInterface only.Sourcefn setUserInterfaceLevel(&self, user_interface_level: UIUserInterfaceLevel)
Available on crate feature UIInterface only.
fn setUserInterfaceLevel(&self, user_interface_level: UIUserInterfaceLevel)
UIInterface only.Setter for userInterfaceLevel.
fn legibilityWeight(&self) -> UILegibilityWeight
UIInterface only.Sourcefn setLegibilityWeight(&self, legibility_weight: UILegibilityWeight)
Available on crate feature UIInterface only.
fn setLegibilityWeight(&self, legibility_weight: UILegibilityWeight)
UIInterface only.Setter for legibilityWeight.
fn activeAppearance(&self) -> UIUserInterfaceActiveAppearance
UIInterface only.Sourcefn setActiveAppearance(
&self,
active_appearance: UIUserInterfaceActiveAppearance,
)
Available on crate feature UIInterface only.
fn setActiveAppearance( &self, active_appearance: UIUserInterfaceActiveAppearance, )
UIInterface only.Setter for activeAppearance.
fn toolbarItemPresentationSize(&self) -> UINSToolbarItemPresentationSize
UIInterface only.Sourcefn setToolbarItemPresentationSize(
&self,
toolbar_item_presentation_size: UINSToolbarItemPresentationSize,
)
Available on crate feature UIInterface only.
fn setToolbarItemPresentationSize( &self, toolbar_item_presentation_size: UINSToolbarItemPresentationSize, )
UIInterface only.Setter for toolbarItemPresentationSize.
fn imageDynamicRange(&self) -> UIImageDynamicRange
UIInterface only.Sourcefn setImageDynamicRange(&self, image_dynamic_range: UIImageDynamicRange)
Available on crate feature UIInterface only.
fn setImageDynamicRange(&self, image_dynamic_range: UIImageDynamicRange)
UIInterface only.Setter for imageDynamicRange.
fn sceneCaptureState(&self) -> UISceneCaptureState
UISceneDefinitions only.Sourcefn setSceneCaptureState(&self, scene_capture_state: UISceneCaptureState)
Available on crate feature UISceneDefinitions only.
fn setSceneCaptureState(&self, scene_capture_state: UISceneCaptureState)
UISceneDefinitions only.Setter for sceneCaptureState.
fn typesettingLanguage(&self) -> Retained<NSString>
Sourcefn setTypesettingLanguage(&self, typesetting_language: &NSString)
fn setTypesettingLanguage(&self, typesetting_language: &NSString)
Setter for typesettingLanguage.
This is copied when set.
fn listEnvironment(&self) -> UIListEnvironment
UITraitListEnvironment only.Sourcefn setListEnvironment(&self, list_environment: UIListEnvironment)
Available on crate feature UITraitListEnvironment only.
fn setListEnvironment(&self, list_environment: UIListEnvironment)
UITraitListEnvironment only.Setter for listEnvironment.
fn tabAccessoryEnvironment(&self) -> UITabAccessoryEnvironment
UITabAccessory only.Sourcefn setTabAccessoryEnvironment(
&self,
tab_accessory_environment: UITabAccessoryEnvironment,
)
Available on crate feature UITabAccessory only.
fn setTabAccessoryEnvironment( &self, tab_accessory_environment: UITabAccessoryEnvironment, )
UITabAccessory only.Setter for tabAccessoryEnvironment.
fn splitViewControllerLayoutEnvironment( &self, ) -> UISplitViewControllerLayoutEnvironment
UISplitViewControllerLayoutEnvironment only.Sourcefn setSplitViewControllerLayoutEnvironment(
&self,
split_view_controller_layout_environment: UISplitViewControllerLayoutEnvironment,
)
Available on crate feature UISplitViewControllerLayoutEnvironment only.
fn setSplitViewControllerLayoutEnvironment( &self, split_view_controller_layout_environment: UISplitViewControllerLayoutEnvironment, )
UISplitViewControllerLayoutEnvironment only.Setter for splitViewControllerLayoutEnvironment.
fn resolvesNaturalAlignmentWithBaseWritingDirection(&self) -> bool
Sourcefn setResolvesNaturalAlignmentWithBaseWritingDirection(
&self,
resolves_natural_alignment_with_base_writing_direction: bool,
)
fn setResolvesNaturalAlignmentWithBaseWritingDirection( &self, resolves_natural_alignment_with_base_writing_direction: bool, )
Setter for resolvesNaturalAlignmentWithBaseWritingDirection.