objc2_web_kit/generated/
WKFindConfiguration.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ffi::*;
4use core::ptr::NonNull;
5use objc2::__framework_prelude::*;
6use objc2_foundation::*;
7
8use crate::*;
9
10extern_class!(
11    /// [Apple's documentation](https://developer.apple.com/documentation/webkit/wkfindconfiguration?language=objc)
12    #[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        /// Setter for [`backwards`][Self::backwards].
37        #[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        /// Setter for [`caseSensitive`][Self::caseSensitive].
46        #[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        /// Setter for [`wraps`][Self::wraps].
55        #[unsafe(method(setWraps:))]
56        #[unsafe(method_family = none)]
57        pub unsafe fn setWraps(&self, wraps: bool);
58    );
59}
60
61/// Methods declared on superclass `NSObject`.
62impl 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}