Trait NSValidatedUserInterfaceItem

Source
pub unsafe trait NSValidatedUserInterfaceItem: MainThreadOnly {
    // Provided methods
    unsafe fn action(&self) -> Option<Sel>
       where Self: Sized + Message { ... }
    unsafe fn tag(&self) -> NSInteger
       where Self: Sized + Message { ... }
}
Available on crate feature NSUserInterfaceValidation only.
Expand description

Provided Methods§

Source

unsafe fn action(&self) -> Option<Sel>
where Self: Sized + Message,

Source

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

Trait Implementations§

Source§

impl ProtocolType for dyn NSValidatedUserInterfaceItem

Source§

const NAME: &'static str = "NSValidatedUserInterfaceItem"

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 NSValidatedUserInterfaceItem

Implementations on Foreign Types§

Source§

impl<T> NSValidatedUserInterfaceItem for ProtocolObject<T>

Implementors§

Source§

impl NSValidatedUserInterfaceItem for NSMenuItem

Available on crate feature NSMenuItem only.
Source§

impl NSValidatedUserInterfaceItem for NSToolbarItem

Available on crate feature NSToolbarItem only.