objc2_ui_kit/generated/
NSIndexPath_UIKitAdditions.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9mod private_NSIndexPathUIKitAdditions {
10    pub trait Sealed {}
11}
12
13/// Category "UIKitAdditions" on [`NSIndexPath`].
14#[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        fn indexPathForRow_inSection(row: NSInteger, section: NSInteger) -> Retained<Self>;
22
23        #[unsafe(method(indexPathForItem:inSection:))]
24        #[unsafe(method_family = none)]
25        fn indexPathForItem_inSection(item: NSInteger, section: NSInteger) -> Retained<Self>;
26
27        #[unsafe(method(section))]
28        #[unsafe(method_family = none)]
29        fn section(&self) -> NSInteger;
30
31        #[unsafe(method(row))]
32        #[unsafe(method_family = none)]
33        fn row(&self) -> NSInteger;
34
35        #[unsafe(method(item))]
36        #[unsafe(method_family = none)]
37        fn item(&self) -> NSInteger;
38    );
39}
40
41impl private_NSIndexPathUIKitAdditions::Sealed for NSIndexPath {}
42unsafe impl NSIndexPathUIKitAdditions for NSIndexPath {}