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§

source

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

source

unsafe fn setTitle(&self, title: &NSString)
where Self: Sized + Message,

source

unsafe fn image(&self) -> Option<Retained<UIImage>>
where Self: Sized + Message,

Available on crate feature UIImage only.
source

unsafe fn setImage(&self, image: Option<&UIImage>)
where Self: Sized + Message,

Available on crate feature UIImage only.
source

unsafe fn selectedImage(&self) -> Option<Retained<UIImage>>
where Self: Sized + Message,

Available on crate feature UIImage only.
source

unsafe fn setSelectedImage(&self, selected_image: Option<&UIImage>)
where Self: Sized + Message,

Available on crate feature UIImage only.
source

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

source

unsafe fn setDiscoverabilityTitle( &self, discoverability_title: Option<&NSString> )
where Self: Sized + Message,

source

unsafe fn attributes(&self) -> UIMenuElementAttributes
where Self: Sized + Message,

Available on crate feature UIMenuElement only.
source

unsafe fn setAttributes(&self, attributes: UIMenuElementAttributes)
where Self: Sized + Message,

Available on crate feature UIMenuElement only.
source

unsafe fn state(&self) -> UIMenuElementState
where Self: Sized + Message,

Available on crate feature UIMenuElement only.
source

unsafe fn setState(&self, state: UIMenuElementState)
where Self: Sized + Message,

Available on crate feature UIMenuElement only.
source

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

source

unsafe fn presentationSourceItem( &self ) -> Option<Retained<ProtocolObject<dyn UIPopoverPresentationControllerSourceItem>>>
where Self: Sized + Message,

Available on crate feature UIPopoverPresentationControllerSourceItem only.
source

unsafe fn performWithSender_target( &self, sender: Option<&AnyObject>, target: Option<&AnyObject> )
where Self: Sized + Message,

Trait Implementations§

source§

impl ProtocolType for dyn UIMenuLeaf

source§

const NAME: &'static str = "UIMenuLeaf"

The name of the Objective-C protocol that this type represents.
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 UIMenuLeaf
where T: ?Sized + Message + UIMenuLeaf,

Implementations on Foreign Types§

source§

impl<T> UIMenuLeaf for ProtocolObject<T>
where T: ?Sized + UIMenuLeaf,

Implementors§

source§

impl UIMenuLeaf for UIAction

Available on crate features UIMenuElement and UIAction only.
source§

impl UIMenuLeaf for UICommand

Available on crate features UIMenuElement and UICommand only.
source§

impl UIMenuLeaf for UIKeyCommand

Available on crate features UICommand and UIMenuElement and UIKeyCommand only.
source§

impl UIMenuLeaf for UIWindowSceneActivationAction

Available on crate features UIAction and UIMenuElement and UIWindowSceneActivationAction only.