Trait UIMutableTraits

Source
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§

Source

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

Available on crate features UITrait and objc2-core-foundation only.
Source

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

Available on crate features UITrait and objc2-core-foundation 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<&ProtocolObject<dyn NSObjectProtocol>>, trait: &UIObjectTrait, )
where Self: Sized + Message,

Available on crate feature UITrait only.
Source

unsafe fn objectForTrait( &self, trait: &UIObjectTrait, ) -> Option<Retained<ProtocolObject<dyn NSObjectProtocol>>>
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.

Setter for userInterfaceIdiom.

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.

Setter for userInterfaceStyle.

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.

Setter for layoutDirection.

Source

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

Available on crate feature objc2-core-foundation only.
Source

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

Available on crate feature objc2-core-foundation only.

Setter for displayScale.

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.

Setter for horizontalSizeClass.

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.

Setter for verticalSizeClass.

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.

Setter for displayGamut.

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.

Setter for userInterfaceLevel.

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.

Setter for legibilityWeight.

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.

Setter for activeAppearance.

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.

Setter for imageDynamicRange.

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.

Setter for sceneCaptureState.

Source

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

Source

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

Setter for typesettingLanguage.

Source

unsafe fn listEnvironment(&self) -> UIListEnvironment
where Self: Sized + Message,

Available on crate feature UITraitListEnvironment only.
Source

unsafe fn setListEnvironment(&self, list_environment: UIListEnvironment)
where Self: Sized + Message,

Available on crate feature UITraitListEnvironment only.

Setter for listEnvironment.

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. Read more
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§