objc2_ui_kit/generated/
NSIndexPath_UIKitAdditions.rs1use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9mod private_NSIndexPathUIKitAdditions {
10 pub trait Sealed {}
11}
12
13#[doc(alias = "UIKitAdditions")]
15pub unsafe trait NSIndexPathUIKitAdditions:
16 ClassType + Sized + private_NSIndexPathUIKitAdditions::Sealed
17{
18 extern_methods!(
19 #[unsafe(method(indexPathForRow:inSection:))]
20 #[unsafe(method_family = none)]
21 unsafe fn indexPathForRow_inSection(row: NSInteger, section: NSInteger) -> Retained<Self>;
22
23 #[unsafe(method(indexPathForItem:inSection:))]
24 #[unsafe(method_family = none)]
25 unsafe fn indexPathForItem_inSection(item: NSInteger, section: NSInteger)
26 -> Retained<Self>;
27
28 #[unsafe(method(section))]
29 #[unsafe(method_family = none)]
30 unsafe fn section(&self) -> NSInteger;
31
32 #[unsafe(method(row))]
33 #[unsafe(method_family = none)]
34 unsafe fn row(&self) -> NSInteger;
35
36 #[unsafe(method(item))]
37 #[unsafe(method_family = none)]
38 unsafe fn item(&self) -> NSInteger;
39 );
40}
41
42impl private_NSIndexPathUIKitAdditions::Sealed for NSIndexPath {}
43unsafe impl NSIndexPathUIKitAdditions for NSIndexPath {}