pub struct ITextDocument(/* private fields */);
Implementations§
Source§impl ITextDocument
impl ITextDocument
pub unsafe fn GetTypeInfoCount(&self) -> Result<u32>
pub unsafe fn GetTypeInfo(&self, itinfo: u32, lcid: u32) -> Result<ITypeInfo>
pub unsafe fn GetIDsOfNames( &self, riid: *const Guid, rgsznames: *mut PWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32, ) -> Result<()>
pub unsafe fn Invoke( &self, dispidmember: i32, riid: *const Guid, lcid: u32, wflags: u16, pdispparams: *mut DISPPARAMS, pvarresult: *mut VARIANT, pexcepinfo: *mut EXCEPINFO, puargerr: *mut u32, ) -> Result<()>
pub unsafe fn GetName(&self) -> Result<BSTR>
pub unsafe fn GetSelection(&self) -> Result<ITextSelection>
pub unsafe fn GetStoryCount(&self) -> Result<i32>
pub unsafe fn GetStoryRanges(&self) -> Result<ITextStoryRanges>
pub unsafe fn GetSaved(&self) -> Result<i32>
pub unsafe fn SetSaved(&self, value: tomConstants) -> Result<()>
pub unsafe fn GetDefaultTabStop(&self) -> Result<f32>
pub unsafe fn SetDefaultTabStop(&self, value: f32) -> Result<()>
pub unsafe fn New(&self) -> Result<()>
pub unsafe fn Open( &self, pvar: *mut VARIANT, flags: i32, codepage: i32, ) -> Result<()>
pub unsafe fn Save( &self, pvar: *mut VARIANT, flags: i32, codepage: i32, ) -> Result<()>
pub unsafe fn Freeze(&self) -> Result<i32>
pub unsafe fn Unfreeze(&self) -> Result<i32>
pub unsafe fn BeginEditCollection(&self) -> Result<()>
pub unsafe fn EndEditCollection(&self) -> Result<()>
pub unsafe fn Undo(&self, count: i32) -> Result<i32>
pub unsafe fn Redo(&self, count: i32) -> Result<i32>
pub unsafe fn Range(&self, cpactive: i32, cpanchor: i32) -> Result<ITextRange>
pub unsafe fn RangeFromPoint(&self, x: i32, y: i32) -> Result<ITextRange>
Trait Implementations§
Source§impl Clone for ITextDocument
impl Clone for ITextDocument
Source§fn clone(&self) -> ITextDocument
fn clone(&self) -> ITextDocument
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for ITextDocument
impl Debug for ITextDocument
Source§impl From<&ITextDocument> for IDispatch
impl From<&ITextDocument> for IDispatch
Source§fn from(value: &ITextDocument) -> Self
fn from(value: &ITextDocument) -> Self
Converts to this type from the input type.
Source§impl From<&ITextDocument> for IUnknown
impl From<&ITextDocument> for IUnknown
Source§fn from(value: &ITextDocument) -> Self
fn from(value: &ITextDocument) -> Self
Converts to this type from the input type.
Source§impl From<&ITextDocument2> for ITextDocument
impl From<&ITextDocument2> for ITextDocument
Source§fn from(value: &ITextDocument2) -> Self
fn from(value: &ITextDocument2) -> Self
Converts to this type from the input type.
Source§impl From<&ITextDocument2Old> for ITextDocument
impl From<&ITextDocument2Old> for ITextDocument
Source§fn from(value: &ITextDocument2Old) -> Self
fn from(value: &ITextDocument2Old) -> Self
Converts to this type from the input type.
Source§impl From<ITextDocument> for IDispatch
impl From<ITextDocument> for IDispatch
Source§fn from(value: ITextDocument) -> Self
fn from(value: ITextDocument) -> Self
Converts to this type from the input type.
Source§impl From<ITextDocument> for IUnknown
impl From<ITextDocument> for IUnknown
Source§fn from(value: ITextDocument) -> Self
fn from(value: ITextDocument) -> Self
Converts to this type from the input type.
Source§impl From<ITextDocument2> for ITextDocument
impl From<ITextDocument2> for ITextDocument
Source§fn from(value: ITextDocument2) -> Self
fn from(value: ITextDocument2) -> Self
Converts to this type from the input type.
Source§impl From<ITextDocument2Old> for ITextDocument
impl From<ITextDocument2Old> for ITextDocument
Source§fn from(value: ITextDocument2Old) -> Self
fn from(value: ITextDocument2Old) -> Self
Converts to this type from the input type.
Source§impl Interface for ITextDocument
impl Interface for ITextDocument
const IID: Guid
type Vtable = ITextDocument_abi
Source§unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
unsafe fn assume_vtable<T>(&self) -> &<T as Interface>::Vtablewhere
T: Interface,
Safety Read more
Source§unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
unsafe fn query(&self, iid: *const Guid, interface: *mut *mut c_void) -> HRESULT
Safety Read more
Source§impl PartialEq for ITextDocument
impl PartialEq for ITextDocument
impl Eq for ITextDocument
impl StructuralPartialEq for ITextDocument
Auto Trait Implementations§
impl Freeze for ITextDocument
impl RefUnwindSafe for ITextDocument
impl !Send for ITextDocument
impl !Sync for ITextDocument
impl Unpin for ITextDocument
impl UnwindSafe for ITextDocument
Blanket Implementations§
Source§impl<T> Abi for Twhere
T: Interface,
impl<T> Abi for Twhere
T: Interface,
type DefaultType = Option<T>
Source§fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
fn ok(value: &<T as Abi>::DefaultType) -> Result<T, Error>
Converts from
Self::DefaultType
to Result<T>
.Source§fn set_abi(&mut self) -> *mut <T as Abi>::Abi
fn set_abi(&mut self) -> *mut <T as Abi>::Abi
Returns a pointer for setting the object’s value via an ABI call.
fn drop_param(_: &mut Param<'_, Self>)
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more