Trait cocoa::appkit::NSMenu

source ·
pub trait NSMenu: Sized {
    // Required methods
    unsafe fn initWithTitle_(self, title: id) -> id;
    unsafe fn setAutoenablesItems(self, state: BOOL);
    unsafe fn addItem_(self, menu_item: id);
    unsafe fn addItemWithTitle_action_keyEquivalent(
        self,
        title: id,
        action: SEL,
        key: id
    ) -> id;
    unsafe fn itemAtIndex_(self, index: NSInteger) -> id;

    // Provided methods
    unsafe fn alloc(_: Self) -> id { ... }
    unsafe fn new(_: Self) -> id { ... }
}

Required Methods§

source

unsafe fn initWithTitle_(self, title: id) -> id

source

unsafe fn setAutoenablesItems(self, state: BOOL)

source

unsafe fn addItem_(self, menu_item: id)

source

unsafe fn addItemWithTitle_action_keyEquivalent( self, title: id, action: SEL, key: id ) -> id

source

unsafe fn itemAtIndex_(self, index: NSInteger) -> id

Provided Methods§

source

unsafe fn alloc(_: Self) -> id

source

unsafe fn new(_: Self) -> id

Implementors§