pub trait DOMCSSStyleDeclarationExt: 'static {
Show 14 methods
fn css_text(&self) -> Option<GString>;
fn length(&self) -> c_ulong;
fn parent_rule(&self) -> Option<DOMCSSRule>;
fn property_priority(&self, propertyName: &str) -> Option<GString>;
fn property_shorthand(&self, propertyName: &str) -> Option<GString>;
fn property_value(&self, propertyName: &str) -> Option<GString>;
fn is_property_implicit(&self, propertyName: &str) -> bool;
fn item(&self, index: c_ulong) -> Option<GString>;
fn remove_property(&self, propertyName: &str) -> Result<GString, Error>;
fn set_css_text(&self, value: &str) -> Result<(), Error>;
fn set_property(
&self,
propertyName: &str,
value: &str,
priority: &str
) -> Result<(), Error>;
fn connect_css_text_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_length_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
fn connect_parent_rule_notify<F: Fn(&Self) + 'static>(
&self,
f: F
) -> SignalHandlerId;
}
Expand description
Required Methods
sourcefn parent_rule(&self) -> Option<DOMCSSRule>
fn parent_rule(&self) -> Option<DOMCSSRule>
sourcefn property_priority(&self, propertyName: &str) -> Option<GString>
fn property_priority(&self, propertyName: &str) -> Option<GString>
sourcefn property_shorthand(&self, propertyName: &str) -> Option<GString>
fn property_shorthand(&self, propertyName: &str) -> Option<GString>
sourcefn property_value(&self, propertyName: &str) -> Option<GString>
fn property_value(&self, propertyName: &str) -> Option<GString>
sourcefn is_property_implicit(&self, propertyName: &str) -> bool
fn is_property_implicit(&self, propertyName: &str) -> bool
sourcefn set_property(
&self,
propertyName: &str,
value: &str,
priority: &str
) -> Result<(), Error>
fn set_property(
&self,
propertyName: &str,
value: &str,
priority: &str
) -> Result<(), Error>
Deprecated since 2.22
Use JavaScriptCore API instead
propertyName
A gchar
value
A gchar
priority
A gchar