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 PDFAnnotationLine;
);
#[cfg(feature = "PDFAnnotation")]
extern_conformance!(
unsafe impl NSCoding for PDFAnnotationLine {}
);
#[cfg(feature = "PDFAnnotation")]
extern_conformance!(
unsafe impl NSCopying for PDFAnnotationLine {}
);
#[cfg(feature = "PDFAnnotation")]
unsafe impl CopyingHelper for PDFAnnotationLine {
type Result = Self;
}
#[cfg(feature = "PDFAnnotation")]
extern_conformance!(
unsafe impl NSObjectProtocol for PDFAnnotationLine {}
);
#[cfg(feature = "PDFAnnotation")]
impl PDFAnnotationLine {
extern_methods!(
#[deprecated]
#[unsafe(method(startPoint))]
#[unsafe(method_family = none)]
pub unsafe fn startPoint(&self) -> NSPoint;
#[deprecated]
#[unsafe(method(setStartPoint:))]
#[unsafe(method_family = none)]
pub unsafe fn setStartPoint(&self, point: NSPoint);
#[deprecated]
#[unsafe(method(endPoint))]
#[unsafe(method_family = none)]
pub unsafe fn endPoint(&self) -> NSPoint;
#[deprecated]
#[unsafe(method(setEndPoint:))]
#[unsafe(method_family = none)]
pub unsafe fn setEndPoint(&self, point: NSPoint);
#[cfg(feature = "PDFAnnotationUtilities")]
#[deprecated]
#[unsafe(method(startLineStyle))]
#[unsafe(method_family = none)]
pub unsafe fn startLineStyle(&self) -> PDFLineStyle;
#[cfg(feature = "PDFAnnotationUtilities")]
#[deprecated]
#[unsafe(method(setStartLineStyle:))]
#[unsafe(method_family = none)]
pub unsafe fn setStartLineStyle(&self, style: PDFLineStyle);
#[cfg(feature = "PDFAnnotationUtilities")]
#[deprecated]
#[unsafe(method(endLineStyle))]
#[unsafe(method_family = none)]
pub unsafe fn endLineStyle(&self) -> PDFLineStyle;
#[cfg(feature = "PDFAnnotationUtilities")]
#[deprecated]
#[unsafe(method(setEndLineStyle:))]
#[unsafe(method_family = none)]
pub unsafe fn setEndLineStyle(&self, style: PDFLineStyle);
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
#[deprecated]
#[unsafe(method(interiorColor))]
#[unsafe(method_family = none)]
pub unsafe fn interiorColor(&self) -> Option<Retained<NSColor>>;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
#[deprecated]
#[unsafe(method(setInteriorColor:))]
#[unsafe(method_family = none)]
pub unsafe fn setInteriorColor(&self, color: Option<&NSColor>);
);
}
#[cfg(feature = "PDFAnnotation")]
impl PDFAnnotationLine {
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 PDFAnnotationLine {
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>;
);
}