Trait objc2_app_kit::NSMenuItemValidation

source ·
pub unsafe trait NSMenuItemValidation: NSObjectProtocol + IsMainThreadOnly {
    // Provided method
    unsafe fn validateMenuItem(&self, menu_item: &NSMenuItem) -> bool
       where Self: Sized + Message { ... }
}
Available on crate feature NSMenu only.

Provided Methods§

source

unsafe fn validateMenuItem(&self, menu_item: &NSMenuItem) -> bool
where Self: Sized + Message,

Available on crate feature NSMenuItem only.

Trait Implementations§

source§

impl ProtocolType for dyn NSMenuItemValidation

source§

const NAME: &'static str = "NSMenuItemValidation"

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 NSMenuItemValidation

Implementations on Foreign Types§

source§

impl<T> NSMenuItemValidation for ProtocolObject<T>

Implementors§

source§

impl NSMenuItemValidation for NSApplication

Available on crate features NSResponder and NSApplication only.
source§

impl NSMenuItemValidation for NSColorPanel

Available on crate features NSPanel and NSResponder and NSWindow and NSColorPanel only.
source§

impl NSMenuItemValidation for NSDocument

Available on crate feature NSDocument only.
source§

impl NSMenuItemValidation for NSDocumentController

Available on crate feature NSDocumentController only.
source§

impl NSMenuItemValidation for NSFontManager

Available on crate feature NSFontManager only.
source§

impl NSMenuItemValidation for NSFontPanel

Available on crate features NSPanel and NSResponder and NSWindow and NSFontPanel only.
source§

impl NSMenuItemValidation for NSImageView

Available on crate features NSControl and NSResponder and NSView and NSImageView only.
source§

impl NSMenuItemValidation for NSOpenPanel

Available on crate features NSPanel and NSResponder and NSSavePanel and NSWindow and NSOpenPanel only.
source§

impl NSMenuItemValidation for NSPanel

Available on crate features NSResponder and NSWindow and NSPanel only.
source§

impl NSMenuItemValidation for NSPathCell

Available on crate features NSActionCell and NSCell and NSPathCell only.
source§

impl NSMenuItemValidation for NSPersistentDocument

Available on crate features NSDocument and NSPersistentDocument only.
source§

impl NSMenuItemValidation for NSPopUpButtonCell

Available on crate features NSActionCell and NSButtonCell and NSCell and NSMenuItemCell and NSPopUpButtonCell only.
source§

impl NSMenuItemValidation for NSSavePanel

Available on crate features NSPanel and NSResponder and NSWindow and NSSavePanel only.
source§

impl NSMenuItemValidation for NSTextView

Available on crate features NSResponder and NSText and NSView and NSTextView only.
source§

impl NSMenuItemValidation for NSToolbarItem

Available on crate feature NSToolbarItem only.
source§

impl NSMenuItemValidation for NSWindow

Available on crate features NSResponder and NSWindow only.