objc2_foundation/generated/
NSMethodSignature.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6
7use crate::*;
8
9extern_class!(
10 #[unsafe(super(NSObject))]
12 #[derive(Debug, PartialEq, Eq, Hash)]
13 pub struct NSMethodSignature;
14);
15
16extern_conformance!(
17 unsafe impl NSObjectProtocol for NSMethodSignature {}
18);
19
20impl NSMethodSignature {
21 extern_methods!(
22 #[unsafe(method(signatureWithObjCTypes:))]
23 #[unsafe(method_family = none)]
24 pub unsafe fn signatureWithObjCTypes(
25 types: NonNull<c_char>,
26 ) -> Option<Retained<NSMethodSignature>>;
27
28 #[unsafe(method(numberOfArguments))]
29 #[unsafe(method_family = none)]
30 pub unsafe fn numberOfArguments(&self) -> NSUInteger;
31
32 #[unsafe(method(getArgumentTypeAtIndex:))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn getArgumentTypeAtIndex(&self, idx: NSUInteger) -> NonNull<c_char>;
35
36 #[unsafe(method(frameLength))]
37 #[unsafe(method_family = none)]
38 pub unsafe fn frameLength(&self) -> NSUInteger;
39
40 #[unsafe(method(isOneway))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn isOneway(&self) -> bool;
43
44 #[unsafe(method(methodReturnType))]
45 #[unsafe(method_family = none)]
46 pub unsafe fn methodReturnType(&self) -> NonNull<c_char>;
47
48 #[unsafe(method(methodReturnLength))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn methodReturnLength(&self) -> NSUInteger;
51 );
52}
53
54impl NSMethodSignature {
56 extern_methods!(
57 #[unsafe(method(init))]
58 #[unsafe(method_family = init)]
59 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
60
61 #[unsafe(method(new))]
62 #[unsafe(method_family = new)]
63 pub unsafe fn new() -> Retained<Self>;
64 );
65}