objc2_core_spotlight/generated/
CSSearchableItemAttributeSet_Documents.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10/// CSDocuments.
11#[cfg(feature = "CSSearchableItemAttributeSet")]
12impl CSSearchableItemAttributeSet {
13    extern_methods!(
14        #[unsafe(method(moveFrom:))]
15        #[unsafe(method_family = none)]
16        pub unsafe fn moveFrom(&self, source_attribute_set: &CSSearchableItemAttributeSet);
17
18        /// Subject of the this item.
19        #[unsafe(method(subject))]
20        #[unsafe(method_family = none)]
21        pub unsafe fn subject(&self) -> Option<Retained<NSString>>;
22
23        /// Setter for [`subject`][Self::subject].
24        ///
25        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
26        #[unsafe(method(setSubject:))]
27        #[unsafe(method_family = none)]
28        pub unsafe fn setSubject(&self, subject: Option<&NSString>);
29
30        #[unsafe(method(theme))]
31        #[unsafe(method_family = none)]
32        pub unsafe fn theme(&self) -> Option<Retained<NSString>>;
33
34        /// Setter for [`theme`][Self::theme].
35        ///
36        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
37        #[unsafe(method(setTheme:))]
38        #[unsafe(method_family = none)]
39        pub unsafe fn setTheme(&self, theme: Option<&NSString>);
40
41        #[unsafe(method(contentDescription))]
42        #[unsafe(method_family = none)]
43        pub unsafe fn contentDescription(&self) -> Option<Retained<NSString>>;
44
45        /// Setter for [`contentDescription`][Self::contentDescription].
46        ///
47        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
48        #[unsafe(method(setContentDescription:))]
49        #[unsafe(method_family = none)]
50        pub unsafe fn setContentDescription(&self, content_description: Option<&NSString>);
51
52        #[unsafe(method(identifier))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn identifier(&self) -> Option<Retained<NSString>>;
55
56        /// Setter for [`identifier`][Self::identifier].
57        ///
58        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
59        #[unsafe(method(setIdentifier:))]
60        #[unsafe(method_family = none)]
61        pub unsafe fn setIdentifier(&self, identifier: Option<&NSString>);
62
63        #[unsafe(method(audiences))]
64        #[unsafe(method_family = none)]
65        pub unsafe fn audiences(&self) -> Option<Retained<NSArray<NSString>>>;
66
67        /// Setter for [`audiences`][Self::audiences].
68        ///
69        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
70        #[unsafe(method(setAudiences:))]
71        #[unsafe(method_family = none)]
72        pub unsafe fn setAudiences(&self, audiences: Option<&NSArray<NSString>>);
73
74        #[unsafe(method(fileSize))]
75        #[unsafe(method_family = none)]
76        pub unsafe fn fileSize(&self) -> Option<Retained<NSNumber>>;
77
78        /// Setter for [`fileSize`][Self::fileSize].
79        #[unsafe(method(setFileSize:))]
80        #[unsafe(method_family = none)]
81        pub unsafe fn setFileSize(&self, file_size: Option<&NSNumber>);
82
83        #[unsafe(method(pageCount))]
84        #[unsafe(method_family = none)]
85        pub unsafe fn pageCount(&self) -> Option<Retained<NSNumber>>;
86
87        /// Setter for [`pageCount`][Self::pageCount].
88        #[unsafe(method(setPageCount:))]
89        #[unsafe(method_family = none)]
90        pub unsafe fn setPageCount(&self, page_count: Option<&NSNumber>);
91
92        #[unsafe(method(pageWidth))]
93        #[unsafe(method_family = none)]
94        pub unsafe fn pageWidth(&self) -> Option<Retained<NSNumber>>;
95
96        /// Setter for [`pageWidth`][Self::pageWidth].
97        #[unsafe(method(setPageWidth:))]
98        #[unsafe(method_family = none)]
99        pub unsafe fn setPageWidth(&self, page_width: Option<&NSNumber>);
100
101        #[unsafe(method(pageHeight))]
102        #[unsafe(method_family = none)]
103        pub unsafe fn pageHeight(&self) -> Option<Retained<NSNumber>>;
104
105        /// Setter for [`pageHeight`][Self::pageHeight].
106        #[unsafe(method(setPageHeight:))]
107        #[unsafe(method_family = none)]
108        pub unsafe fn setPageHeight(&self, page_height: Option<&NSNumber>);
109
110        #[unsafe(method(securityMethod))]
111        #[unsafe(method_family = none)]
112        pub unsafe fn securityMethod(&self) -> Option<Retained<NSString>>;
113
114        /// Setter for [`securityMethod`][Self::securityMethod].
115        #[unsafe(method(setSecurityMethod:))]
116        #[unsafe(method_family = none)]
117        pub unsafe fn setSecurityMethod(&self, security_method: Option<&NSString>);
118
119        #[unsafe(method(creator))]
120        #[unsafe(method_family = none)]
121        pub unsafe fn creator(&self) -> Option<Retained<NSString>>;
122
123        /// Setter for [`creator`][Self::creator].
124        ///
125        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
126        #[unsafe(method(setCreator:))]
127        #[unsafe(method_family = none)]
128        pub unsafe fn setCreator(&self, creator: Option<&NSString>);
129
130        #[unsafe(method(encodingApplications))]
131        #[unsafe(method_family = none)]
132        pub unsafe fn encodingApplications(&self) -> Option<Retained<NSArray<NSString>>>;
133
134        /// Setter for [`encodingApplications`][Self::encodingApplications].
135        ///
136        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
137        #[unsafe(method(setEncodingApplications:))]
138        #[unsafe(method_family = none)]
139        pub unsafe fn setEncodingApplications(
140            &self,
141            encoding_applications: Option<&NSArray<NSString>>,
142        );
143
144        #[unsafe(method(kind))]
145        #[unsafe(method_family = none)]
146        pub unsafe fn kind(&self) -> Option<Retained<NSString>>;
147
148        /// Setter for [`kind`][Self::kind].
149        ///
150        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
151        #[unsafe(method(setKind:))]
152        #[unsafe(method_family = none)]
153        pub unsafe fn setKind(&self, kind: Option<&NSString>);
154
155        #[unsafe(method(fontNames))]
156        #[unsafe(method_family = none)]
157        pub unsafe fn fontNames(&self) -> Option<Retained<NSArray<NSString>>>;
158
159        /// Setter for [`fontNames`][Self::fontNames].
160        ///
161        /// This is [copied][objc2_foundation::NSCopying::copy] when set.
162        #[unsafe(method(setFontNames:))]
163        #[unsafe(method_family = none)]
164        pub unsafe fn setFontNames(&self, font_names: Option<&NSArray<NSString>>);
165    );
166}