pub unsafe trait UIMutableTraits: NSObjectProtocol + MainThreadOnly {
Show 42 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 { ... }
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 { ... }
unsafe fn listEnvironment(&self) -> UIListEnvironment
where Self: Sized + Message { ... }
unsafe fn setListEnvironment(&self, list_environment: UIListEnvironment)
where Self: Sized + Message { ... }
}
Available on crate feature
UITraitCollection
only.Expand description
Provided Methods§
unsafe fn setCGFloatValue_forTrait( &self, value: CGFloat, trait: &UICGFloatTrait, )
Available on crate features
UITrait
and objc2-core-foundation
only.unsafe fn valueForCGFloatTrait(&self, trait: &UICGFloatTrait) -> CGFloat
Available on crate features
UITrait
and objc2-core-foundation
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<&ProtocolObject<dyn NSObjectProtocol>>, trait: &UIObjectTrait, )
Available on crate feature
UITrait
only.unsafe fn objectForTrait( &self, trait: &UIObjectTrait, ) -> Option<Retained<ProtocolObject<dyn NSObjectProtocol>>>
Available on crate feature
UITrait
only.unsafe fn userInterfaceIdiom(&self) -> UIUserInterfaceIdiom
Available on crate feature
UIDevice
only.Sourceunsafe fn setUserInterfaceIdiom(
&self,
user_interface_idiom: UIUserInterfaceIdiom,
)
Available on crate feature UIDevice
only.
unsafe fn setUserInterfaceIdiom( &self, user_interface_idiom: UIUserInterfaceIdiom, )
UIDevice
only.Setter for userInterfaceIdiom
.
unsafe fn userInterfaceStyle(&self) -> UIUserInterfaceStyle
Available on crate feature
UIInterface
only.Sourceunsafe fn setUserInterfaceStyle(
&self,
user_interface_style: UIUserInterfaceStyle,
)
Available on crate feature UIInterface
only.
unsafe fn setUserInterfaceStyle( &self, user_interface_style: UIUserInterfaceStyle, )
UIInterface
only.Setter for userInterfaceStyle
.
unsafe fn layoutDirection(&self) -> UITraitEnvironmentLayoutDirection
Available on crate feature
UIInterface
only.Sourceunsafe fn setLayoutDirection(
&self,
layout_direction: UITraitEnvironmentLayoutDirection,
)
Available on crate feature UIInterface
only.
unsafe fn setLayoutDirection( &self, layout_direction: UITraitEnvironmentLayoutDirection, )
UIInterface
only.Setter for layoutDirection
.
unsafe fn displayScale(&self) -> CGFloat
Available on crate feature
objc2-core-foundation
only.Sourceunsafe fn setDisplayScale(&self, display_scale: CGFloat)
Available on crate feature objc2-core-foundation
only.
unsafe fn setDisplayScale(&self, display_scale: CGFloat)
objc2-core-foundation
only.Setter for displayScale
.
unsafe fn horizontalSizeClass(&self) -> UIUserInterfaceSizeClass
Available on crate feature
UIInterface
only.Sourceunsafe fn setHorizontalSizeClass(
&self,
horizontal_size_class: UIUserInterfaceSizeClass,
)
Available on crate feature UIInterface
only.
unsafe fn setHorizontalSizeClass( &self, horizontal_size_class: UIUserInterfaceSizeClass, )
UIInterface
only.Setter for horizontalSizeClass
.
unsafe fn verticalSizeClass(&self) -> UIUserInterfaceSizeClass
Available on crate feature
UIInterface
only.Sourceunsafe fn setVerticalSizeClass(
&self,
vertical_size_class: UIUserInterfaceSizeClass,
)
Available on crate feature UIInterface
only.
unsafe fn setVerticalSizeClass( &self, vertical_size_class: UIUserInterfaceSizeClass, )
UIInterface
only.Setter for verticalSizeClass
.
unsafe fn forceTouchCapability(&self) -> UIForceTouchCapability
Available on crate feature
UITouch
only.Sourceunsafe fn setForceTouchCapability(
&self,
force_touch_capability: UIForceTouchCapability,
)
Available on crate feature UITouch
only.
unsafe fn setForceTouchCapability( &self, force_touch_capability: UIForceTouchCapability, )
UITouch
only.Setter for forceTouchCapability
.
unsafe fn preferredContentSizeCategory(&self) -> Retained<UIContentSizeCategory>
Available on crate feature
UIContentSizeCategory
only.Sourceunsafe fn setPreferredContentSizeCategory(
&self,
preferred_content_size_category: &UIContentSizeCategory,
)
Available on crate feature UIContentSizeCategory
only.
unsafe fn setPreferredContentSizeCategory( &self, preferred_content_size_category: &UIContentSizeCategory, )
UIContentSizeCategory
only.Setter for preferredContentSizeCategory
.
unsafe fn displayGamut(&self) -> UIDisplayGamut
Available on crate feature
UIInterface
only.Sourceunsafe fn setDisplayGamut(&self, display_gamut: UIDisplayGamut)
Available on crate feature UIInterface
only.
unsafe fn setDisplayGamut(&self, display_gamut: UIDisplayGamut)
UIInterface
only.Setter for displayGamut
.
unsafe fn accessibilityContrast(&self) -> UIAccessibilityContrast
Available on crate feature
UIInterface
only.Sourceunsafe fn setAccessibilityContrast(
&self,
accessibility_contrast: UIAccessibilityContrast,
)
Available on crate feature UIInterface
only.
unsafe fn setAccessibilityContrast( &self, accessibility_contrast: UIAccessibilityContrast, )
UIInterface
only.Setter for accessibilityContrast
.
unsafe fn userInterfaceLevel(&self) -> UIUserInterfaceLevel
Available on crate feature
UIInterface
only.Sourceunsafe fn setUserInterfaceLevel(
&self,
user_interface_level: UIUserInterfaceLevel,
)
Available on crate feature UIInterface
only.
unsafe fn setUserInterfaceLevel( &self, user_interface_level: UIUserInterfaceLevel, )
UIInterface
only.Setter for userInterfaceLevel
.
unsafe fn legibilityWeight(&self) -> UILegibilityWeight
Available on crate feature
UIInterface
only.Sourceunsafe fn setLegibilityWeight(&self, legibility_weight: UILegibilityWeight)
Available on crate feature UIInterface
only.
unsafe fn setLegibilityWeight(&self, legibility_weight: UILegibilityWeight)
UIInterface
only.Setter for legibilityWeight
.
unsafe fn activeAppearance(&self) -> UIUserInterfaceActiveAppearance
Available on crate feature
UIInterface
only.Sourceunsafe fn setActiveAppearance(
&self,
active_appearance: UIUserInterfaceActiveAppearance,
)
Available on crate feature UIInterface
only.
unsafe fn setActiveAppearance( &self, active_appearance: UIUserInterfaceActiveAppearance, )
UIInterface
only.Setter for activeAppearance
.
unsafe fn toolbarItemPresentationSize(&self) -> UINSToolbarItemPresentationSize
Available on crate feature
UIInterface
only.Sourceunsafe fn setToolbarItemPresentationSize(
&self,
toolbar_item_presentation_size: UINSToolbarItemPresentationSize,
)
Available on crate feature UIInterface
only.
unsafe fn setToolbarItemPresentationSize( &self, toolbar_item_presentation_size: UINSToolbarItemPresentationSize, )
UIInterface
only.Setter for toolbarItemPresentationSize
.
unsafe fn imageDynamicRange(&self) -> UIImageDynamicRange
Available on crate feature
UIInterface
only.Sourceunsafe fn setImageDynamicRange(&self, image_dynamic_range: UIImageDynamicRange)
Available on crate feature UIInterface
only.
unsafe fn setImageDynamicRange(&self, image_dynamic_range: UIImageDynamicRange)
UIInterface
only.Setter for imageDynamicRange
.
unsafe fn sceneCaptureState(&self) -> UISceneCaptureState
Available on crate feature
UISceneDefinitions
only.Sourceunsafe fn setSceneCaptureState(&self, scene_capture_state: UISceneCaptureState)
Available on crate feature UISceneDefinitions
only.
unsafe fn setSceneCaptureState(&self, scene_capture_state: UISceneCaptureState)
UISceneDefinitions
only.Setter for sceneCaptureState
.
unsafe fn typesettingLanguage(&self) -> Retained<NSString>
Sourceunsafe fn setTypesettingLanguage(&self, typesetting_language: &NSString)
unsafe fn setTypesettingLanguage(&self, typesetting_language: &NSString)
Setter for typesettingLanguage
.
unsafe fn listEnvironment(&self) -> UIListEnvironment
Available on crate feature
UITraitListEnvironment
only.Sourceunsafe fn setListEnvironment(&self, list_environment: UIListEnvironment)
Available on crate feature UITraitListEnvironment
only.
unsafe fn setListEnvironment(&self, list_environment: UIListEnvironment)
UITraitListEnvironment
only.Setter for listEnvironment
.