Struct xpcom::interfaces::nsIFontEnumerator
[−]
[src]
#[repr(C)]pub struct nsIFontEnumerator { /* fields omitted */ }
interface nsIFontEnumerator : nsISupports
Methods
impl nsIFontEnumerator
[src]
pub fn coerce<T: nsIFontEnumeratorCoerce>(&self) -> &T
[src]
Cast this nsIFontEnumerator
to one of its base interfaces.
impl nsIFontEnumerator
[src]
pub unsafe fn EnumerateAllFonts(
&self,
aCount: *mut uint32_t,
aResult: *mut *mut *const int16_t
) -> nsresult
[src]
&self,
aCount: *mut uint32_t,
aResult: *mut *mut *const int16_t
) -> nsresult
/**
* 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);
pub unsafe fn EnumerateFonts(
&self,
aLangGroup: *const c_char,
aGeneric: *const c_char,
aCount: *mut uint32_t,
aResult: *mut *mut *const int16_t
) -> nsresult
[src]
&self,
aLangGroup: *const c_char,
aGeneric: *const c_char,
aCount: *mut uint32_t,
aResult: *mut *mut *const int16_t
) -> nsresult
/**
* 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);
pub unsafe fn HaveFontFor(
&self,
aLangGroup: *const c_char,
aResult: *mut bool
) -> nsresult
[src]
&self,
aLangGroup: *const c_char,
aResult: *mut bool
) -> nsresult
/**
@param aLangGroup language group
@return bool do we have a font for this language group
*/
void HaveFontFor (in string aLangGroup, [retval] out boolean aResult);
pub unsafe fn GetDefaultFont(
&self,
aLangGroup: *const c_char,
aGeneric: *const c_char,
_retval: *mut *const int16_t
) -> nsresult
[src]
&self,
aLangGroup: *const c_char,
aGeneric: *const c_char,
_retval: *mut *const int16_t
) -> nsresult
/**
* @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);
pub unsafe fn UpdateFontList(&self, _retval: *mut bool) -> nsresult
[src]
/**
* update the global font list
* return true if font list is changed
*/
boolean updateFontList ();
pub unsafe fn GetStandardFamilyName(
&self,
aName: *const int16_t,
_retval: *mut *const int16_t
) -> nsresult
[src]
&self,
aName: *const int16_t,
_retval: *mut *const int16_t
) -> nsresult
/**
* 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>
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 nsIFontEnumerator
[src]
const IID: nsIID
IID: nsIID = nsID(2454558937, 13592, 19636, [135, 8, 199, 79, 232, 227, 236, 60])
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 nsIFontEnumerator
[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 nsIFontEnumerator
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.