1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::WebKit::*;
extern_static!(NSReadAccessURLDocumentOption: &'static NSAttributedStringDocumentReadingOptionKey);
pub type NSAttributedStringCompletionHandler = *mut Block<
(
*mut NSAttributedString,
*mut NSDictionary<NSAttributedStringDocumentAttributeKey, Object>,
*mut NSError,
),
(),
>;
extern_methods!(
#[cfg(feature = "Foundation_NSAttributedString")]
unsafe impl NSAttributedString {
#[cfg(all(
feature = "Foundation_NSDictionary",
feature = "Foundation_NSURLRequest"
))]
#[method(loadFromHTMLWithRequest:options:completionHandler:)]
pub unsafe fn loadFromHTMLWithRequest_options_completionHandler(
request: &NSURLRequest,
options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, Object>,
completion_handler: NSAttributedStringCompletionHandler,
);
#[cfg(all(feature = "Foundation_NSDictionary", feature = "Foundation_NSURL"))]
#[method(loadFromHTMLWithFileURL:options:completionHandler:)]
pub unsafe fn loadFromHTMLWithFileURL_options_completionHandler(
file_url: &NSURL,
options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, Object>,
completion_handler: NSAttributedStringCompletionHandler,
);
#[cfg(all(feature = "Foundation_NSDictionary", feature = "Foundation_NSString"))]
#[method(loadFromHTMLWithString:options:completionHandler:)]
pub unsafe fn loadFromHTMLWithString_options_completionHandler(
string: &NSString,
options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, Object>,
completion_handler: NSAttributedStringCompletionHandler,
);
#[cfg(all(feature = "Foundation_NSData", feature = "Foundation_NSDictionary"))]
#[method(loadFromHTMLWithData:options:completionHandler:)]
pub unsafe fn loadFromHTMLWithData_options_completionHandler(
data: &NSData,
options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, Object>,
completion_handler: NSAttributedStringCompletionHandler,
);
}
);