use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
use objc2_app_kit::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(PDFAnnotation, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "PDFAnnotation")]
#[deprecated]
pub struct PDFAnnotationFreeText;
);
#[cfg(feature = "PDFAnnotation")]
extern_conformance!(
unsafe impl NSCoding for PDFAnnotationFreeText {}
);
#[cfg(feature = "PDFAnnotation")]
extern_conformance!(
unsafe impl NSCopying for PDFAnnotationFreeText {}
);
#[cfg(feature = "PDFAnnotation")]
unsafe impl CopyingHelper for PDFAnnotationFreeText {
type Result = Self;
}
#[cfg(feature = "PDFAnnotation")]
extern_conformance!(
unsafe impl NSObjectProtocol for PDFAnnotationFreeText {}
);
#[cfg(feature = "PDFAnnotation")]
impl PDFAnnotationFreeText {
extern_methods!(
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
#[deprecated]
#[unsafe(method(font))]
#[unsafe(method_family = none)]
pub unsafe fn font(&self) -> Option<Retained<NSFont>>;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
#[deprecated]
#[unsafe(method(setFont:))]
#[unsafe(method_family = none)]
pub unsafe fn setFont(&self, font: Option<&NSFont>);
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
#[deprecated]
#[unsafe(method(fontColor))]
#[unsafe(method_family = none)]
pub unsafe fn fontColor(&self) -> Option<Retained<NSColor>>;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
#[deprecated]
#[unsafe(method(setFontColor:))]
#[unsafe(method_family = none)]
pub unsafe fn setFontColor(&self, color: Option<&NSColor>);
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
#[deprecated]
#[unsafe(method(alignment))]
#[unsafe(method_family = none)]
pub unsafe fn alignment(&self) -> NSTextAlignment;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
#[deprecated]
#[unsafe(method(setAlignment:))]
#[unsafe(method_family = none)]
pub unsafe fn setAlignment(&self, alignment: NSTextAlignment);
);
}
#[cfg(feature = "PDFAnnotation")]
impl PDFAnnotationFreeText {
extern_methods!(
#[unsafe(method(initWithBounds:forType:withProperties:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithBounds_forType_withProperties(
this: Allocated<Self>,
bounds: NSRect,
annotation_type: &PDFAnnotationSubtype,
properties: Option<&NSDictionary>,
) -> Retained<Self>;
);
}
#[cfg(feature = "PDFAnnotation")]
impl PDFAnnotationFreeText {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}