Struct xpcom::interfaces::inIDOMUtils [] [src]

#[repr(C)]
pub struct inIDOMUtils { /* fields omitted */ }

interface inIDOMUtils : nsISupports

Methods

impl inIDOMUtils
[src]

[src]

Cast this inIDOMUtils to one of its base interfaces.

impl inIDOMUtils
[src]

EXCLUDE_SHORTHANDS: i64 = 1

INCLUDE_ALIASES: i64 = 2

TYPE_LENGTH: i64 = 0

TYPE_PERCENTAGE: i64 = 1

TYPE_COLOR: i64 = 2

TYPE_URL: i64 = 3

TYPE_ANGLE: i64 = 4

TYPE_FREQUENCY: i64 = 5

TYPE_TIME: i64 = 6

TYPE_GRADIENT: i64 = 7

TYPE_TIMING_FUNCTION: i64 = 8

TYPE_IMAGE_RECT: i64 = 9

TYPE_NUMBER: i64 = 10

[src]

void getAllStyleSheets (in nsIDOMDocument aDoc, [optional] out unsigned long aLength, [array, size_is (aLength), retval] out nsISupports aSheets);

[src]

nsIArrayExtensions getCSSStyleRules (in nsIDOMElement aElement, [optional] in DOMString aPseudo);

[src]

/**
   * Get the line number of a rule.
   *
   * @param nsIDOMCSSRule aRule The rule.
   * @return The rule's line number.  Line numbers are 1-based.
   */

unsigned long getRuleLine (in nsIDOMCSSRule aRule);

[src]

/**
   * Get the column number of a rule.
   *
   * @param nsIDOMCSSRule aRule The rule.
   * @return The rule's column number.  Column numbers are 1-based.
   */

unsigned long getRuleColumn (in nsIDOMCSSRule aRule);

[src]

/**
   * Like getRuleLine, but if the rule is in a <style> element,
   * returns a line number relative to the start of the element.
   *
   * @param nsIDOMCSSRule aRule the rule to examine
   * @return the line number of the rule, possibly relative to the
   *         <style> element
   */

unsigned long getRelativeRuleLine (in nsIDOMCSSRule aRule);

[src]

unsigned long getSelectorCount (in nsIDOMCSSStyleRule aRule);

[src]

AString getSelectorText (in nsIDOMCSSStyleRule aRule, in unsigned long aSelectorIndex);

[src]

unsigned long long getSpecificity (in nsIDOMCSSStyleRule aRule, in unsigned long aSelectorIndex);

[src]

bool selectorMatchesElement (in nsIDOMElement aElement, in nsIDOMCSSStyleRule aRule, in unsigned long aSelectorIndex, [optional] in DOMString aPseudo);

[src]

bool isInheritedProperty (in AString aPropertyName);

[src]

void getCSSPropertyNames ([optional] in unsigned long aFlags, [optional] out unsigned long aCount, [array, size_is (aCount), retval] out wstring aProps);

[src]

void getCSSValuesForProperty (in AString aProperty, [optional] out unsigned long aLength, [array, size_is (aLength), retval] out wstring aValues);

[src]

AString rgbToColorName (in octet aR, in octet aG, in octet aB);

[src]

bool isValidCSSColor (in AString aColorString);

[src]

void getSubpropertiesForCSSProperty (in AString aProperty, [optional] out unsigned long aLength, [array, size_is (aLength), retval] out wstring aValues);

[src]

bool cssPropertyIsShorthand (in AString aProperty);

[src]

bool cssPropertySupportsType (in AString aProperty, in unsigned long type);

[src]

boolean isIgnorableWhitespace (in nsIDOMCharacterData aDataNode);

[src]

nsIDOMNode getParentForNode (in nsIDOMNode aNode, in boolean aShowingAnonymousContent);

[src]

nsIDOMNodeList getChildrenForNode (in nsIDOMNode aNode, in boolean aShowingAnonymousContent);

[src]

nsIArray getBindingURLs (in nsIDOMElement aElement);

[src]

unsigned long long getContentState (in nsIDOMElement aElement);

[src]

/**
   * Setting and removing content state on an element. Both these functions
   * calling EventStateManager::SetContentState internally, the difference is
   * that for the remove case we simply pass in nullptr for the element.
   * Use them accordingly.
   *
   * When removing the active state, you may optionally also clear the active
   * document as well by setting aClearActiveDocument
   *
   * @return Returns true if the state was set successfully. See more details
   * in EventStateManager.h SetContentState.
   */

bool setContentState (in nsIDOMElement aElement, in unsigned long long aState);

[src]

bool removeContentState (in nsIDOMElement aElement, in unsigned long long aState, [optional] in bool aClearActiveDocument);

[src]

nsIDOMFontFaceList getUsedFontFaces (in nsIDOMRange aRange);

[src]

/**
   * Get the names of all the supported pseudo-elements.
   * Pseudo-elements which are only accepted in UA style sheets are
   * not included.
   *
   * @param {unsigned long} aCount the number of items returned
   * @param {wstring[]} aNames the names
   */

void getCSSPseudoElementNames ([optional] out unsigned long aCount, [array, size_is (aCount), retval] out wstring aNames);

[src]

void removePseudoClassLock (in nsIDOMElement aElement, in DOMString aPseudoClass);

[src]

bool hasPseudoClassLock (in nsIDOMElement aElement, in DOMString aPseudoClass);

[src]

void clearPseudoClassLocks (in nsIDOMElement aElement);

[src]

/**
   * Parse CSS and update the style sheet in place.
   *
   * @param DOMCSSStyleSheet aSheet
   * @param DOMString aInput
   *        The new source string for the style sheet.
   */

void parseStyleSheet (in nsIDOMCSSStyleSheet aSheet, in DOMString aInput);

[src]

/**
   * Scroll an element completely into view, if possible.
   * This is similar to ensureElementIsVisible but for all ancestors.
   *
   * @param DOMElement aElement
   */

void scrollElementIntoView (in nsIDOMElement aElement);

Methods from Deref<Target = nsISupports>

[src]

Cast this nsISupports to one of its base interfaces.

[src]

void QueryInterface (in nsIIDRef uuid, [iid_is (uuid), retval] out nsQIResult result);

[src]

[noscript,notxpcom] nsrefcnt AddRef ();

[src]

[noscript,notxpcom] nsrefcnt Release ();

Trait Implementations

impl XpCom for inIDOMUtils
[src]

IID: nsIID = nsID(909023427, 33474, 19160, [141, 203, 0, 232, 228, 234, 180, 151])

[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 inIDOMUtils
[src]

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for inIDOMUtils
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.