use objc2::__framework_prelude::*;
use objc2_foundation::*;
use crate::*;
extern_class!(
#[derive(Debug, PartialEq, Eq, Hash)]
#[cfg(all(
feature = "DOMCSSRule",
feature = "DOMObject",
feature = "WebScriptObject"
))]
#[deprecated]
pub struct DOMCSSPageRule;
#[cfg(all(
feature = "DOMCSSRule",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl ClassType for DOMCSSPageRule {
#[inherits(DOMObject, WebScriptObject, NSObject)]
type Super = DOMCSSRule;
type Mutability = InteriorMutable;
}
);
#[cfg(all(
feature = "DOMCSSRule",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl NSCopying for DOMCSSPageRule {}
#[cfg(all(
feature = "DOMCSSRule",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl NSObjectProtocol for DOMCSSPageRule {}
extern_methods!(
#[cfg(all(
feature = "DOMCSSRule",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMCSSPageRule {
#[deprecated]
#[method_id(@__retain_semantics Other selectorText)]
pub unsafe fn selectorText(&self) -> Retained<NSString>;
#[deprecated]
#[method(setSelectorText:)]
pub unsafe fn setSelectorText(&self, selector_text: Option<&NSString>);
#[cfg(feature = "DOMCSSStyleDeclaration")]
#[deprecated]
#[method_id(@__retain_semantics Other style)]
pub unsafe fn style(&self) -> Option<Retained<DOMCSSStyleDeclaration>>;
}
);
extern_methods!(
#[cfg(all(
feature = "DOMCSSRule",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMCSSPageRule {
#[deprecated]
#[method_id(@__retain_semantics Init init)]
pub unsafe fn init(this: Allocated<Self>) -> Retained<Self>;
}
);
extern_methods!(
#[cfg(all(
feature = "DOMCSSRule",
feature = "DOMObject",
feature = "WebScriptObject"
))]
unsafe impl DOMCSSPageRule {
#[method_id(@__retain_semantics New new)]
pub unsafe fn new() -> Retained<Self>;
}
);