objc2_app_kit/generated/
NSTextStorageScripting.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10#[cfg(feature = "NSTextStorage")]
12impl NSTextStorage {
13 extern_methods!(
14 #[unsafe(method(attributeRuns))]
15 #[unsafe(method_family = none)]
16 pub unsafe fn attributeRuns(&self) -> Retained<NSArray<NSTextStorage>>;
17
18 #[unsafe(method(setAttributeRuns:))]
20 #[unsafe(method_family = none)]
21 pub unsafe fn setAttributeRuns(&self, attribute_runs: &NSArray<NSTextStorage>);
22
23 #[unsafe(method(paragraphs))]
24 #[unsafe(method_family = none)]
25 pub unsafe fn paragraphs(&self) -> Retained<NSArray<NSTextStorage>>;
26
27 #[unsafe(method(setParagraphs:))]
29 #[unsafe(method_family = none)]
30 pub unsafe fn setParagraphs(&self, paragraphs: &NSArray<NSTextStorage>);
31
32 #[unsafe(method(words))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn words(&self) -> Retained<NSArray<NSTextStorage>>;
35
36 #[unsafe(method(setWords:))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn setWords(&self, words: &NSArray<NSTextStorage>);
40
41 #[unsafe(method(characters))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn characters(&self) -> Retained<NSArray<NSTextStorage>>;
44
45 #[unsafe(method(setCharacters:))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn setCharacters(&self, characters: &NSArray<NSTextStorage>);
49
50 #[cfg(feature = "NSFont")]
51 #[unsafe(method(font))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn font(&self) -> Option<Retained<NSFont>>;
54
55 #[cfg(feature = "NSFont")]
56 #[unsafe(method(setFont:))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn setFont(&self, font: Option<&NSFont>);
60
61 #[cfg(feature = "NSColor")]
62 #[unsafe(method(foregroundColor))]
63 #[unsafe(method_family = none)]
64 pub unsafe fn foregroundColor(&self) -> Option<Retained<NSColor>>;
65
66 #[cfg(feature = "NSColor")]
67 #[unsafe(method(setForegroundColor:))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn setForegroundColor(&self, foreground_color: Option<&NSColor>);
71 );
72}