icrate 0.0.1

Bindings to Apple's frameworks
Documentation
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::CoreData::*;
use crate::Foundation::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    pub struct NSTrackingSeparatorToolbarItem;

    unsafe impl ClassType for NSTrackingSeparatorToolbarItem {
        #[inherits(NSObject)]
        type Super = NSToolbarItem;
    }
);

extern_methods!(
    unsafe impl NSTrackingSeparatorToolbarItem {
        #[method_id(@__retain_semantics Other trackingSeparatorToolbarItemWithIdentifier:splitView:dividerIndex:)]
        pub unsafe fn trackingSeparatorToolbarItemWithIdentifier_splitView_dividerIndex(
            identifier: &NSToolbarItemIdentifier,
            splitView: &NSSplitView,
            dividerIndex: NSInteger,
        ) -> Id<Self, Shared>;

        #[method_id(@__retain_semantics Other splitView)]
        pub unsafe fn splitView(&self) -> Id<NSSplitView, Shared>;

        #[method(setSplitView:)]
        pub unsafe fn setSplitView(&self, splitView: &NSSplitView);

        #[method(dividerIndex)]
        pub unsafe fn dividerIndex(&self) -> NSInteger;

        #[method(setDividerIndex:)]
        pub unsafe fn setDividerIndex(&self, dividerIndex: NSInteger);
    }
);

extern_methods!(
    /// Methods declared on superclass `NSToolbarItem`
    unsafe impl NSTrackingSeparatorToolbarItem {
        #[method_id(@__retain_semantics Init initWithItemIdentifier:)]
        pub unsafe fn initWithItemIdentifier(
            this: Option<Allocated<Self>>,
            itemIdentifier: &NSToolbarItemIdentifier,
        ) -> Id<Self, Shared>;
    }
);