objc2_app_kit/generated/
NSPathControlItem.rs1use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11 #[unsafe(super(NSObject))]
13 #[derive(Debug, PartialEq, Eq, Hash)]
14 pub struct NSPathControlItem;
15);
16
17unsafe impl NSObjectProtocol for NSPathControlItem {}
18
19impl NSPathControlItem {
20 extern_methods!(
21 #[unsafe(method(title))]
22 #[unsafe(method_family = none)]
23 pub unsafe fn title(&self) -> Retained<NSString>;
24
25 #[unsafe(method(setTitle:))]
27 #[unsafe(method_family = none)]
28 pub unsafe fn setTitle(&self, title: &NSString);
29
30 #[unsafe(method(attributedTitle))]
31 #[unsafe(method_family = none)]
32 pub unsafe fn attributedTitle(&self) -> Retained<NSAttributedString>;
33
34 #[unsafe(method(setAttributedTitle:))]
36 #[unsafe(method_family = none)]
37 pub unsafe fn setAttributedTitle(&self, attributed_title: &NSAttributedString);
38
39 #[cfg(feature = "NSImage")]
40 #[unsafe(method(image))]
41 #[unsafe(method_family = none)]
42 pub unsafe fn image(&self) -> Option<Retained<NSImage>>;
43
44 #[cfg(feature = "NSImage")]
45 #[unsafe(method(setImage:))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn setImage(&self, image: Option<&NSImage>);
49
50 #[unsafe(method(URL))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn URL(&self) -> Option<Retained<NSURL>>;
53 );
54}
55
56impl NSPathControlItem {
58 extern_methods!(
59 #[unsafe(method(init))]
60 #[unsafe(method_family = init)]
61 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
62
63 #[unsafe(method(new))]
64 #[unsafe(method_family = new)]
65 pub unsafe fn new() -> Retained<Self>;
66 );
67}