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::*;
pub type PDFAppearanceCharacteristicsKey = NSString;
extern "C" {
pub static PDFAppearanceCharacteristicsKeyBackgroundColor:
&'static PDFAppearanceCharacteristicsKey;
}
extern "C" {
pub static PDFAppearanceCharacteristicsKeyBorderColor: &'static PDFAppearanceCharacteristicsKey;
}
extern "C" {
pub static PDFAppearanceCharacteristicsKeyRotation: &'static PDFAppearanceCharacteristicsKey;
}
extern "C" {
pub static PDFAppearanceCharacteristicsKeyCaption: &'static PDFAppearanceCharacteristicsKey;
}
extern "C" {
pub static PDFAppearanceCharacteristicsKeyRolloverCaption:
&'static PDFAppearanceCharacteristicsKey;
}
extern "C" {
pub static PDFAppearanceCharacteristicsKeyDownCaption: &'static PDFAppearanceCharacteristicsKey;
}
extern_class!(
#[unsafe(super(NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
pub struct PDFAppearanceCharacteristics;
);
extern_conformance!(
unsafe impl NSCopying for PDFAppearanceCharacteristics {}
);
unsafe impl CopyingHelper for PDFAppearanceCharacteristics {
type Result = Self;
}
extern_conformance!(
unsafe impl NSObjectProtocol for PDFAppearanceCharacteristics {}
);
impl PDFAppearanceCharacteristics {
extern_methods!(
#[cfg(feature = "PDFAnnotationUtilities")]
#[unsafe(method(controlType))]
#[unsafe(method_family = none)]
pub unsafe fn controlType(&self) -> PDFWidgetControlType;
#[cfg(feature = "PDFAnnotationUtilities")]
#[unsafe(method(setControlType:))]
#[unsafe(method_family = none)]
pub unsafe fn setControlType(&self, control_type: PDFWidgetControlType);
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
#[unsafe(method(backgroundColor))]
#[unsafe(method_family = none)]
pub unsafe fn backgroundColor(&self) -> Option<Retained<NSColor>>;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
#[unsafe(method(setBackgroundColor:))]
#[unsafe(method_family = none)]
pub unsafe fn setBackgroundColor(&self, background_color: Option<&NSColor>);
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
#[unsafe(method(borderColor))]
#[unsafe(method_family = none)]
pub unsafe fn borderColor(&self) -> Option<Retained<NSColor>>;
#[cfg(feature = "objc2-app-kit")]
#[cfg(target_os = "macos")]
#[unsafe(method(setBorderColor:))]
#[unsafe(method_family = none)]
pub unsafe fn setBorderColor(&self, border_color: Option<&NSColor>);
#[unsafe(method(rotation))]
#[unsafe(method_family = none)]
pub unsafe fn rotation(&self) -> NSInteger;
#[unsafe(method(setRotation:))]
#[unsafe(method_family = none)]
pub unsafe fn setRotation(&self, rotation: NSInteger);
#[unsafe(method(caption))]
#[unsafe(method_family = none)]
pub unsafe fn caption(&self) -> Option<Retained<NSString>>;
#[unsafe(method(setCaption:))]
#[unsafe(method_family = none)]
pub unsafe fn setCaption(&self, caption: Option<&NSString>);
#[unsafe(method(rolloverCaption))]
#[unsafe(method_family = none)]
pub unsafe fn rolloverCaption(&self) -> Option<Retained<NSString>>;
#[unsafe(method(setRolloverCaption:))]
#[unsafe(method_family = none)]
pub unsafe fn setRolloverCaption(&self, rollover_caption: Option<&NSString>);
#[unsafe(method(downCaption))]
#[unsafe(method_family = none)]
pub unsafe fn downCaption(&self) -> Option<Retained<NSString>>;
#[unsafe(method(setDownCaption:))]
#[unsafe(method_family = none)]
pub unsafe fn setDownCaption(&self, down_caption: Option<&NSString>);
#[unsafe(method(appearanceCharacteristicsKeyValues))]
#[unsafe(method_family = none)]
pub unsafe fn appearanceCharacteristicsKeyValues(&self) -> Retained<NSDictionary>;
);
}
impl PDFAppearanceCharacteristics {
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>;
);
}