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
//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use objc2::__framework_prelude::*;
use objc2_foundation::*;

use crate::*;

extern_category!(
    /// Category "UIKitAdditions" on [`NSIndexPath`].
    #[doc(alias = "UIKitAdditions")]
    pub unsafe trait NSIndexPathUIKitAdditions {
        #[method_id(@__retain_semantics Other indexPathForRow:inSection:)]
        unsafe fn indexPathForRow_inSection(row: NSInteger, section: NSInteger) -> Retained<Self>;

        #[method_id(@__retain_semantics Other indexPathForItem:inSection:)]
        unsafe fn indexPathForItem_inSection(item: NSInteger, section: NSInteger)
            -> Retained<Self>;

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

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

        #[method(item)]
        unsafe fn item(&self) -> NSInteger;
    }

    unsafe impl NSIndexPathUIKitAdditions for NSIndexPath {}
);