Struct xpcom::interfaces::nsIFontEnumerator [] [src]

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

interface nsIFontEnumerator : nsISupports

Methods

impl nsIFontEnumerator
[src]

[src]

Cast this nsIFontEnumerator to one of its base interfaces.

impl nsIFontEnumerator
[src]

[src]

/**
   * Return a sorted array of the names of all installed fonts.
   *
   * @param  aCount     returns number of names returned
   * @param  aResult    returns array of names
   * @return void
   */

void EnumerateAllFonts (out uint32_t aCount, [array, size_is (aCount), retval] out wstring aResult);

[src]

/**
   * Return a sorted array of names of fonts that support the given language
   * group and are suitable for use as the given CSS generic font.
   *
   * @param  aLangGroup language group
   * @param  aGeneric   CSS generic font
   * @param  aCount     returns number of names returned
   * @param  aResult    returns array of names
   * @return void
   */

void EnumerateFonts (in string aLangGroup, in string aGeneric, out uint32_t aCount, [array, size_is (aCount), retval] out wstring aResult);

[src]

/**
    @param  aLangGroup language group
    @return bool do we have a font for this language group
   */

void HaveFontFor (in string aLangGroup, [retval] out boolean aResult);

[src]

/**
   * @param  aLangGroup language group
   * @param  aGeneric CSS generic font
   * @return suggested default font for this language group and generic family
   */

wstring getDefaultFont (in string aLangGroup, in string aGeneric);

[src]

/**
   * update the global font list
   * return true if font list is changed
   */

boolean updateFontList ();

[src]

/**
   * get the standard family name on the system from given family
   * @param  aName family name which may be alias
   * @return the standard family name on the system, if given name does not
   *         exist, returns empty string
   */

wstring getStandardFamilyName (in wstring aName);

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

IID: nsIID = nsID(2454558937, 13592, 19636, [135, 8, 199, 79, 232, 227, 236, 60])

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

[src]

Increment the reference count.

[src]

Decrement the reference count, potentially freeing backing memory.

impl Deref for nsIFontEnumerator
[src]

The resulting type after dereferencing.

[src]

Dereferences the value.