pub trait DOMCSSStyleSheetExt: 'static {
fn add_rule(
&self,
selector: &str,
style: &str,
index: c_ulong
) -> Result<c_long, Error>;
fn delete_rule(&self, index: c_ulong) -> Result<(), Error>;
fn css_rules(&self) -> Option<DOMCSSRuleList>;
fn owner_rule(&self) -> Option<DOMCSSRule>;
fn rules(&self) -> Option<DOMCSSRuleList>;
fn insert_rule(&self, rule: &str, index: c_ulong) -> Result<c_ulong, Error>;
fn remove_rule(&self, index: c_ulong) -> Result<(), Error>;
fn connect_css_rules_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_owner_rule_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_rules_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Expand description
Required Methods
sourcefn add_rule(
&self,
selector: &str,
style: &str,
index: c_ulong
) -> Result<c_long, Error>
fn add_rule(
&self,
selector: &str,
style: &str,
index: c_ulong
) -> Result<c_long, Error>
Deprecated since 2.22
Use JavaScriptCore API instead
selector
A gchar
style
A gchar
index
A gulong
Returns
A glong