objc2_ui_kit/generated/
UIViewConfigurationState.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 #[thread_kind = MainThreadOnly]
14 #[derive(Debug, PartialEq, Eq, Hash)]
15 pub struct UIViewConfigurationState;
16);
17
18extern_conformance!(
19 unsafe impl NSCoding for UIViewConfigurationState {}
20);
21
22extern_conformance!(
23 unsafe impl NSCopying for UIViewConfigurationState {}
24);
25
26unsafe impl CopyingHelper for UIViewConfigurationState {
27 type Result = Self;
28}
29
30extern_conformance!(
31 unsafe impl NSObjectProtocol for UIViewConfigurationState {}
32);
33
34extern_conformance!(
35 unsafe impl NSSecureCoding for UIViewConfigurationState {}
36);
37
38#[cfg(feature = "UIConfigurationState")]
39extern_conformance!(
40 unsafe impl UIConfigurationState for UIViewConfigurationState {}
41);
42
43impl UIViewConfigurationState {
44 extern_methods!(
45 #[cfg(feature = "UITraitCollection")]
46 #[unsafe(method(initWithTraitCollection:))]
48 #[unsafe(method_family = init)]
49 pub unsafe fn initWithTraitCollection(
50 this: Allocated<Self>,
51 trait_collection: &UITraitCollection,
52 ) -> Retained<Self>;
53
54 #[unsafe(method(initWithCoder:))]
55 #[unsafe(method_family = init)]
56 pub unsafe fn initWithCoder(
57 this: Allocated<Self>,
58 coder: &NSCoder,
59 ) -> Option<Retained<Self>>;
60
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(mtm: MainThreadMarker) -> Retained<Self>;
68
69 #[cfg(feature = "UITraitCollection")]
70 #[unsafe(method(traitCollection))]
71 #[unsafe(method_family = none)]
72 pub unsafe fn traitCollection(&self) -> Retained<UITraitCollection>;
73
74 #[cfg(feature = "UITraitCollection")]
75 #[unsafe(method(setTraitCollection:))]
77 #[unsafe(method_family = none)]
78 pub unsafe fn setTraitCollection(&self, trait_collection: &UITraitCollection);
79
80 #[unsafe(method(isDisabled))]
81 #[unsafe(method_family = none)]
82 pub unsafe fn isDisabled(&self) -> bool;
83
84 #[unsafe(method(setDisabled:))]
86 #[unsafe(method_family = none)]
87 pub unsafe fn setDisabled(&self, disabled: bool);
88
89 #[unsafe(method(isHighlighted))]
90 #[unsafe(method_family = none)]
91 pub unsafe fn isHighlighted(&self) -> bool;
92
93 #[unsafe(method(setHighlighted:))]
95 #[unsafe(method_family = none)]
96 pub unsafe fn setHighlighted(&self, highlighted: bool);
97
98 #[unsafe(method(isSelected))]
99 #[unsafe(method_family = none)]
100 pub unsafe fn isSelected(&self) -> bool;
101
102 #[unsafe(method(setSelected:))]
104 #[unsafe(method_family = none)]
105 pub unsafe fn setSelected(&self, selected: bool);
106
107 #[unsafe(method(isFocused))]
108 #[unsafe(method_family = none)]
109 pub unsafe fn isFocused(&self) -> bool;
110
111 #[unsafe(method(setFocused:))]
113 #[unsafe(method_family = none)]
114 pub unsafe fn setFocused(&self, focused: bool);
115
116 #[unsafe(method(isPinned))]
117 #[unsafe(method_family = none)]
118 pub unsafe fn isPinned(&self) -> bool;
119
120 #[unsafe(method(setPinned:))]
122 #[unsafe(method_family = none)]
123 pub unsafe fn setPinned(&self, pinned: bool);
124 );
125}