objc2_browser_engine_kit/generated/
BETextSuggestion.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use core::ptr::NonNull;
4use objc2::__framework_prelude::*;
5use objc2_foundation::*;
6
7use crate::*;
8
9extern_class!(
10    /// [Apple's documentation](https://developer.apple.com/documentation/browserenginekit/betextsuggestion?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct BETextSuggestion;
14);
15
16extern_conformance!(
17    unsafe impl NSObjectProtocol for BETextSuggestion {}
18);
19
20impl BETextSuggestion {
21    extern_methods!(
22        /// Initializes a new text suggestion with the given input text.
23        #[unsafe(method(initWithInputText:))]
24        #[unsafe(method_family = init)]
25        pub unsafe fn initWithInputText(
26            this: Allocated<Self>,
27            input_text: &NSString,
28        ) -> Retained<Self>;
29
30        /// Text that will be inserted into the document when the user chooses the suggestion.
31        #[unsafe(method(inputText))]
32        #[unsafe(method_family = none)]
33        pub unsafe fn inputText(&self) -> Retained<NSString>;
34
35        #[unsafe(method(new))]
36        #[unsafe(method_family = new)]
37        pub unsafe fn new(&self) -> Retained<Self>;
38
39        #[unsafe(method(init))]
40        #[unsafe(method_family = init)]
41        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
42    );
43}
44
45/// Methods declared on superclass `NSObject`.
46impl BETextSuggestion {
47    extern_methods!(
48        #[unsafe(method(new))]
49        #[unsafe(method_family = new)]
50        pub unsafe fn new_class() -> Retained<Self>;
51    );
52}