//! This file has been automatically generated by `objc2`'s `header-translator`.
//! DO NOT EDIT
use crate::common::*;
use crate::AppKit::*;
use crate::Contacts::*;
use crate::CoreLocation::*;
use crate::Foundation::*;
use crate::MapKit::*;

extern_class!(
    #[derive(Debug, PartialEq, Eq, Hash)]
    #[cfg(feature = "MapKit_MKCircleRenderer")]
    pub struct MKCircleRenderer;

    #[cfg(feature = "MapKit_MKCircleRenderer")]
    unsafe impl ClassType for MKCircleRenderer {
        #[inherits(MKOverlayRenderer, NSObject)]
        type Super = MKOverlayPathRenderer;
        type Mutability = InteriorMutable;
    }
);

#[cfg(feature = "MapKit_MKCircleRenderer")]
unsafe impl NSObjectProtocol for MKCircleRenderer {}

extern_methods!(
    #[cfg(feature = "MapKit_MKCircleRenderer")]
    unsafe impl MKCircleRenderer {
        #[cfg(feature = "MapKit_MKCircle")]
        #[method_id(@__retain_semantics Init initWithCircle:)]
        pub unsafe fn initWithCircle(this: Option<Allocated<Self>>, circle: &MKCircle) -> Id<Self>;

        #[cfg(feature = "MapKit_MKCircle")]
        #[method_id(@__retain_semantics Other circle)]
        pub unsafe fn circle(&self) -> Id<MKCircle>;

        #[method(strokeStart)]
        pub unsafe fn strokeStart(&self) -> CGFloat;

        #[method(setStrokeStart:)]
        pub unsafe fn setStrokeStart(&self, stroke_start: CGFloat);

        #[method(strokeEnd)]
        pub unsafe fn strokeEnd(&self) -> CGFloat;

        #[method(setStrokeEnd:)]
        pub unsafe fn setStrokeEnd(&self, stroke_end: CGFloat);
    }
);

extern_methods!(
    /// Methods declared on superclass `MKOverlayRenderer`
    #[cfg(feature = "MapKit_MKCircleRenderer")]
    unsafe impl MKCircleRenderer {
        #[method_id(@__retain_semantics Init initWithOverlay:)]
        pub unsafe fn initWithOverlay(
            this: Option<Allocated<Self>>,
            overlay: &ProtocolObject<dyn MKOverlay>,
        ) -> Id<Self>;
    }
);

extern_methods!(
    /// Methods declared on superclass `NSObject`
    #[cfg(feature = "MapKit_MKCircleRenderer")]
    unsafe impl MKCircleRenderer {
        #[method_id(@__retain_semantics Init init)]
        pub unsafe fn init(this: Option<Allocated<Self>>) -> Id<Self>;

        #[method_id(@__retain_semantics New new)]
        pub unsafe fn new() -> Id<Self>;
    }
);
