icrate/generated/WebKit/
DOMCSSValueList.rs

1//! This file has been automatically generated by `objc2`'s `header-translator`.
2//! DO NOT EDIT
3use crate::common::*;
4use crate::AppKit::*;
5use crate::Foundation::*;
6use crate::WebKit::*;
7
8extern_class!(
9    #[derive(Debug, PartialEq, Eq, Hash)]
10    #[cfg(feature = "WebKit_DOMCSSValueList")]
11    #[deprecated]
12    pub struct DOMCSSValueList;
13
14    #[cfg(feature = "WebKit_DOMCSSValueList")]
15    unsafe impl ClassType for DOMCSSValueList {
16        #[inherits(DOMObject, WebScriptObject, NSObject)]
17        type Super = DOMCSSValue;
18        type Mutability = InteriorMutable;
19    }
20);
21
22#[cfg(feature = "WebKit_DOMCSSValueList")]
23unsafe impl NSCopying for DOMCSSValueList {}
24
25#[cfg(feature = "WebKit_DOMCSSValueList")]
26unsafe impl NSObjectProtocol for DOMCSSValueList {}
27
28extern_methods!(
29    #[cfg(feature = "WebKit_DOMCSSValueList")]
30    unsafe impl DOMCSSValueList {
31        #[deprecated]
32        #[method(length)]
33        pub unsafe fn length(&self) -> c_uint;
34
35        #[deprecated]
36        #[method_id(@__retain_semantics Other item:)]
37        pub unsafe fn item(&self, index: c_uint) -> Option<Id<DOMCSSValue>>;
38    }
39);
40
41extern_methods!(
42    /// Methods declared on superclass `DOMObject`
43    #[cfg(feature = "WebKit_DOMCSSValueList")]
44    unsafe impl DOMCSSValueList {
45        #[deprecated]
46        #[method_id(@__retain_semantics Init init)]
47        pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
48    }
49);
50
51extern_methods!(
52    /// Methods declared on superclass `NSObject`
53    #[cfg(feature = "WebKit_DOMCSSValueList")]
54    unsafe impl DOMCSSValueList {
55        #[method_id(@__retain_semantics New new)]
56        pub unsafe fn new() -> Id<Self>;
57    }
58);