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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;
#[cfg(feature = "objc2-quartz-core")]
#[cfg(not(target_os = "watchos"))]
use objc2_quartz_core::*;

use crate::*;

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UITableViewCellStyle(pub NSInteger);
impl UITableViewCellStyle {
    #[doc(alias = "UITableViewCellStyleDefault")]
    pub const Default: Self = Self(0);
    #[doc(alias = "UITableViewCellStyleValue1")]
    pub const Value1: Self = Self(1);
    #[doc(alias = "UITableViewCellStyleValue2")]
    pub const Value2: Self = Self(2);
    #[doc(alias = "UITableViewCellStyleSubtitle")]
    pub const Subtitle: Self = Self(3);
}

unsafe impl Encode for UITableViewCellStyle {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for UITableViewCellStyle {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UITableViewCellSeparatorStyle(pub NSInteger);
impl UITableViewCellSeparatorStyle {
    #[doc(alias = "UITableViewCellSeparatorStyleNone")]
    pub const None: Self = Self(0);
    #[doc(alias = "UITableViewCellSeparatorStyleSingleLine")]
    pub const SingleLine: Self = Self(1);
    #[deprecated = "Use UITableViewCellSeparatorStyleSingleLine for a single line separator."]
    #[doc(alias = "UITableViewCellSeparatorStyleSingleLineEtched")]
    pub const SingleLineEtched: Self = Self(2);
}

unsafe impl Encode for UITableViewCellSeparatorStyle {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for UITableViewCellSeparatorStyle {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UITableViewCellSelectionStyle(pub NSInteger);
impl UITableViewCellSelectionStyle {
    #[doc(alias = "UITableViewCellSelectionStyleNone")]
    pub const None: Self = Self(0);
    #[doc(alias = "UITableViewCellSelectionStyleBlue")]
    pub const Blue: Self = Self(1);
    #[doc(alias = "UITableViewCellSelectionStyleGray")]
    pub const Gray: Self = Self(2);
    #[doc(alias = "UITableViewCellSelectionStyleDefault")]
    pub const Default: Self = Self(3);
}

unsafe impl Encode for UITableViewCellSelectionStyle {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for UITableViewCellSelectionStyle {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UITableViewCellFocusStyle(pub NSInteger);
impl UITableViewCellFocusStyle {
    #[doc(alias = "UITableViewCellFocusStyleDefault")]
    pub const Default: Self = Self(0);
    #[doc(alias = "UITableViewCellFocusStyleCustom")]
    pub const Custom: Self = Self(1);
}

unsafe impl Encode for UITableViewCellFocusStyle {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for UITableViewCellFocusStyle {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UITableViewCellEditingStyle(pub NSInteger);
impl UITableViewCellEditingStyle {
    #[doc(alias = "UITableViewCellEditingStyleNone")]
    pub const None: Self = Self(0);
    #[doc(alias = "UITableViewCellEditingStyleDelete")]
    pub const Delete: Self = Self(1);
    #[doc(alias = "UITableViewCellEditingStyleInsert")]
    pub const Insert: Self = Self(2);
}

unsafe impl Encode for UITableViewCellEditingStyle {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for UITableViewCellEditingStyle {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UITableViewCellAccessoryType(pub NSInteger);
impl UITableViewCellAccessoryType {
    pub const UITableViewCellAccessoryNone: Self = Self(0);
    pub const UITableViewCellAccessoryDisclosureIndicator: Self = Self(1);
    pub const UITableViewCellAccessoryDetailDisclosureButton: Self = Self(2);
    pub const UITableViewCellAccessoryCheckmark: Self = Self(3);
    pub const UITableViewCellAccessoryDetailButton: Self = Self(4);
}

unsafe impl Encode for UITableViewCellAccessoryType {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for UITableViewCellAccessoryType {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_OPTIONS
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UITableViewCellStateMask(pub NSUInteger);
bitflags::bitflags! {
    impl UITableViewCellStateMask: NSUInteger {
        const UITableViewCellStateDefaultMask = 0;
        const UITableViewCellStateShowingEditControlMask = 1<<0;
        const UITableViewCellStateShowingDeleteConfirmationMask = 1<<1;
    }
}

unsafe impl Encode for UITableViewCellStateMask {
    const ENCODING: Encoding = NSUInteger::ENCODING;
}

unsafe impl RefEncode for UITableViewCellStateMask {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

// NS_ENUM
#[repr(transparent)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord)]
pub struct UITableViewCellDragState(pub NSInteger);
impl UITableViewCellDragState {
    #[doc(alias = "UITableViewCellDragStateNone")]
    pub const None: Self = Self(0);
    #[doc(alias = "UITableViewCellDragStateLifting")]
    pub const Lifting: Self = Self(1);
    #[doc(alias = "UITableViewCellDragStateDragging")]
    pub const Dragging: Self = Self(2);
}

unsafe impl Encode for UITableViewCellDragState {
    const ENCODING: Encoding = NSInteger::ENCODING;
}

unsafe impl RefEncode for UITableViewCellDragState {
    const ENCODING_REF: Encoding = Encoding::Pointer(&Self::ENCODING);
}

#[cfg(all(
    feature = "UICellConfigurationState",
    feature = "UIResponder",
    feature = "UIView",
    feature = "UIViewConfigurationState",
    feature = "block2"
))]
pub type UITableViewCellConfigurationUpdateHandler =
    *mut block2::Block<dyn Fn(NonNull<UITableViewCell>, NonNull<UICellConfigurationState>)>;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(all(feature = "UIResponder", feature = "UIView"))]
    pub struct UITableViewCell;

    #[cfg(all(feature = "UIResponder", feature = "UIView"))]
    unsafe impl ClassType for UITableViewCell {
        #[inherits(UIResponder, NSObject)]
        type Super = UIView;
        type Mutability = MainThreadOnly;
    }
);

#[cfg(all(
    feature = "UIResponder",
    feature = "UIView",
    feature = "objc2-quartz-core"
))]
#[cfg(not(target_os = "watchos"))]
unsafe impl CALayerDelegate for UITableViewCell {}

#[cfg(all(feature = "UIResponder", feature = "UIView"))]
unsafe impl NSCoding for UITableViewCell {}

#[cfg(all(feature = "UIResponder", feature = "UIView"))]
unsafe impl NSObjectProtocol for UITableViewCell {}

#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
unsafe impl UIAppearance for UITableViewCell {}

#[cfg(all(feature = "UIAppearance", feature = "UIResponder", feature = "UIView"))]
unsafe impl UIAppearanceContainer for UITableViewCell {}

#[cfg(all(feature = "UIResponder", feature = "UIView"))]
unsafe impl UICoordinateSpace for UITableViewCell {}

#[cfg(all(
    feature = "UIDynamicBehavior",
    feature = "UIResponder",
    feature = "UIView"
))]
unsafe impl UIDynamicItem for UITableViewCell {}

#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
unsafe impl UIFocusEnvironment for UITableViewCell {}

#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
unsafe impl UIFocusItem for UITableViewCell {}

#[cfg(all(feature = "UIFocus", feature = "UIResponder", feature = "UIView"))]
unsafe impl UIFocusItemContainer for UITableViewCell {}

#[cfg(all(
    feature = "UIGestureRecognizer",
    feature = "UIResponder",
    feature = "UIView"
))]
unsafe impl UIGestureRecognizerDelegate for UITableViewCell {}

#[cfg(all(feature = "UIResponder", feature = "UIView"))]
unsafe impl UIResponderStandardEditActions for UITableViewCell {}

#[cfg(all(
    feature = "UIResponder",
    feature = "UITraitCollection",
    feature = "UIView"
))]
unsafe impl UITraitEnvironment for UITableViewCell {}

extern_methods!(
    #[cfg(all(feature = "UIResponder", feature = "UIView"))]
    unsafe impl UITableViewCell {
        #[method_id(@__retain_semantics Init initWithStyle:reuseIdentifier:)]
        pub unsafe fn initWithStyle_reuseIdentifier(
            this: Allocated<Self>,
            style: UITableViewCellStyle,
            reuse_identifier: Option<&NSString>,
        ) -> Retained<Self>;

        #[method_id(@__retain_semantics Init initWithCoder:)]
        pub unsafe fn initWithCoder(
            this: Allocated<Self>,
            coder: &NSCoder,
        ) -> Option<Retained<Self>>;

        #[cfg(all(
            feature = "UICellConfigurationState",
            feature = "UIViewConfigurationState"
        ))]
        #[method_id(@__retain_semantics Other configurationState)]
        pub unsafe fn configurationState(&self) -> Retained<UICellConfigurationState>;

        #[method(setNeedsUpdateConfiguration)]
        pub unsafe fn setNeedsUpdateConfiguration(&self);

        #[cfg(all(
            feature = "UICellConfigurationState",
            feature = "UIViewConfigurationState"
        ))]
        #[method(updateConfigurationUsingState:)]
        pub unsafe fn updateConfigurationUsingState(&self, state: &UICellConfigurationState);

        #[cfg(all(
            feature = "UICellConfigurationState",
            feature = "UIViewConfigurationState",
            feature = "block2"
        ))]
        #[method(configurationUpdateHandler)]
        pub unsafe fn configurationUpdateHandler(
            &self,
        ) -> UITableViewCellConfigurationUpdateHandler;

        #[cfg(all(
            feature = "UICellConfigurationState",
            feature = "UIViewConfigurationState",
            feature = "block2"
        ))]
        #[method(setConfigurationUpdateHandler:)]
        pub unsafe fn setConfigurationUpdateHandler(
            &self,
            configuration_update_handler: UITableViewCellConfigurationUpdateHandler,
        );

        #[cfg(feature = "UIListContentConfiguration")]
        #[method_id(@__retain_semantics Other defaultContentConfiguration)]
        pub unsafe fn defaultContentConfiguration(&self) -> Retained<UIListContentConfiguration>;

        #[cfg(feature = "UIContentConfiguration")]
        #[method_id(@__retain_semantics Other contentConfiguration)]
        pub unsafe fn contentConfiguration(
            &self,
        ) -> Option<Retained<ProtocolObject<dyn UIContentConfiguration>>>;

        #[cfg(feature = "UIContentConfiguration")]
        #[method(setContentConfiguration:)]
        pub unsafe fn setContentConfiguration(
            &self,
            content_configuration: Option<&ProtocolObject<dyn UIContentConfiguration>>,
        );

        #[method(automaticallyUpdatesContentConfiguration)]
        pub unsafe fn automaticallyUpdatesContentConfiguration(&self) -> bool;

        #[method(setAutomaticallyUpdatesContentConfiguration:)]
        pub unsafe fn setAutomaticallyUpdatesContentConfiguration(
            &self,
            automatically_updates_content_configuration: bool,
        );

        #[method_id(@__retain_semantics Other contentView)]
        pub unsafe fn contentView(&self) -> Retained<UIView>;

        #[cfg(feature = "UIImageView")]
        #[deprecated = "Use UIListContentConfiguration instead, this property will be deprecated in a future release."]
        #[method_id(@__retain_semantics Other imageView)]
        pub unsafe fn imageView(&self) -> Option<Retained<UIImageView>>;

        #[cfg(feature = "UILabel")]
        #[deprecated = "Use UIListContentConfiguration instead, this property will be deprecated in a future release."]
        #[method_id(@__retain_semantics Other textLabel)]
        pub unsafe fn textLabel(&self) -> Option<Retained<UILabel>>;

        #[cfg(feature = "UILabel")]
        #[deprecated = "Use UIListContentConfiguration instead, this property will be deprecated in a future release."]
        #[method_id(@__retain_semantics Other detailTextLabel)]
        pub unsafe fn detailTextLabel(&self) -> Option<Retained<UILabel>>;

        #[cfg(feature = "UIBackgroundConfiguration")]
        #[method_id(@__retain_semantics Other defaultBackgroundConfiguration)]
        pub unsafe fn defaultBackgroundConfiguration(&self) -> Retained<UIBackgroundConfiguration>;

        #[cfg(feature = "UIBackgroundConfiguration")]
        #[method_id(@__retain_semantics Other backgroundConfiguration)]
        pub unsafe fn backgroundConfiguration(&self)
            -> Option<Retained<UIBackgroundConfiguration>>;

        #[cfg(feature = "UIBackgroundConfiguration")]
        #[method(setBackgroundConfiguration:)]
        pub unsafe fn setBackgroundConfiguration(
            &self,
            background_configuration: Option<&UIBackgroundConfiguration>,
        );

        #[method(automaticallyUpdatesBackgroundConfiguration)]
        pub unsafe fn automaticallyUpdatesBackgroundConfiguration(&self) -> bool;

        #[method(setAutomaticallyUpdatesBackgroundConfiguration:)]
        pub unsafe fn setAutomaticallyUpdatesBackgroundConfiguration(
            &self,
            automatically_updates_background_configuration: bool,
        );

        #[method_id(@__retain_semantics Other backgroundView)]
        pub unsafe fn backgroundView(&self) -> Option<Retained<UIView>>;

        #[method(setBackgroundView:)]
        pub unsafe fn setBackgroundView(&self, background_view: Option<&UIView>);

        #[method_id(@__retain_semantics Other selectedBackgroundView)]
        pub unsafe fn selectedBackgroundView(&self) -> Option<Retained<UIView>>;

        #[method(setSelectedBackgroundView:)]
        pub unsafe fn setSelectedBackgroundView(&self, selected_background_view: Option<&UIView>);

        #[method_id(@__retain_semantics Other multipleSelectionBackgroundView)]
        pub unsafe fn multipleSelectionBackgroundView(&self) -> Option<Retained<UIView>>;

        #[method(setMultipleSelectionBackgroundView:)]
        pub unsafe fn setMultipleSelectionBackgroundView(
            &self,
            multiple_selection_background_view: Option<&UIView>,
        );

        #[method_id(@__retain_semantics Other reuseIdentifier)]
        pub unsafe fn reuseIdentifier(&self) -> Option<Retained<NSString>>;

        #[method(prepareForReuse)]
        pub unsafe fn prepareForReuse(&self);

        #[method(selectionStyle)]
        pub unsafe fn selectionStyle(&self) -> UITableViewCellSelectionStyle;

        #[method(setSelectionStyle:)]
        pub unsafe fn setSelectionStyle(&self, selection_style: UITableViewCellSelectionStyle);

        #[method(isSelected)]
        pub unsafe fn isSelected(&self) -> bool;

        #[method(setSelected:)]
        pub unsafe fn setSelected(&self, selected: bool);

        #[method(isHighlighted)]
        pub unsafe fn isHighlighted(&self) -> bool;

        #[method(setHighlighted:)]
        pub unsafe fn setHighlighted(&self, highlighted: bool);

        #[method(setSelected:animated:)]
        pub unsafe fn setSelected_animated(&self, selected: bool, animated: bool);

        #[method(setHighlighted:animated:)]
        pub unsafe fn setHighlighted_animated(&self, highlighted: bool, animated: bool);

        #[method(editingStyle)]
        pub unsafe fn editingStyle(&self) -> UITableViewCellEditingStyle;

        #[method(showsReorderControl)]
        pub unsafe fn showsReorderControl(&self) -> bool;

        #[method(setShowsReorderControl:)]
        pub unsafe fn setShowsReorderControl(&self, shows_reorder_control: bool);

        #[method(shouldIndentWhileEditing)]
        pub unsafe fn shouldIndentWhileEditing(&self) -> bool;

        #[method(setShouldIndentWhileEditing:)]
        pub unsafe fn setShouldIndentWhileEditing(&self, should_indent_while_editing: bool);

        #[method(accessoryType)]
        pub unsafe fn accessoryType(&self) -> UITableViewCellAccessoryType;

        #[method(setAccessoryType:)]
        pub unsafe fn setAccessoryType(&self, accessory_type: UITableViewCellAccessoryType);

        #[method_id(@__retain_semantics Other accessoryView)]
        pub unsafe fn accessoryView(&self) -> Option<Retained<UIView>>;

        #[method(setAccessoryView:)]
        pub unsafe fn setAccessoryView(&self, accessory_view: Option<&UIView>);

        #[method(editingAccessoryType)]
        pub unsafe fn editingAccessoryType(&self) -> UITableViewCellAccessoryType;

        #[method(setEditingAccessoryType:)]
        pub unsafe fn setEditingAccessoryType(
            &self,
            editing_accessory_type: UITableViewCellAccessoryType,
        );

        #[method_id(@__retain_semantics Other editingAccessoryView)]
        pub unsafe fn editingAccessoryView(&self) -> Option<Retained<UIView>>;

        #[method(setEditingAccessoryView:)]
        pub unsafe fn setEditingAccessoryView(&self, editing_accessory_view: Option<&UIView>);

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

        #[method(setIndentationLevel:)]
        pub unsafe fn setIndentationLevel(&self, indentation_level: NSInteger);

        #[method(indentationWidth)]
        pub unsafe fn indentationWidth(&self) -> CGFloat;

        #[method(setIndentationWidth:)]
        pub unsafe fn setIndentationWidth(&self, indentation_width: CGFloat);

        #[cfg(feature = "UIGeometry")]
        #[method(separatorInset)]
        pub unsafe fn separatorInset(&self) -> UIEdgeInsets;

        #[cfg(feature = "UIGeometry")]
        #[method(setSeparatorInset:)]
        pub unsafe fn setSeparatorInset(&self, separator_inset: UIEdgeInsets);

        #[method(isEditing)]
        pub unsafe fn isEditing(&self) -> bool;

        #[method(setEditing:)]
        pub unsafe fn setEditing(&self, editing: bool);

        #[method(setEditing:animated:)]
        pub unsafe fn setEditing_animated(&self, editing: bool, animated: bool);

        #[method(showingDeleteConfirmation)]
        pub unsafe fn showingDeleteConfirmation(&self) -> bool;

        #[method(focusStyle)]
        pub unsafe fn focusStyle(&self) -> UITableViewCellFocusStyle;

        #[method(setFocusStyle:)]
        pub unsafe fn setFocusStyle(&self, focus_style: UITableViewCellFocusStyle);

        #[method(willTransitionToState:)]
        pub unsafe fn willTransitionToState(&self, state: UITableViewCellStateMask);

        #[method(didTransitionToState:)]
        pub unsafe fn didTransitionToState(&self, state: UITableViewCellStateMask);

        #[method(dragStateDidChange:)]
        pub unsafe fn dragStateDidChange(&self, drag_state: UITableViewCellDragState);

        #[method(userInteractionEnabledWhileDragging)]
        pub unsafe fn userInteractionEnabledWhileDragging(&self) -> bool;

        #[method(setUserInteractionEnabledWhileDragging:)]
        pub unsafe fn setUserInteractionEnabledWhileDragging(
            &self,
            user_interaction_enabled_while_dragging: bool,
        );
    }
);

extern_methods!(
    /// Methods declared on superclass `UIView`
    #[cfg(all(feature = "UIResponder", feature = "UIView"))]
    unsafe impl UITableViewCell {
        #[method_id(@__retain_semantics Init initWithFrame:)]
        pub unsafe fn initWithFrame(this: Allocated<Self>, frame: CGRect) -> Retained<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(all(feature = "UIResponder", feature = "UIView"))]
    unsafe impl UITableViewCell {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
    }
);

extern_methods!(
    /// UIDeprecated
    #[cfg(all(feature = "UIResponder", feature = "UIView"))]
    unsafe impl UITableViewCell {
        #[deprecated]
        #[method_id(@__retain_semantics Init initWithFrame:reuseIdentifier:)]
        pub unsafe fn initWithFrame_reuseIdentifier(
            this: Allocated<Self>,
            frame: CGRect,
            reuse_identifier: Option<&NSString>,
        ) -> Retained<Self>;

        #[deprecated]
        #[method_id(@__retain_semantics Other text)]
        pub unsafe fn text(&self) -> Option<Retained<NSString>>;

        #[deprecated]
        #[method(setText:)]
        pub unsafe fn setText(&self, text: Option<&NSString>);

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

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

        #[cfg(feature = "NSText")]
        #[deprecated]
        #[method(textAlignment)]
        pub unsafe fn textAlignment(&self) -> NSTextAlignment;

        #[cfg(feature = "NSText")]
        #[deprecated]
        #[method(setTextAlignment:)]
        pub unsafe fn setTextAlignment(&self, text_alignment: NSTextAlignment);

        #[cfg(feature = "NSParagraphStyle")]
        #[deprecated]
        #[method(lineBreakMode)]
        pub unsafe fn lineBreakMode(&self) -> NSLineBreakMode;

        #[cfg(feature = "NSParagraphStyle")]
        #[deprecated]
        #[method(setLineBreakMode:)]
        pub unsafe fn setLineBreakMode(&self, line_break_mode: NSLineBreakMode);

        #[cfg(feature = "UIColor")]
        #[deprecated]
        #[method_id(@__retain_semantics Other textColor)]
        pub unsafe fn textColor(&self) -> Option<Retained<UIColor>>;

        #[cfg(feature = "UIColor")]
        #[deprecated]
        #[method(setTextColor:)]
        pub unsafe fn setTextColor(&self, text_color: Option<&UIColor>);

        #[cfg(feature = "UIColor")]
        #[deprecated]
        #[method_id(@__retain_semantics Other selectedTextColor)]
        pub unsafe fn selectedTextColor(&self) -> Option<Retained<UIColor>>;

        #[cfg(feature = "UIColor")]
        #[deprecated]
        #[method(setSelectedTextColor:)]
        pub unsafe fn setSelectedTextColor(&self, selected_text_color: Option<&UIColor>);

        #[cfg(feature = "UIImage")]
        #[deprecated]
        #[method_id(@__retain_semantics Other image)]
        pub unsafe fn image(&self) -> Option<Retained<UIImage>>;

        #[cfg(feature = "UIImage")]
        #[deprecated]
        #[method(setImage:)]
        pub unsafe fn setImage(&self, image: Option<&UIImage>);

        #[cfg(feature = "UIImage")]
        #[deprecated]
        #[method_id(@__retain_semantics Other selectedImage)]
        pub unsafe fn selectedImage(&self) -> Option<Retained<UIImage>>;

        #[cfg(feature = "UIImage")]
        #[deprecated]
        #[method(setSelectedImage:)]
        pub unsafe fn setSelectedImage(&self, selected_image: Option<&UIImage>);

        #[deprecated]
        #[method(hidesAccessoryWhenEditing)]
        pub unsafe fn hidesAccessoryWhenEditing(&self) -> bool;

        #[deprecated]
        #[method(setHidesAccessoryWhenEditing:)]
        pub unsafe fn setHidesAccessoryWhenEditing(&self, hides_accessory_when_editing: bool);

        #[deprecated]
        #[method_id(@__retain_semantics Other target)]
        pub unsafe fn target(&self) -> Option<Retained<AnyObject>>;

        #[deprecated]
        #[method(setTarget:)]
        pub unsafe fn setTarget(&self, target: Option<&AnyObject>);

        #[deprecated]
        #[method(editAction)]
        pub unsafe fn editAction(&self) -> Option<Sel>;

        #[deprecated]
        #[method(setEditAction:)]
        pub unsafe fn setEditAction(&self, edit_action: Option<Sel>);

        #[deprecated]
        #[method(accessoryAction)]
        pub unsafe fn accessoryAction(&self) -> Option<Sel>;

        #[deprecated]
        #[method(setAccessoryAction:)]
        pub unsafe fn setAccessoryAction(&self, accessory_action: Option<Sel>);
    }
);