Trait windows::Win32::Media::Speech::ISpRecoGrammar_Impl

pub trait ISpRecoGrammar_Impl: Sized + ISpGrammarBuilder_Impl {
Show 18 methods // Required methods fn GetGrammarId(&self, pullgrammarid: *mut u64) -> Result<()>; fn GetRecoContext(&self) -> Result<ISpRecoContext>; fn LoadCmdFromFile( &self, pszfilename: &PCWSTR, options: SPLOADOPTIONS, ) -> Result<()>; fn LoadCmdFromObject( &self, rcid: *const GUID, pszgrammarname: &PCWSTR, options: SPLOADOPTIONS, ) -> Result<()>; fn LoadCmdFromResource( &self, hmodule: HMODULE, pszresourcename: &PCWSTR, pszresourcetype: &PCWSTR, wlanguage: u16, options: SPLOADOPTIONS, ) -> Result<()>; fn LoadCmdFromMemory( &self, pgrammar: *const SPBINARYGRAMMAR, options: SPLOADOPTIONS, ) -> Result<()>; fn LoadCmdFromProprietaryGrammar( &self, rguidparam: *const GUID, pszstringparam: &PCWSTR, pvdataprarm: *const c_void, cbdatasize: u32, options: SPLOADOPTIONS, ) -> Result<()>; fn SetRuleState( &self, pszname: &PCWSTR, preserved: *mut c_void, newstate: SPRULESTATE, ) -> Result<()>; fn SetRuleIdState(&self, ulruleid: u32, newstate: SPRULESTATE) -> Result<()>; fn LoadDictation( &self, psztopicname: &PCWSTR, options: SPLOADOPTIONS, ) -> Result<()>; fn UnloadDictation(&self) -> Result<()>; fn SetDictationState(&self, newstate: SPRULESTATE) -> Result<()>; fn SetWordSequenceData( &self, ptext: &PCWSTR, cchtext: u32, pinfo: *const SPTEXTSELECTIONINFO, ) -> Result<()>; fn SetTextSelection(&self, pinfo: *const SPTEXTSELECTIONINFO) -> Result<()>; fn IsPronounceable( &self, pszword: &PCWSTR, pwordpronounceable: *mut SPWORDPRONOUNCEABLE, ) -> Result<()>; fn SetGrammarState(&self, egrammarstate: SPGRAMMARSTATE) -> Result<()>; fn SaveCmd( &self, pstream: Option<&IStream>, ppszcomemerrortext: *mut PWSTR, ) -> Result<()>; fn GetGrammarState(&self, pegrammarstate: *mut SPGRAMMARSTATE) -> Result<()>;
}

Required Methods§

fn GetGrammarId(&self, pullgrammarid: *mut u64) -> Result<()>

fn GetRecoContext(&self) -> Result<ISpRecoContext>

fn LoadCmdFromFile( &self, pszfilename: &PCWSTR, options: SPLOADOPTIONS, ) -> Result<()>

fn LoadCmdFromObject( &self, rcid: *const GUID, pszgrammarname: &PCWSTR, options: SPLOADOPTIONS, ) -> Result<()>

fn LoadCmdFromResource( &self, hmodule: HMODULE, pszresourcename: &PCWSTR, pszresourcetype: &PCWSTR, wlanguage: u16, options: SPLOADOPTIONS, ) -> Result<()>

fn LoadCmdFromMemory( &self, pgrammar: *const SPBINARYGRAMMAR, options: SPLOADOPTIONS, ) -> Result<()>

fn LoadCmdFromProprietaryGrammar( &self, rguidparam: *const GUID, pszstringparam: &PCWSTR, pvdataprarm: *const c_void, cbdatasize: u32, options: SPLOADOPTIONS, ) -> Result<()>

fn SetRuleState( &self, pszname: &PCWSTR, preserved: *mut c_void, newstate: SPRULESTATE, ) -> Result<()>

fn SetRuleIdState(&self, ulruleid: u32, newstate: SPRULESTATE) -> Result<()>

fn LoadDictation( &self, psztopicname: &PCWSTR, options: SPLOADOPTIONS, ) -> Result<()>

fn UnloadDictation(&self) -> Result<()>

fn SetDictationState(&self, newstate: SPRULESTATE) -> Result<()>

fn SetWordSequenceData( &self, ptext: &PCWSTR, cchtext: u32, pinfo: *const SPTEXTSELECTIONINFO, ) -> Result<()>

fn SetTextSelection(&self, pinfo: *const SPTEXTSELECTIONINFO) -> Result<()>

fn IsPronounceable( &self, pszword: &PCWSTR, pwordpronounceable: *mut SPWORDPRONOUNCEABLE, ) -> Result<()>

fn SetGrammarState(&self, egrammarstate: SPGRAMMARSTATE) -> Result<()>

fn SaveCmd( &self, pstream: Option<&IStream>, ppszcomemerrortext: *mut PWSTR, ) -> Result<()>

fn GetGrammarState(&self, pegrammarstate: *mut SPGRAMMARSTATE) -> Result<()>

Object Safety§

This trait is not object safe.

Implementors§