objc2_browser_engine_kit/generated/
BETextAlternatives.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/betextalternatives?language=objc)
11    #[unsafe(super(NSObject))]
12    #[derive(Debug, PartialEq, Eq, Hash)]
13    pub struct BETextAlternatives;
14);
15
16extern_conformance!(
17    unsafe impl NSObjectProtocol for BETextAlternatives {}
18);
19
20impl BETextAlternatives {
21    extern_methods!(
22        /// Original text for which alternative strings are provided
23        #[unsafe(method(primaryString))]
24        #[unsafe(method_family = none)]
25        pub unsafe fn primaryString(&self) -> Retained<NSString>;
26
27        /// Array of available aternative strings
28        #[unsafe(method(alternativeStrings))]
29        #[unsafe(method_family = none)]
30        pub unsafe fn alternativeStrings(&self) -> Retained<NSArray<NSString>>;
31
32        #[unsafe(method(new))]
33        #[unsafe(method_family = new)]
34        pub unsafe fn new(&self) -> Retained<Self>;
35
36        #[unsafe(method(init))]
37        #[unsafe(method_family = init)]
38        pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
39    );
40}
41
42/// Methods declared on superclass `NSObject`.
43impl BETextAlternatives {
44    extern_methods!(
45        #[unsafe(method(new))]
46        #[unsafe(method_family = new)]
47        pub unsafe fn new_class() -> Retained<Self>;
48    );
49}