1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_methods!(
    /// Scripting
    #[cfg(feature = "NSTextStorage")]
    unsafe impl NSTextStorage {
        #[method_id(@__retain_semantics Other attributeRuns)]
        pub unsafe fn attributeRuns(&self) -> Id<NSArray<NSTextStorage>>;

        #[method(setAttributeRuns:)]
        pub unsafe fn setAttributeRuns(&mut self, attribute_runs: &NSArray<NSTextStorage>);

        #[method_id(@__retain_semantics Other paragraphs)]
        pub unsafe fn paragraphs(&self) -> Id<NSArray<NSTextStorage>>;

        #[method(setParagraphs:)]
        pub unsafe fn setParagraphs(&mut self, paragraphs: &NSArray<NSTextStorage>);

        #[method_id(@__retain_semantics Other words)]
        pub unsafe fn words(&self) -> Id<NSArray<NSTextStorage>>;

        #[method(setWords:)]
        pub unsafe fn setWords(&mut self, words: &NSArray<NSTextStorage>);

        #[method_id(@__retain_semantics Other characters)]
        pub unsafe fn characters(&self) -> Id<NSArray<NSTextStorage>>;

        #[method(setCharacters:)]
        pub unsafe fn setCharacters(&mut self, characters: &NSArray<NSTextStorage>);

        #[cfg(feature = "NSFont")]
        #[method_id(@__retain_semantics Other font)]
        pub unsafe fn font(&self) -> Option<Id<NSFont>>;

        #[cfg(feature = "NSFont")]
        #[method(setFont:)]
        pub unsafe fn setFont(&mut self, font: Option<&NSFont>);

        #[cfg(feature = "NSColor")]
        #[method_id(@__retain_semantics Other foregroundColor)]
        pub unsafe fn foregroundColor(&self) -> Option<Id<NSColor>>;

        #[cfg(feature = "NSColor")]
        #[method(setForegroundColor:)]
        pub unsafe fn setForegroundColor(&mut self, foreground_color: Option<&NSColor>);
    }
);