objc2_app_kit/generated/
NSNibConnector.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/appkit/nsnibconnector?language=objc)
12    #[unsafe(super(NSObject))]
13    #[derive(Debug, PartialEq, Eq, Hash)]
14    pub struct NSNibConnector;
15);
16
17extern_conformance!(
18    unsafe impl NSCoding for NSNibConnector {}
19);
20
21extern_conformance!(
22    unsafe impl NSObjectProtocol for NSNibConnector {}
23);
24
25impl NSNibConnector {
26    extern_methods!(
27        #[unsafe(method(source))]
28        #[unsafe(method_family = none)]
29        pub unsafe fn source(&self) -> Option<Retained<AnyObject>>;
30
31        /// This is a [weak property][objc2::topics::weak_property].
32        /// Setter for [`source`][Self::source].
33        #[unsafe(method(setSource:))]
34        #[unsafe(method_family = none)]
35        pub unsafe fn setSource(&self, source: Option<&AnyObject>);
36
37        #[unsafe(method(destination))]
38        #[unsafe(method_family = none)]
39        pub unsafe fn destination(&self) -> Option<Retained<AnyObject>>;
40
41        /// This is a [weak property][objc2::topics::weak_property].
42        /// Setter for [`destination`][Self::destination].
43        #[unsafe(method(setDestination:))]
44        #[unsafe(method_family = none)]
45        pub unsafe fn setDestination(&self, destination: Option<&AnyObject>);
46
47        #[unsafe(method(label))]
48        #[unsafe(method_family = none)]
49        pub unsafe fn label(&self) -> Retained<NSString>;
50
51        /// Setter for [`label`][Self::label].
52        #[unsafe(method(setLabel:))]
53        #[unsafe(method_family = none)]
54        pub unsafe fn setLabel(&self, label: &NSString);
55
56        #[unsafe(method(replaceObject:withObject:))]
57        #[unsafe(method_family = none)]
58        pub unsafe fn replaceObject_withObject(
59            &self,
60            old_object: &AnyObject,
61            new_object: &AnyObject,
62        );
63
64        #[unsafe(method(establishConnection))]
65        #[unsafe(method_family = none)]
66        pub unsafe fn establishConnection(&self);
67    );
68}
69
70/// Methods declared on superclass `NSObject`.
71impl NSNibConnector {
72    extern_methods!(
73        #[unsafe(method(init))]
74        #[unsafe(method_family = init)]
75        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
76
77        #[unsafe(method(new))]
78        #[unsafe(method_family = new)]
79        pub unsafe fn new() -> Retained<Self>;
80    );
81}