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(MKAnnotationView, NSView, NSResponder, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
pub struct MKMarkerAnnotationView;
);
#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
extern_conformance!(
unsafe impl NSAccessibility for MKMarkerAnnotationView {}
);
#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
extern_conformance!(
unsafe impl NSAccessibilityElementProtocol for MKMarkerAnnotationView {}
);
#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
extern_conformance!(
unsafe impl NSAnimatablePropertyContainer for MKMarkerAnnotationView {}
);
#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
extern_conformance!(
unsafe impl NSAppearanceCustomization for MKMarkerAnnotationView {}
);
#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
extern_conformance!(
unsafe impl NSCoding for MKMarkerAnnotationView {}
);
#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
extern_conformance!(
unsafe impl NSDraggingDestination for MKMarkerAnnotationView {}
);
#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
extern_conformance!(
unsafe impl NSObjectProtocol for MKMarkerAnnotationView {}
);
#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
extern_conformance!(
unsafe impl NSUserInterfaceItemIdentification for MKMarkerAnnotationView {}
);
#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
impl MKMarkerAnnotationView {
extern_methods!(
#[cfg(feature = "MKTypes")]
#[unsafe(method(titleVisibility))]
#[unsafe(method_family = none)]
pub unsafe fn titleVisibility(&self) -> MKFeatureVisibility;
#[cfg(feature = "MKTypes")]
#[unsafe(method(setTitleVisibility:))]
#[unsafe(method_family = none)]
pub unsafe fn setTitleVisibility(&self, title_visibility: MKFeatureVisibility);
#[cfg(feature = "MKTypes")]
#[unsafe(method(subtitleVisibility))]
#[unsafe(method_family = none)]
pub unsafe fn subtitleVisibility(&self) -> MKFeatureVisibility;
#[cfg(feature = "MKTypes")]
#[unsafe(method(setSubtitleVisibility:))]
#[unsafe(method_family = none)]
pub unsafe fn setSubtitleVisibility(&self, subtitle_visibility: MKFeatureVisibility);
#[unsafe(method(markerTintColor))]
#[unsafe(method_family = none)]
pub unsafe fn markerTintColor(&self) -> Option<Retained<NSColor>>;
#[unsafe(method(setMarkerTintColor:))]
#[unsafe(method_family = none)]
pub unsafe fn setMarkerTintColor(&self, marker_tint_color: Option<&NSColor>);
#[unsafe(method(glyphTintColor))]
#[unsafe(method_family = none)]
pub unsafe fn glyphTintColor(&self) -> Option<Retained<NSColor>>;
#[unsafe(method(setGlyphTintColor:))]
#[unsafe(method_family = none)]
pub unsafe fn setGlyphTintColor(&self, glyph_tint_color: Option<&NSColor>);
#[unsafe(method(glyphText))]
#[unsafe(method_family = none)]
pub unsafe fn glyphText(&self) -> Option<Retained<NSString>>;
#[unsafe(method(setGlyphText:))]
#[unsafe(method_family = none)]
pub unsafe fn setGlyphText(&self, glyph_text: Option<&NSString>);
#[unsafe(method(glyphImage))]
#[unsafe(method_family = none)]
pub unsafe fn glyphImage(&self) -> Option<Retained<NSImage>>;
#[unsafe(method(setGlyphImage:))]
#[unsafe(method_family = none)]
pub unsafe fn setGlyphImage(&self, glyph_image: Option<&NSImage>);
#[unsafe(method(selectedGlyphImage))]
#[unsafe(method_family = none)]
pub unsafe fn selectedGlyphImage(&self) -> Option<Retained<NSImage>>;
#[unsafe(method(setSelectedGlyphImage:))]
#[unsafe(method_family = none)]
pub unsafe fn setSelectedGlyphImage(&self, selected_glyph_image: Option<&NSImage>);
#[unsafe(method(animatesWhenAdded))]
#[unsafe(method_family = none)]
pub unsafe fn animatesWhenAdded(&self) -> bool;
#[unsafe(method(setAnimatesWhenAdded:))]
#[unsafe(method_family = none)]
pub unsafe fn setAnimatesWhenAdded(&self, animates_when_added: bool);
);
}
#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
impl MKMarkerAnnotationView {
extern_methods!(
#[cfg(feature = "MKAnnotation")]
#[unsafe(method(initWithAnnotation:reuseIdentifier:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithAnnotation_reuseIdentifier(
this: Allocated<Self>,
annotation: Option<&ProtocolObject<dyn MKAnnotation>>,
reuse_identifier: Option<&NSString>,
) -> Retained<Self>;
#[unsafe(method(initWithCoder:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithCoder(
this: Allocated<Self>,
a_decoder: &NSCoder,
) -> Option<Retained<Self>>;
);
}
#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
impl MKMarkerAnnotationView {
extern_methods!(
#[unsafe(method(initWithFrame:))]
#[unsafe(method_family = init)]
pub unsafe fn initWithFrame(this: Allocated<Self>, frame_rect: NSRect) -> Retained<Self>;
);
}
#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
impl MKMarkerAnnotationView {
extern_methods!(
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(all(feature = "MKAnnotationView", feature = "objc2-app-kit"))]
#[cfg(target_os = "macos")]
impl MKMarkerAnnotationView {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new(mtm: MainThreadMarker) -> Retained<Self>;
);
}