use core::ffi::*;
use core::ptr::NonNull;
use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[unsafe(super(DOMObject, WebScriptObject, NSObject))]
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
#[deprecated]
pub struct DOMStyleSheetList;
);
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl NSCopying for DOMStyleSheetList {}
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl CopyingHelper for DOMStyleSheetList {
type Result = Self;
}
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
unsafe impl NSObjectProtocol for DOMStyleSheetList {}
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
impl DOMStyleSheetList {
extern_methods!(
#[deprecated]
#[unsafe(method(length))]
#[unsafe(method_family = none)]
pub unsafe fn length(&self) -> c_uint;
#[cfg(feature = "DOMStyleSheet")]
#[deprecated]
#[unsafe(method(item:))]
#[unsafe(method_family = none)]
pub unsafe fn item(&self, index: c_uint) -> Option<Retained<DOMStyleSheet>>;
);
}
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
impl DOMStyleSheetList {
extern_methods!(
#[deprecated]
#[unsafe(method(init))]
#[unsafe(method_family = init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
);
}
#[cfg(all(feature = "DOMObject", feature = "WebScriptObject"))]
impl DOMStyleSheetList {
extern_methods!(
#[unsafe(method(new))]
#[unsafe(method_family = new)]
pub unsafe fn new() -> Retained<Self>;
);
}