objc2_web_kit/generated/
WKFindConfiguration.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 WKFindConfiguration;
16);
17
18extern_conformance!(
19 unsafe impl NSCopying for WKFindConfiguration {}
20);
21
22unsafe impl CopyingHelper for WKFindConfiguration {
23 type Result = Self;
24}
25
26extern_conformance!(
27 unsafe impl NSObjectProtocol for WKFindConfiguration {}
28);
29
30impl WKFindConfiguration {
31 extern_methods!(
32 #[unsafe(method(backwards))]
33 #[unsafe(method_family = none)]
34 pub unsafe fn backwards(&self) -> bool;
35
36 #[unsafe(method(setBackwards:))]
38 #[unsafe(method_family = none)]
39 pub unsafe fn setBackwards(&self, backwards: bool);
40
41 #[unsafe(method(caseSensitive))]
42 #[unsafe(method_family = none)]
43 pub unsafe fn caseSensitive(&self) -> bool;
44
45 #[unsafe(method(setCaseSensitive:))]
47 #[unsafe(method_family = none)]
48 pub unsafe fn setCaseSensitive(&self, case_sensitive: bool);
49
50 #[unsafe(method(wraps))]
51 #[unsafe(method_family = none)]
52 pub unsafe fn wraps(&self) -> bool;
53
54 #[unsafe(method(setWraps:))]
56 #[unsafe(method_family = none)]
57 pub unsafe fn setWraps(&self, wraps: bool);
58 );
59}
60
61impl WKFindConfiguration {
63 extern_methods!(
64 #[unsafe(method(init))]
65 #[unsafe(method_family = init)]
66 pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
67
68 #[unsafe(method(new))]
69 #[unsafe(method_family = new)]
70 pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
71 );
72}