icrate 0.1.2

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)]
    #[cfg(feature = "AppKit_NSPredicateEditor")]
    pub struct NSPredicateEditor;

    #[cfg(feature = "AppKit_NSPredicateEditor")]
    unsafe impl ClassType for NSPredicateEditor {
        #[inherits(NSControl, NSView, NSResponder, NSObject)]
        type Super = NSRuleEditor;
        type Mutability = MainThreadOnly;
    }
);

#[cfg(feature = "AppKit_NSPredicateEditor")]
unsafe impl NSAccessibility for NSPredicateEditor {}

#[cfg(feature = "AppKit_NSPredicateEditor")]
unsafe impl NSAccessibilityElementProtocol for NSPredicateEditor {}

#[cfg(feature = "AppKit_NSPredicateEditor")]
unsafe impl NSAnimatablePropertyContainer for NSPredicateEditor {}

#[cfg(feature = "AppKit_NSPredicateEditor")]
unsafe impl NSAppearanceCustomization for NSPredicateEditor {}

#[cfg(feature = "AppKit_NSPredicateEditor")]
unsafe impl NSCoding for NSPredicateEditor {}

#[cfg(feature = "AppKit_NSPredicateEditor")]
unsafe impl NSDraggingDestination for NSPredicateEditor {}

#[cfg(feature = "AppKit_NSPredicateEditor")]
unsafe impl NSObjectProtocol for NSPredicateEditor {}

#[cfg(feature = "AppKit_NSPredicateEditor")]
unsafe impl NSUserInterfaceItemIdentification for NSPredicateEditor {}

extern_methods!(
    #[cfg(feature = "AppKit_NSPredicateEditor")]
    unsafe impl NSPredicateEditor {
        #[cfg(all(
            feature = "AppKit_NSPredicateEditorRowTemplate",
            feature = "Foundation_NSArray"
        ))]
        #[method_id(@__retain_semantics Other rowTemplates)]
        pub unsafe fn rowTemplates(&self) -> Id<NSArray<NSPredicateEditorRowTemplate>>;

        #[cfg(all(
            feature = "AppKit_NSPredicateEditorRowTemplate",
            feature = "Foundation_NSArray"
        ))]
        #[method(setRowTemplates:)]
        pub unsafe fn setRowTemplates(&self, row_templates: &NSArray<NSPredicateEditorRowTemplate>);
    }
);

extern_methods!(
    /// Methods declared on superclass `NSControl`
    #[cfg(feature = "AppKit_NSPredicateEditor")]
    unsafe impl NSPredicateEditor {
        #[method_id(@__retain_semantics Init initWithFrame:)]
        pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Id<Self>;

        #[cfg(feature = "Foundation_NSCoder")]
        #[method_id(@__retain_semantics Init initWithCoder:)]
        pub unsafe fn initWithCoder(this: Allocated<Self>, coder: &NSCoder) -> Option<Id<Self>>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSResponder`
    #[cfg(feature = "AppKit_NSPredicateEditor")]
    unsafe impl NSPredicateEditor {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "AppKit_NSPredicateEditor")]
    unsafe impl NSPredicateEditor {
        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new(mtm: MainThreadMarker) -> Id<Self>;
    }
);