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::*;

typed_extensible_enum!(
    pub type NSTextListMarkerFormat = NSString;
);

extern_static!(NSTextListMarkerBox: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerCheck: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerCircle: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerDiamond: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerDisc: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerHyphen: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerSquare: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerLowercaseHexadecimal: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerUppercaseHexadecimal: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerOctal: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerLowercaseAlpha: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerUppercaseAlpha: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerLowercaseLatin: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerUppercaseLatin: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerLowercaseRoman: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerUppercaseRoman: &'static NSTextListMarkerFormat);

extern_static!(NSTextListMarkerDecimal: &'static NSTextListMarkerFormat);

ns_options!(
    #[underlying(NSUInteger)]
    pub enum NSTextListOptions {
        NSTextListPrependEnclosingMarker = 1 << 0,
    }
);

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

    unsafe impl ClassType for NSTextList {
        type Super = NSObject;
    }
);

extern_methods!(
    unsafe impl NSTextList {
        #[method_id(@__retain_semantics Init initWithMarkerFormat:options:)]
        pub unsafe fn initWithMarkerFormat_options(
            this: Option<Allocated<Self>>,
            format: &NSTextListMarkerFormat,
            mask: NSUInteger,
        ) -> Id<Self, Shared>;

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

        #[method(listOptions)]
        pub unsafe fn listOptions(&self) -> NSTextListOptions;

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

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

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