UIMutableTraits

Trait UIMutableTraits 

Source
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 { ... }
}
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.
§Safety

trait must implement UICGFloatTraitDefinition.

Source

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

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

trait must implement UICGFloatTraitDefinition.

Source

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

Available on crate feature UITrait only.
§Safety

trait must implement UINSIntegerTraitDefinition.

Source

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

Available on crate feature UITrait only.
§Safety

trait must implement UINSIntegerTraitDefinition.

Source

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

Available on crate feature UITrait only.
§Safety
  • object should be of the correct type.
  • trait must implement UIObjectTraitDefinition.
Source

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

Available on crate feature UITrait only.
§Safety

trait must implement UIObjectTraitDefinition.

Source

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

Available on crate feature UIDevice only.
Source

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

Available on crate feature UIDevice only.

Setter for userInterfaceIdiom.

Source

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

Available on crate feature UIInterface only.
Source

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

Available on crate feature UIInterface only.

Setter for userInterfaceStyle.

Source

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

Available on crate feature UIInterface only.
Source

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

Available on crate feature UIInterface only.

Setter for layoutDirection.

Source

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

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

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

Available on crate feature objc2-core-foundation only.

Setter for displayScale.

Source

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

Available on crate feature UIInterface only.
Source

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

Available on crate feature UIInterface only.

Setter for horizontalSizeClass.

Source

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

Available on crate feature UIInterface only.
Source

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

Available on crate feature UIInterface only.

Setter for verticalSizeClass.

Source

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

Available on crate feature UITouch only.
Source

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

Available on crate feature UITouch only.
Source

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

Available on crate feature UIContentSizeCategory only.
Source

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

Available on crate feature UIContentSizeCategory only.

Setter for preferredContentSizeCategory.

This is copied when set.

Source

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

Available on crate feature UIInterface only.
Source

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

Available on crate feature UIInterface only.

Setter for displayGamut.

Source

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

Available on crate feature UIInterface only.
Source

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

Available on crate feature UIInterface only.
Source

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

Available on crate feature UIInterface only.
Source

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

Available on crate feature UIInterface only.

Setter for userInterfaceLevel.

Source

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

Available on crate feature UIInterface only.
Source

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

Available on crate feature UIInterface only.

Setter for legibilityWeight.

Source

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

Available on crate feature UIInterface only.
Source

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

Available on crate feature UIInterface only.

Setter for activeAppearance.

Source

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

Available on crate feature UIInterface only.
Source

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

Available on crate feature UIInterface only.
Source

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

Available on crate feature UIInterface only.
Source

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

Available on crate feature UIInterface only.

Setter for imageDynamicRange.

Source

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

Available on crate feature UISceneDefinitions only.
Source

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

Available on crate feature UISceneDefinitions only.

Setter for sceneCaptureState.

Source

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

Source

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

Setter for typesettingLanguage.

This is copied when set.

Source

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

Available on crate feature UITraitListEnvironment only.
Source

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

Available on crate feature UITraitListEnvironment only.

Setter for listEnvironment.

Source

fn tabAccessoryEnvironment(&self) -> UITabAccessoryEnvironment
where Self: Sized + Message,

Available on crate feature UITabAccessory only.
Source

fn setTabAccessoryEnvironment( &self, tab_accessory_environment: UITabAccessoryEnvironment, )
where Self: Sized + Message,

Available on crate feature UITabAccessory only.
Source

fn splitViewControllerLayoutEnvironment( &self, ) -> UISplitViewControllerLayoutEnvironment
where Self: Sized + Message,

Available on crate feature UISplitViewControllerLayoutEnvironment only.
Source

fn setSplitViewControllerLayoutEnvironment( &self, split_view_controller_layout_environment: UISplitViewControllerLayoutEnvironment, )
where Self: Sized + Message,

Available on crate feature UISplitViewControllerLayoutEnvironment only.
Source

fn resolvesNaturalAlignmentWithBaseWritingDirection(&self) -> bool
where Self: Sized + Message,

Source

fn setResolvesNaturalAlignmentWithBaseWritingDirection( &self, resolves_natural_alignment_with_base_writing_direction: bool, )
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. 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§