Struct xpcom::interfaces::nsISynthVoiceRegistry
[−]
[src]
#[repr(C)]pub struct nsISynthVoiceRegistry { /* fields omitted */ }
interface nsISynthVoiceRegistry : nsISupports
Methods
impl nsISynthVoiceRegistry
[src]
pub fn coerce<T: nsISynthVoiceRegistryCoerce>(&self) -> &T
[src]
Cast this nsISynthVoiceRegistry
to one of its base interfaces.
impl nsISynthVoiceRegistry
[src]
pub unsafe fn AddVoice(
&self,
aService: *const nsISpeechService,
aUri: &nsAString,
aName: &nsAString,
aLang: &nsAString,
aLocalService: bool,
aQueuesUtterances: bool
) -> nsresult
[src]
&self,
aService: *const nsISpeechService,
aUri: &nsAString,
aName: &nsAString,
aLang: &nsAString,
aLocalService: bool,
aQueuesUtterances: bool
) -> nsresult
/**
* Register a speech synthesis voice.
*
* @param aService the service that provides this voice.
* @param aUri a unique identifier for this voice.
* @param aName human-readable name for this voice.
* @param aLang a BCP 47 language tag.
* @param aLocalService true if service does not require network.
* @param aQueuesUtterances true if voice only speaks one utterance at a time
*/
void addVoice (in nsISpeechService aService, in DOMString aUri, in DOMString aName, in DOMString aLang, in boolean aLocalService, in boolean aQueuesUtterances);
pub unsafe fn RemoveVoice(
&self,
aService: *const nsISpeechService,
aUri: &nsAString
) -> nsresult
[src]
&self,
aService: *const nsISpeechService,
aUri: &nsAString
) -> nsresult
/**
* Remove a speech synthesis voice.
*
* @param aService the service that was used to add the voice.
* @param aUri a unique identifier of an existing voice.
*/
void removeVoice (in nsISpeechService aService, in DOMString aUri);
pub unsafe fn NotifyVoicesChanged(&self) -> nsresult
[src]
/**
* Notify content of voice availability changes. This allows content
* to be notified of voice catalog changes in real time.
*/
void notifyVoicesChanged ();
pub unsafe fn SetDefaultVoice(
&self,
aUri: &nsAString,
aIsDefault: bool
) -> nsresult
[src]
&self,
aUri: &nsAString,
aIsDefault: bool
) -> nsresult
/**
* Set a voice as default.
*
* @param aUri a unique identifier of an existing voice.
* @param aIsDefault true if this voice should be toggled as default.
*/
void setDefaultVoice (in DOMString aUri, in boolean aIsDefault);
pub unsafe fn GetVoiceCount(&self, aVoiceCount: *mut uint32_t) -> nsresult
[src]
readonly attribute uint32_t voiceCount;
pub unsafe fn GetVoice(
&self,
aIndex: uint32_t,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aIndex: uint32_t,
_retval: &mut nsAString
) -> nsresult
AString getVoice (in uint32_t aIndex);
pub unsafe fn IsDefaultVoice(
&self,
aUri: &nsAString,
_retval: *mut bool
) -> nsresult
[src]
&self,
aUri: &nsAString,
_retval: *mut bool
) -> nsresult
bool isDefaultVoice (in DOMString aUri);
pub unsafe fn IsLocalVoice(
&self,
aUri: &nsAString,
_retval: *mut bool
) -> nsresult
[src]
&self,
aUri: &nsAString,
_retval: *mut bool
) -> nsresult
bool isLocalVoice (in DOMString aUri);
pub unsafe fn GetVoiceLang(
&self,
aUri: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aUri: &nsAString,
_retval: &mut nsAString
) -> nsresult
AString getVoiceLang (in DOMString aUri);
pub unsafe fn GetVoiceName(
&self,
aUri: &nsAString,
_retval: &mut nsAString
) -> nsresult
[src]
&self,
aUri: &nsAString,
_retval: &mut nsAString
) -> nsresult
AString getVoiceName (in DOMString aUri);
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 nsISynthVoiceRegistry
[src]
const IID: nsIID
IID: nsIID = nsID(1568279352, 30693, 20197, [137, 124, 206, 93, 185, 184, 93, 68])
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 nsISynthVoiceRegistry
[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 nsISynthVoiceRegistry
[src]
type Target = nsISupports
The resulting type after dereferencing.
fn deref(&self) -> &nsISupports
[src]
Dereferences the value.