Trait UIConfigurationState

Source
pub unsafe trait UIConfigurationState:
    NSObjectProtocol
    + NSCopying
    + NSSecureCoding
    + MainThreadOnly {
    // Provided methods
    unsafe fn initWithTraitCollection(
        this: Allocated<Self>,
        trait_collection: &UITraitCollection,
    ) -> Retained<Self>
       where Self: Sized + Message { ... }
    unsafe fn traitCollection(&self) -> Retained<UITraitCollection>
       where Self: Sized + Message { ... }
    unsafe fn setTraitCollection(&self, trait_collection: &UITraitCollection)
       where Self: Sized + Message { ... }
    unsafe fn customStateForKey(
        &self,
        key: &UIConfigurationStateCustomKey,
    ) -> Option<Retained<AnyObject>>
       where Self: Sized + Message { ... }
    unsafe fn setCustomState_forKey(
        &self,
        custom_state: Option<&AnyObject>,
        key: &UIConfigurationStateCustomKey,
    )
       where Self: Sized + Message { ... }
    unsafe fn objectForKeyedSubscript(
        &self,
        key: &UIConfigurationStateCustomKey,
    ) -> Option<Retained<AnyObject>>
       where Self: Sized + Message { ... }
    unsafe fn setObject_forKeyedSubscript(
        &self,
        obj: Option<&AnyObject>,
        key: &UIConfigurationStateCustomKey,
    )
       where Self: Sized + Message { ... }
}
Available on crate feature UIConfigurationState only.
Expand description

Provided Methods§

Source

unsafe fn initWithTraitCollection( this: Allocated<Self>, trait_collection: &UITraitCollection, ) -> Retained<Self>
where Self: Sized + Message,

Available on crate feature UITraitCollection only.

Returns a new instance with the specified trait collection.

Source

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

Available on crate feature UITraitCollection only.
Source

unsafe fn setTraitCollection(&self, trait_collection: &UITraitCollection)
where Self: Sized + Message,

Available on crate feature UITraitCollection only.

Setter for traitCollection.

Source

unsafe fn customStateForKey( &self, key: &UIConfigurationStateCustomKey, ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

Returns the custom state for the specified key.

Source

unsafe fn setCustomState_forKey( &self, custom_state: Option<&AnyObject>, key: &UIConfigurationStateCustomKey, )
where Self: Sized + Message,

Sets the custom state for the specified key.

Source

unsafe fn objectForKeyedSubscript( &self, key: &UIConfigurationStateCustomKey, ) -> Option<Retained<AnyObject>>
where Self: Sized + Message,

Source

unsafe fn setObject_forKeyedSubscript( &self, obj: Option<&AnyObject>, key: &UIConfigurationStateCustomKey, )
where Self: Sized + Message,

Trait Implementations§

Source§

impl ProtocolType for dyn UIConfigurationState

Source§

const NAME: &'static str = "UIConfigurationState"

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 UIConfigurationState

Implementations on Foreign Types§

Source§

impl<T> UIConfigurationState for ProtocolObject<T>

Implementors§

Source§

impl UIConfigurationState for UICellConfigurationState

Available on crate feature UICellConfigurationState only.
Source§

impl UIConfigurationState for UIContentUnavailableConfigurationState

Available on crate feature UIContentUnavailableConfigurationState only.
Source§

impl UIConfigurationState for UIViewConfigurationState

Available on crate feature UIViewConfigurationState only.