objc2_app_kit/generated/NSTextContent.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/// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttype?language=objc)
11// NS_TYPED_ENUM
12pub type NSTextContentType = NSString;
13
14extern "C" {
15 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypeusername?language=objc)
16 pub static NSTextContentTypeUsername: &'static NSTextContentType;
17}
18
19extern "C" {
20 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypepassword?language=objc)
21 pub static NSTextContentTypePassword: &'static NSTextContentType;
22}
23
24extern "C" {
25 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypeonetimecode?language=objc)
26 pub static NSTextContentTypeOneTimeCode: &'static NSTextContentType;
27}
28
29extern "C" {
30 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypenewpassword?language=objc)
31 pub static NSTextContentTypeNewPassword: &'static NSTextContentType;
32}
33
34extern "C" {
35 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypename?language=objc)
36 pub static NSTextContentTypeName: &'static NSTextContentType;
37}
38
39extern "C" {
40 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypenameprefix?language=objc)
41 pub static NSTextContentTypeNamePrefix: &'static NSTextContentType;
42}
43
44extern "C" {
45 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypegivenname?language=objc)
46 pub static NSTextContentTypeGivenName: &'static NSTextContentType;
47}
48
49extern "C" {
50 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypemiddlename?language=objc)
51 pub static NSTextContentTypeMiddleName: &'static NSTextContentType;
52}
53
54extern "C" {
55 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypefamilyname?language=objc)
56 pub static NSTextContentTypeFamilyName: &'static NSTextContentType;
57}
58
59extern "C" {
60 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypenamesuffix?language=objc)
61 pub static NSTextContentTypeNameSuffix: &'static NSTextContentType;
62}
63
64extern "C" {
65 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypenickname?language=objc)
66 pub static NSTextContentTypeNickname: &'static NSTextContentType;
67}
68
69extern "C" {
70 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypejobtitle?language=objc)
71 pub static NSTextContentTypeJobTitle: &'static NSTextContentType;
72}
73
74extern "C" {
75 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypeorganizationname?language=objc)
76 pub static NSTextContentTypeOrganizationName: &'static NSTextContentType;
77}
78
79extern "C" {
80 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypelocation?language=objc)
81 pub static NSTextContentTypeLocation: &'static NSTextContentType;
82}
83
84extern "C" {
85 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypefullstreetaddress?language=objc)
86 pub static NSTextContentTypeFullStreetAddress: &'static NSTextContentType;
87}
88
89extern "C" {
90 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypestreetaddressline1?language=objc)
91 pub static NSTextContentTypeStreetAddressLine1: &'static NSTextContentType;
92}
93
94extern "C" {
95 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypestreetaddressline2?language=objc)
96 pub static NSTextContentTypeStreetAddressLine2: &'static NSTextContentType;
97}
98
99extern "C" {
100 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypeaddresscity?language=objc)
101 pub static NSTextContentTypeAddressCity: &'static NSTextContentType;
102}
103
104extern "C" {
105 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypeaddressstate?language=objc)
106 pub static NSTextContentTypeAddressState: &'static NSTextContentType;
107}
108
109extern "C" {
110 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypeaddresscityandstate?language=objc)
111 pub static NSTextContentTypeAddressCityAndState: &'static NSTextContentType;
112}
113
114extern "C" {
115 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypesublocality?language=objc)
116 pub static NSTextContentTypeSublocality: &'static NSTextContentType;
117}
118
119extern "C" {
120 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypecountryname?language=objc)
121 pub static NSTextContentTypeCountryName: &'static NSTextContentType;
122}
123
124extern "C" {
125 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypepostalcode?language=objc)
126 pub static NSTextContentTypePostalCode: &'static NSTextContentType;
127}
128
129extern "C" {
130 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypetelephonenumber?language=objc)
131 pub static NSTextContentTypeTelephoneNumber: &'static NSTextContentType;
132}
133
134extern "C" {
135 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypeemailaddress?language=objc)
136 pub static NSTextContentTypeEmailAddress: &'static NSTextContentType;
137}
138
139extern "C" {
140 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypeurl?language=objc)
141 pub static NSTextContentTypeURL: &'static NSTextContentType;
142}
143
144extern "C" {
145 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypecreditcardnumber?language=objc)
146 pub static NSTextContentTypeCreditCardNumber: &'static NSTextContentType;
147}
148
149extern "C" {
150 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypecreditcardname?language=objc)
151 pub static NSTextContentTypeCreditCardName: &'static NSTextContentType;
152}
153
154extern "C" {
155 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypecreditcardgivenname?language=objc)
156 pub static NSTextContentTypeCreditCardGivenName: &'static NSTextContentType;
157}
158
159extern "C" {
160 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypecreditcardmiddlename?language=objc)
161 pub static NSTextContentTypeCreditCardMiddleName: &'static NSTextContentType;
162}
163
164extern "C" {
165 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypecreditcardfamilyname?language=objc)
166 pub static NSTextContentTypeCreditCardFamilyName: &'static NSTextContentType;
167}
168
169extern "C" {
170 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypecreditcardsecuritycode?language=objc)
171 pub static NSTextContentTypeCreditCardSecurityCode: &'static NSTextContentType;
172}
173
174extern "C" {
175 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypecreditcardexpiration?language=objc)
176 pub static NSTextContentTypeCreditCardExpiration: &'static NSTextContentType;
177}
178
179extern "C" {
180 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypecreditcardexpirationmonth?language=objc)
181 pub static NSTextContentTypeCreditCardExpirationMonth: &'static NSTextContentType;
182}
183
184extern "C" {
185 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypecreditcardexpirationyear?language=objc)
186 pub static NSTextContentTypeCreditCardExpirationYear: &'static NSTextContentType;
187}
188
189extern "C" {
190 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypecreditcardtype?language=objc)
191 pub static NSTextContentTypeCreditCardType: &'static NSTextContentType;
192}
193
194extern "C" {
195 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypeshipmenttrackingnumber?language=objc)
196 pub static NSTextContentTypeShipmentTrackingNumber: &'static NSTextContentType;
197}
198
199extern "C" {
200 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypeflightnumber?language=objc)
201 pub static NSTextContentTypeFlightNumber: &'static NSTextContentType;
202}
203
204extern "C" {
205 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypedatetime?language=objc)
206 pub static NSTextContentTypeDateTime: &'static NSTextContentType;
207}
208
209extern "C" {
210 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypebirthdate?language=objc)
211 pub static NSTextContentTypeBirthdate: &'static NSTextContentType;
212}
213
214extern "C" {
215 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypebirthdateday?language=objc)
216 pub static NSTextContentTypeBirthdateDay: &'static NSTextContentType;
217}
218
219extern "C" {
220 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypebirthdatemonth?language=objc)
221 pub static NSTextContentTypeBirthdateMonth: &'static NSTextContentType;
222}
223
224extern "C" {
225 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontenttypebirthdateyear?language=objc)
226 pub static NSTextContentTypeBirthdateYear: &'static NSTextContentType;
227}
228
229extern_protocol!(
230 /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nstextcontent?language=objc)
231 pub unsafe trait NSTextContent {
232 #[unsafe(method(contentType))]
233 #[unsafe(method_family = none)]
234 unsafe fn contentType(&self) -> Option<Retained<NSTextContentType>>;
235
236 /// Setter for [`contentType`][Self::contentType].
237 #[unsafe(method(setContentType:))]
238 #[unsafe(method_family = none)]
239 unsafe fn setContentType(&self, content_type: Option<&NSTextContentType>);
240 }
241);