Struct xpcom::interfaces::nsIDOMCSSRule
[−]
[src]
#[repr(C)]pub struct nsIDOMCSSRule { /* fields omitted */ }
interface nsIDOMCSSRule : nsISupports
Methods
impl nsIDOMCSSRule
[src]
pub fn coerce<T: nsIDOMCSSRuleCoerce>(&self) -> &T
[src]
Cast this nsIDOMCSSRule
to one of its base interfaces.
impl nsIDOMCSSRule
[src]
pub const UNKNOWN_RULE: i64
UNKNOWN_RULE: i64 = 0
/**
* The nsIDOMCSSRule interface is a datatype for a CSS style rule in
* the Document Object Model.
*
* For more information on this interface please see
* http://www.w3.org/TR/DOM-Level-2-Style
*/
pub const STYLE_RULE: i64
STYLE_RULE: i64 = 1
pub const CHARSET_RULE: i64
CHARSET_RULE: i64 = 2
pub const IMPORT_RULE: i64
IMPORT_RULE: i64 = 3
pub const MEDIA_RULE: i64
MEDIA_RULE: i64 = 4
pub const FONT_FACE_RULE: i64
FONT_FACE_RULE: i64 = 5
pub const PAGE_RULE: i64
PAGE_RULE: i64 = 6
pub const KEYFRAMES_RULE: i64
KEYFRAMES_RULE: i64 = 7
pub const KEYFRAME_RULE: i64
KEYFRAME_RULE: i64 = 8
pub const MOZ_KEYFRAMES_RULE: i64
MOZ_KEYFRAMES_RULE: i64 = 7
pub const MOZ_KEYFRAME_RULE: i64
MOZ_KEYFRAME_RULE: i64 = 8
pub const NAMESPACE_RULE: i64
NAMESPACE_RULE: i64 = 10
pub const COUNTER_STYLE_RULE: i64
COUNTER_STYLE_RULE: i64 = 11
pub const SUPPORTS_RULE: i64
SUPPORTS_RULE: i64 = 12
pub const DOCUMENT_RULE: i64
DOCUMENT_RULE: i64 = 13
pub const FONT_FEATURE_VALUES_RULE: i64
FONT_FEATURE_VALUES_RULE: i64 = 14
pub unsafe fn GetType(&self, aType: *mut uint16_t) -> nsresult
[src]
readonly attribute unsigned short type;
pub unsafe fn GetCssText(&self, aCssText: &mut nsAString) -> nsresult
[src]
attribute DOMString cssText;
pub unsafe fn SetCssText(&self, aCssText: &nsAString) -> nsresult
[src]
attribute DOMString cssText;
pub unsafe fn GetParentStyleSheet(
&self,
aParentStyleSheet: *mut *const nsIDOMCSSStyleSheet
) -> nsresult
[src]
&self,
aParentStyleSheet: *mut *const nsIDOMCSSStyleSheet
) -> nsresult
readonly attribute nsIDOMCSSStyleSheet parentStyleSheet;
pub unsafe fn GetParentRule(
&self,
aParentRule: *mut *const nsIDOMCSSRule
) -> nsresult
[src]
&self,
aParentRule: *mut *const nsIDOMCSSRule
) -> nsresult
readonly attribute nsIDOMCSSRule parentRule;
Methods from Deref<Target = nsISupports>
pub fn coerce<T: nsISupportsCoerce>(&self) -> &T
[src]
Cast this nsISupports
to one of its base interfaces.
pub unsafe fn QueryInterface(
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
[src]
&self,
uuid: &nsIID,
result: *mut *mut c_void
) -> nsresult
void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);
pub unsafe fn AddRef(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt AddRef ();
pub unsafe fn Release(&self) -> nsrefcnt
[src]
[noscript,notxpcom] nsrefcnt Release ();
Trait Implementations
impl XpCom for nsIDOMCSSRule
[src]
const IID: nsIID
IID: nsIID = nsID(1298873261, 62780, 17797, [130, 246, 98, 152, 46, 39, 237, 232])
fn query_interface<T: XpCom>(&self) -> Option<RefPtr<T>>
[src]
Perform a QueryInterface call on this object, attempting to dynamically cast it to the requested interface type. Returns Some(RefPtr) if the cast succeeded, and None otherwise. Read more
impl RefCounted for nsIDOMCSSRule
[src]
unsafe fn addref(&self)
[src]
Increment the reference count.
unsafe fn release(&self)
[src]
Decrement the reference count, potentially freeing backing memory.
impl Deref for nsIDOMCSSRule
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.