objc2_core_midi/generated/
MIDIUMPFunctionBlock.rs1use core::ptr::NonNull;
4#[cfg(feature = "objc2")]
5use objc2::__framework_prelude::*;
6#[cfg(feature = "objc2-foundation")]
7use objc2_foundation::*;
8
9use crate::*;
10
11#[cfg(feature = "objc2")]
12extern_class!(
13 #[unsafe(super(NSObject))]
24 #[derive(Debug, PartialEq, Eq, Hash)]
25 #[cfg(feature = "objc2")]
26 pub struct MIDIUMPFunctionBlock;
27);
28
29#[cfg(feature = "objc2")]
30extern_conformance!(
31 unsafe impl NSObjectProtocol for MIDIUMPFunctionBlock {}
32);
33
34#[cfg(feature = "objc2")]
35impl MIDIUMPFunctionBlock {
36 extern_methods!(
37 #[cfg(feature = "objc2-foundation")]
38 #[unsafe(method(name))]
40 #[unsafe(method_family = none)]
41 pub unsafe fn name(&self) -> Retained<NSString>;
42
43 #[cfg(all(feature = "MIDIMessages", feature = "MIDIUMPCI"))]
44 #[unsafe(method(functionBlockID))]
46 #[unsafe(method_family = none)]
47 pub unsafe fn functionBlockID(&self) -> MIDIUMPFunctionBlockID;
48
49 #[cfg(feature = "MIDIMessages")]
50 #[unsafe(method(direction))]
52 #[unsafe(method_family = none)]
53 pub unsafe fn direction(&self) -> MIDIUMPFunctionBlockDirection;
54
55 #[cfg(feature = "MIDIMessages")]
56 #[unsafe(method(firstGroup))]
58 #[unsafe(method_family = none)]
59 pub unsafe fn firstGroup(&self) -> MIDIUMPGroupNumber;
60
61 #[cfg(feature = "MIDIMessages")]
62 #[unsafe(method(totalGroupsSpanned))]
64 #[unsafe(method_family = none)]
65 pub unsafe fn totalGroupsSpanned(&self) -> MIDIUInteger7;
66
67 #[unsafe(method(maxSysEx8Streams))]
69 #[unsafe(method_family = none)]
70 pub unsafe fn maxSysEx8Streams(&self) -> u8;
71
72 #[cfg(feature = "MIDIMessages")]
73 #[unsafe(method(MIDI1Info))]
75 #[unsafe(method_family = none)]
76 pub unsafe fn MIDI1Info(&self) -> MIDIUMPFunctionBlockMIDI1Info;
77
78 #[cfg(feature = "MIDIMessages")]
79 #[unsafe(method(UIHint))]
81 #[unsafe(method_family = none)]
82 pub unsafe fn UIHint(&self) -> MIDIUMPFunctionBlockUIHint;
83
84 #[cfg(feature = "MIDIUMPEndpoint")]
85 #[unsafe(method(UMPEndpoint))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn UMPEndpoint(&self) -> Option<Retained<MIDIUMPEndpoint>>;
92
93 #[cfg(feature = "MIDICIDevice")]
94 #[unsafe(method(midiCIDevice))]
101 #[unsafe(method_family = none)]
102 pub unsafe fn midiCIDevice(&self) -> Option<Retained<MIDICIDevice>>;
103
104 #[unsafe(method(isEnabled))]
106 #[unsafe(method_family = none)]
107 pub unsafe fn isEnabled(&self) -> bool;
108
109 #[unsafe(method(init))]
110 #[unsafe(method_family = init)]
111 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
112 );
113}
114
115#[cfg(feature = "objc2")]
117impl MIDIUMPFunctionBlock {
118 extern_methods!(
119 #[unsafe(method(new))]
120 #[unsafe(method_family = new)]
121 pub unsafe fn new() -> Retained<Self>;
122 );
123}