use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
use objc2_app_kit::*;
use objc2_foundation::*;
use crate::*;
extern "C" {
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
pub static NSReadAccessURLDocumentOption: &'static NSAttributedStringDocumentReadingOptionKey;
}
#[cfg(all(feature = "block2", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
pub type NSAttributedStringCompletionHandler = *mut block2::Block<
dyn Fn(
*mut NSAttributedString,
*mut NSDictionary<NSAttributedStringDocumentAttributeKey, AnyObject>,
*mut NSError,
),
>;
extern_category!(
pub unsafe trait NSAttributedStringWebKitAdditions {
#[cfg(all(feature = "block2", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
#[method(loadFromHTMLWithRequest:options:completionHandler:)]
unsafe fn loadFromHTMLWithRequest_options_completionHandler(
request: &NSURLRequest,
options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>,
completion_handler: NSAttributedStringCompletionHandler,
);
#[cfg(all(feature = "block2", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
#[method(loadFromHTMLWithFileURL:options:completionHandler:)]
unsafe fn loadFromHTMLWithFileURL_options_completionHandler(
file_url: &NSURL,
options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>,
completion_handler: NSAttributedStringCompletionHandler,
);
#[cfg(all(feature = "block2", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
#[method(loadFromHTMLWithString:options:completionHandler:)]
unsafe fn loadFromHTMLWithString_options_completionHandler(
string: &NSString,
options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>,
completion_handler: NSAttributedStringCompletionHandler,
);
#[cfg(all(feature = "block2", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
#[method(loadFromHTMLWithData:options:completionHandler:)]
unsafe fn loadFromHTMLWithData_options_completionHandler(
data: &NSData,
options: &NSDictionary<NSAttributedStringDocumentReadingOptionKey, AnyObject>,
completion_handler: NSAttributedStringCompletionHandler,
);
}
unsafe impl NSAttributedStringWebKitAdditions for NSAttributedString {}
);