use crate::common::*;
use crate::AppKit::*;
use crate::Foundation::*;
use crate::WebKit::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(feature = "WebKit_DOMCSSStyleSheet")]
#[deprecated]
pub struct DOMCSSStyleSheet;
#[cfg(feature = "WebKit_DOMCSSStyleSheet")]
unsafe impl ClassType for DOMCSSStyleSheet {
#[inherits(DOMObject, WebScriptObject, NSObject)]
type Super = DOMStyleSheet;
type Mutability = InteriorMutable;
}
);
#[cfg(feature = "WebKit_DOMCSSStyleSheet")]
unsafe impl NSCopying for DOMCSSStyleSheet {}
#[cfg(feature = "WebKit_DOMCSSStyleSheet")]
unsafe impl NSObjectProtocol for DOMCSSStyleSheet {}
extern_methods!(
#[cfg(feature = "WebKit_DOMCSSStyleSheet")]
unsafe impl DOMCSSStyleSheet {
#[cfg(feature = "WebKit_DOMCSSRule")]
#[deprecated]
#[method_id(@__retain_semantics Other ownerRule)]
pub unsafe fn ownerRule(&self) -> Option<Id<DOMCSSRule>>;
#[cfg(feature = "WebKit_DOMCSSRuleList")]
#[deprecated]
#[method_id(@__retain_semantics Other cssRules)]
pub unsafe fn cssRules(&self) -> Option<Id<DOMCSSRuleList>>;
#[cfg(feature = "WebKit_DOMCSSRuleList")]
#[method_id(@__retain_semantics Other rules)]
pub unsafe fn rules(&self) -> Option<Id<DOMCSSRuleList>>;
#[cfg(feature = "Foundation_NSString")]
#[method(insertRule:index:)]
pub unsafe fn insertRule_index(&self, rule: Option<&NSString>, index: c_uint) -> c_uint;
#[deprecated]
#[method(deleteRule:)]
pub unsafe fn deleteRule(&self, index: c_uint);
#[cfg(feature = "Foundation_NSString")]
#[method(addRule:style:index:)]
pub unsafe fn addRule_style_index(
&self,
selector: Option<&NSString>,
style: Option<&NSString>,
index: c_uint,
) -> c_int;
#[method(removeRule:)]
pub unsafe fn removeRule(&self, index: c_uint);
}
);
extern_methods!(
#[cfg(feature = "WebKit_DOMCSSStyleSheet")]
unsafe impl DOMCSSStyleSheet {
#[deprecated]
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Id<Self>;
}
);
extern_methods!(
#[cfg(feature = "WebKit_DOMCSSStyleSheet")]
unsafe impl DOMCSSStyleSheet {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Id<Self>;
}
);
extern_methods!(
#[cfg(feature = "WebKit_DOMCSSStyleSheet")]
unsafe impl DOMCSSStyleSheet {
#[cfg(feature = "Foundation_NSString")]
#[deprecated]
#[method(insertRule::)]
pub unsafe fn insertRule(&self, rule: Option<&NSString>, index: c_uint) -> c_uint;
}
);