objc2_foundation/generated/
NSScriptCommandDescription.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::*;
5
6use crate::*;
7
8extern_class!(
9    /// [Apple's documentation](https://developer.apple.com/documentation/foundation/nsscriptcommanddescription?language=objc)
10    #[unsafe(super(NSObject))]
11    #[derive(Debug, PartialEq, Eq, Hash)]
12    pub struct NSScriptCommandDescription;
13);
14
15#[cfg(feature = "NSObject")]
16unsafe impl NSCoding for NSScriptCommandDescription {}
17
18unsafe impl NSObjectProtocol for NSScriptCommandDescription {}
19
20impl NSScriptCommandDescription {
21    extern_methods!(
22        #[unsafe(method(init))]
23        #[unsafe(method_family = init)]
24        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
25
26        #[cfg(all(feature = "NSDictionary", feature = "NSString"))]
27        #[unsafe(method(initWithSuiteName:commandName:dictionary:))]
28        #[unsafe(method_family = init)]
29        pub unsafe fn initWithSuiteName_commandName_dictionary(
30            this: Allocated<Self>,
31            suite_name: &NSString,
32            command_name: &NSString,
33            command_declaration: Option<&NSDictionary>,
34        ) -> Option<Retained<Self>>;
35
36        #[cfg(feature = "NSCoder")]
37        #[unsafe(method(initWithCoder:))]
38        #[unsafe(method_family = init)]
39        pub unsafe fn initWithCoder(
40            this: Allocated<Self>,
41            in_coder: &NSCoder,
42        ) -> Option<Retained<Self>>;
43
44        #[cfg(feature = "NSString")]
45        #[unsafe(method(suiteName))]
46        #[unsafe(method_family = none)]
47        pub unsafe fn suiteName(&self) -> Retained<NSString>;
48
49        #[cfg(feature = "NSString")]
50        #[unsafe(method(commandName))]
51        #[unsafe(method_family = none)]
52        pub unsafe fn commandName(&self) -> Retained<NSString>;
53
54        #[unsafe(method(appleEventClassCode))]
55        #[unsafe(method_family = none)]
56        pub unsafe fn appleEventClassCode(&self) -> FourCharCode;
57
58        #[unsafe(method(appleEventCode))]
59        #[unsafe(method_family = none)]
60        pub unsafe fn appleEventCode(&self) -> FourCharCode;
61
62        #[cfg(feature = "NSString")]
63        #[unsafe(method(commandClassName))]
64        #[unsafe(method_family = none)]
65        pub unsafe fn commandClassName(&self) -> Retained<NSString>;
66
67        #[cfg(feature = "NSString")]
68        #[unsafe(method(returnType))]
69        #[unsafe(method_family = none)]
70        pub unsafe fn returnType(&self) -> Option<Retained<NSString>>;
71
72        #[unsafe(method(appleEventCodeForReturnType))]
73        #[unsafe(method_family = none)]
74        pub unsafe fn appleEventCodeForReturnType(&self) -> FourCharCode;
75
76        #[cfg(all(feature = "NSArray", feature = "NSString"))]
77        #[unsafe(method(argumentNames))]
78        #[unsafe(method_family = none)]
79        pub unsafe fn argumentNames(&self) -> Retained<NSArray<NSString>>;
80
81        #[cfg(feature = "NSString")]
82        #[unsafe(method(typeForArgumentWithName:))]
83        #[unsafe(method_family = none)]
84        pub unsafe fn typeForArgumentWithName(
85            &self,
86            argument_name: &NSString,
87        ) -> Option<Retained<NSString>>;
88
89        #[cfg(feature = "NSString")]
90        #[unsafe(method(appleEventCodeForArgumentWithName:))]
91        #[unsafe(method_family = none)]
92        pub unsafe fn appleEventCodeForArgumentWithName(
93            &self,
94            argument_name: &NSString,
95        ) -> FourCharCode;
96
97        #[cfg(feature = "NSString")]
98        #[unsafe(method(isOptionalArgumentWithName:))]
99        #[unsafe(method_family = none)]
100        pub unsafe fn isOptionalArgumentWithName(&self, argument_name: &NSString) -> bool;
101
102        #[cfg(feature = "NSScriptCommand")]
103        #[unsafe(method(createCommandInstance))]
104        #[unsafe(method_family = none)]
105        pub unsafe fn createCommandInstance(&self) -> Retained<NSScriptCommand>;
106
107        #[cfg(all(feature = "NSScriptCommand", feature = "NSZone"))]
108        #[unsafe(method(createCommandInstanceWithZone:))]
109        #[unsafe(method_family = none)]
110        pub unsafe fn createCommandInstanceWithZone(
111            &self,
112            zone: *mut NSZone,
113        ) -> Retained<NSScriptCommand>;
114    );
115}
116
117/// Methods declared on superclass `NSObject`.
118impl NSScriptCommandDescription {
119    extern_methods!(
120        #[unsafe(method(new))]
121        #[unsafe(method_family = new)]
122        pub unsafe fn new() -> Retained<Self>;
123    );
124}