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
17extern_conformance!(
18 unsafe impl NSObjectProtocol for NSPathControlItem {}
19);
20
21impl NSPathControlItem {
22 extern_methods!(
23 #[unsafe(method(title))]
24 #[unsafe(method_family = none)]
25 pub unsafe fn title(&self) -> Retained<NSString>;
26
27 #[unsafe(method(setTitle:))]
29 #[unsafe(method_family = none)]
30 pub unsafe fn setTitle(&self, title: &NSString);
31
32 #[unsafe(method(attributedTitle))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn attributedTitle(&self) -> Retained<NSAttributedString>;
35
36 #[unsafe(method(setAttributedTitle:))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn setAttributedTitle(&self, attributed_title: &NSAttributedString);
40
41 #[cfg(feature = "NSImage")]
42 #[unsafe(method(image))]
43 #[unsafe(method_family = none)]
44 pub unsafe fn image(&self) -> Option<Retained<NSImage>>;
45
46 #[cfg(feature = "NSImage")]
47 #[unsafe(method(setImage:))]
49 #[unsafe(method_family = none)]
50 pub unsafe fn setImage(&self, image: Option<&NSImage>);
51
52 #[unsafe(method(URL))]
53 #[unsafe(method_family = none)]
54 pub unsafe fn URL(&self) -> Option<Retained<NSURL>>;
55 );
56}
57
58impl NSPathControlItem {
60 extern_methods!(
61 #[unsafe(method(init))]
62 #[unsafe(method_family = init)]
63 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
64
65 #[unsafe(method(new))]
66 #[unsafe(method_family = new)]
67 pub unsafe fn new() -> Retained<Self>;
68 );
69}