Trait objc2_ui_kit::UIMenuLeaf
source · pub unsafe trait UIMenuLeaf: NSObjectProtocol + IsMainThreadOnly {
Show 15 methods
// Provided methods
unsafe fn title(&self) -> Retained<NSString>
where Self: Sized + Message { ... }
unsafe fn setTitle(&self, title: &NSString)
where Self: Sized + Message { ... }
unsafe fn image(&self) -> Option<Retained<UIImage>>
where Self: Sized + Message { ... }
unsafe fn setImage(&self, image: Option<&UIImage>)
where Self: Sized + Message { ... }
unsafe fn selectedImage(&self) -> Option<Retained<UIImage>>
where Self: Sized + Message { ... }
unsafe fn setSelectedImage(&self, selected_image: Option<&UIImage>)
where Self: Sized + Message { ... }
unsafe fn discoverabilityTitle(&self) -> Option<Retained<NSString>>
where Self: Sized + Message { ... }
unsafe fn setDiscoverabilityTitle(
&self,
discoverability_title: Option<&NSString>
)
where Self: Sized + Message { ... }
unsafe fn attributes(&self) -> UIMenuElementAttributes
where Self: Sized + Message { ... }
unsafe fn setAttributes(&self, attributes: UIMenuElementAttributes)
where Self: Sized + Message { ... }
unsafe fn state(&self) -> UIMenuElementState
where Self: Sized + Message { ... }
unsafe fn setState(&self, state: UIMenuElementState)
where Self: Sized + Message { ... }
unsafe fn sender(&self) -> Option<Retained<AnyObject>>
where Self: Sized + Message { ... }
unsafe fn presentationSourceItem(
&self
) -> Option<Retained<ProtocolObject<dyn UIPopoverPresentationControllerSourceItem>>>
where Self: Sized + Message { ... }
unsafe fn performWithSender_target(
&self,
sender: Option<&AnyObject>,
target: Option<&AnyObject>
)
where Self: Sized + Message { ... }
}
Available on crate feature
UIMenuLeaf
only.Provided Methods§
unsafe fn title(&self) -> Retained<NSString>
unsafe fn setTitle(&self, title: &NSString)
unsafe fn image(&self) -> Option<Retained<UIImage>>
Available on crate feature
UIImage
only.unsafe fn setImage(&self, image: Option<&UIImage>)
Available on crate feature
UIImage
only.unsafe fn selectedImage(&self) -> Option<Retained<UIImage>>
Available on crate feature
UIImage
only.unsafe fn setSelectedImage(&self, selected_image: Option<&UIImage>)
Available on crate feature
UIImage
only.unsafe fn discoverabilityTitle(&self) -> Option<Retained<NSString>>
unsafe fn setDiscoverabilityTitle( &self, discoverability_title: Option<&NSString> )
unsafe fn attributes(&self) -> UIMenuElementAttributes
Available on crate feature
UIMenuElement
only.unsafe fn setAttributes(&self, attributes: UIMenuElementAttributes)
Available on crate feature
UIMenuElement
only.unsafe fn state(&self) -> UIMenuElementState
Available on crate feature
UIMenuElement
only.unsafe fn setState(&self, state: UIMenuElementState)
Available on crate feature
UIMenuElement
only.unsafe fn sender(&self) -> Option<Retained<AnyObject>>
unsafe fn presentationSourceItem( &self ) -> Option<Retained<ProtocolObject<dyn UIPopoverPresentationControllerSourceItem>>>
Available on crate feature
UIPopoverPresentationControllerSourceItem
only.unsafe fn performWithSender_target( &self, sender: Option<&AnyObject>, target: Option<&AnyObject> )
Trait Implementations§
source§impl ProtocolType for dyn UIMenuLeaf
impl ProtocolType for dyn UIMenuLeaf
impl<T> ImplementedBy<T> for dyn UIMenuLeaf
Implementations on Foreign Types§
impl<T> UIMenuLeaf for ProtocolObject<T>where
T: ?Sized + UIMenuLeaf,
Implementors§
impl UIMenuLeaf for UIAction
Available on crate features
UIMenuElement
and UIAction
only.impl UIMenuLeaf for UICommand
Available on crate features
UIMenuElement
and UICommand
only.impl UIMenuLeaf for UIKeyCommand
Available on crate features
UICommand
and UIMenuElement
and UIKeyCommand
only.impl UIMenuLeaf for UIWindowSceneActivationAction
Available on crate features
UIAction
and UIMenuElement
and UIWindowSceneActivationAction
only.