objc2_ui_kit/generated/
UILocalizedIndexedCollation.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[thread_kind = MainThreadOnly]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct UILocalizedIndexedCollation;
15);
16
17unsafe impl NSObjectProtocol for UILocalizedIndexedCollation {}
18
19impl UILocalizedIndexedCollation {
20 extern_methods!(
21 #[unsafe(method(currentCollation))]
22 #[unsafe(method_family = none)]
23 pub unsafe fn currentCollation(mtm: MainThreadMarker) -> Retained<Self>;
24
25 #[unsafe(method(sectionTitles))]
26 #[unsafe(method_family = none)]
27 pub unsafe fn sectionTitles(&self) -> Retained<NSArray<NSString>>;
28
29 #[unsafe(method(sectionIndexTitles))]
30 #[unsafe(method_family = none)]
31 pub unsafe fn sectionIndexTitles(&self) -> Retained<NSArray<NSString>>;
32
33 #[unsafe(method(sectionForSectionIndexTitleAtIndex:))]
34 #[unsafe(method_family = none)]
35 pub unsafe fn sectionForSectionIndexTitleAtIndex(
36 &self,
37 index_title_index: NSInteger,
38 ) -> NSInteger;
39
40 #[unsafe(method(sectionForObject:collationStringSelector:))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn sectionForObject_collationStringSelector(
43 &self,
44 object: &AnyObject,
45 selector: Sel,
46 ) -> NSInteger;
47
48 #[unsafe(method(sortedArrayFromArray:collationStringSelector:))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn sortedArrayFromArray_collationStringSelector(
51 &self,
52 array: &NSArray,
53 selector: Sel,
54 ) -> Retained<NSArray>;
55 );
56}
57
58impl UILocalizedIndexedCollation {
60 extern_methods!(
61 #[unsafe(method(init))]
62 #[unsafe(method_family = init)]
63 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
64
65 #[unsafe(method(new))]
66 #[unsafe(method_family = new)]
67 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
68 );
69}