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 NSScrubberArrangedView;

    unsafe impl ClassType for NSScrubberArrangedView {
        #[inherits(NSResponder, NSObject)]
        type Super = NSView;
    }
);

extern_methods!(
    unsafe impl NSScrubberArrangedView {
        #[method(isSelected)]
        pub unsafe fn isSelected(&self) -> bool;

        #[method(setSelected:)]
        pub unsafe fn setSelected(&self, selected: bool);

        #[method(isHighlighted)]
        pub unsafe fn isHighlighted(&self) -> bool;

        #[method(setHighlighted:)]
        pub unsafe fn setHighlighted(&self, highlighted: bool);

        #[method(applyLayoutAttributes:)]
        pub unsafe fn applyLayoutAttributes(&self, layoutAttributes: &NSScrubberLayoutAttributes);
    }
);

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

    unsafe impl ClassType for NSScrubberSelectionView {
        #[inherits(NSView, NSResponder, NSObject)]
        type Super = NSScrubberArrangedView;
    }
);

extern_methods!(
    unsafe impl NSScrubberSelectionView {}
);

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

    unsafe impl ClassType for NSScrubberItemView {
        #[inherits(NSView, NSResponder, NSObject)]
        type Super = NSScrubberArrangedView;
    }
);

extern_methods!(
    unsafe impl NSScrubberItemView {}
);

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

    unsafe impl ClassType for NSScrubberTextItemView {
        #[inherits(NSScrubberArrangedView, NSView, NSResponder, NSObject)]
        type Super = NSScrubberItemView;
    }
);

extern_methods!(
    unsafe impl NSScrubberTextItemView {
        #[method_id(@__retain_semantics Other textField)]
        pub unsafe fn textField(&self) -> Id<NSTextField, Shared>;

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

        #[method(setTitle:)]
        pub unsafe fn setTitle(&self, title: &NSString);
    }
);

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

    unsafe impl ClassType for NSScrubberImageItemView {
        #[inherits(NSScrubberArrangedView, NSView, NSResponder, NSObject)]
        type Super = NSScrubberItemView;
    }
);

extern_methods!(
    unsafe impl NSScrubberImageItemView {
        #[method_id(@__retain_semantics Other imageView)]
        pub unsafe fn imageView(&self) -> Id<NSImageView, Shared>;

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

        #[method(setImage:)]
        pub unsafe fn setImage(&self, image: &NSImage);

        #[method(imageAlignment)]
        pub unsafe fn imageAlignment(&self) -> NSImageAlignment;

        #[method(setImageAlignment:)]
        pub unsafe fn setImageAlignment(&self, imageAlignment: NSImageAlignment);
    }
);

extern_methods!(
    /// Methods declared on superclass `NSView`
    unsafe impl NSScrubberArrangedView {
        #[method_id(@__retain_semantics Init initWithFrame:)]
        pub unsafe fn initWithFrame(
            this: Option<Allocated<Self>>,
            frameRect: NSRect,
        ) -> Id<Self, Shared>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSView`
    unsafe impl NSScrubberSelectionView {
        #[method_id(@__retain_semantics Init initWithFrame:)]
        pub unsafe fn initWithFrame(
            this: Option<Allocated<Self>>,
            frameRect: NSRect,
        ) -> Id<Self, Shared>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSView`
    unsafe impl NSScrubberItemView {
        #[method_id(@__retain_semantics Init initWithFrame:)]
        pub unsafe fn initWithFrame(
            this: Option<Allocated<Self>>,
            frameRect: NSRect,
        ) -> Id<Self, Shared>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSView`
    unsafe impl NSScrubberTextItemView {
        #[method_id(@__retain_semantics Init initWithFrame:)]
        pub unsafe fn initWithFrame(
            this: Option<Allocated<Self>>,
            frameRect: NSRect,
        ) -> Id<Self, Shared>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSView`
    unsafe impl NSScrubberImageItemView {
        #[method_id(@__retain_semantics Init initWithFrame:)]
        pub unsafe fn initWithFrame(
            this: Option<Allocated<Self>>,
            frameRect: NSRect,
        ) -> Id<Self, Shared>;
    }
);