Struct ITextFont
pub struct ITextFont(/* private fields */);
Implementations§
§impl ITextFont
impl ITextFont
pub unsafe fn GetDuplicate(&self) -> Result<ITextFont>
pub unsafe fn SetDuplicate<P0>(&self, pfont: P0) -> Result<()>where
P0: Param<ITextFont>,
pub unsafe fn CanChange(&self) -> Result<i32>
pub unsafe fn IsEqual<P0>(&self, pfont: P0) -> Result<i32>where
P0: Param<ITextFont>,
pub unsafe fn Reset(&self, value: tomConstants) -> Result<()>
pub unsafe fn GetStyle(&self) -> Result<i32>
pub unsafe fn SetStyle(&self, value: i32) -> Result<()>
pub unsafe fn GetAllCaps(&self) -> Result<i32>
pub unsafe fn SetAllCaps(&self, value: i32) -> Result<()>
pub unsafe fn GetAnimation(&self) -> Result<i32>
pub unsafe fn SetAnimation(&self, value: i32) -> Result<()>
pub unsafe fn GetBackColor(&self) -> Result<i32>
pub unsafe fn SetBackColor(&self, value: i32) -> Result<()>
pub unsafe fn GetBold(&self) -> Result<i32>
pub unsafe fn SetBold(&self, value: i32) -> Result<()>
pub unsafe fn GetEmboss(&self) -> Result<i32>
pub unsafe fn SetEmboss(&self, value: i32) -> Result<()>
pub unsafe fn GetForeColor(&self) -> Result<i32>
pub unsafe fn SetForeColor(&self, value: i32) -> Result<()>
pub unsafe fn GetHidden(&self) -> Result<i32>
pub unsafe fn SetHidden(&self, value: i32) -> Result<()>
pub unsafe fn GetEngrave(&self) -> Result<i32>
pub unsafe fn SetEngrave(&self, value: i32) -> Result<()>
pub unsafe fn GetItalic(&self) -> Result<i32>
pub unsafe fn SetItalic(&self, value: i32) -> Result<()>
pub unsafe fn GetKerning(&self) -> Result<f32>
pub unsafe fn SetKerning(&self, value: f32) -> Result<()>
pub unsafe fn GetLanguageID(&self) -> Result<i32>
pub unsafe fn SetLanguageID(&self, value: i32) -> Result<()>
pub unsafe fn GetName(&self) -> Result<BSTR>
pub unsafe fn SetName(&self, bstr: &BSTR) -> Result<()>
pub unsafe fn GetOutline(&self) -> Result<i32>
pub unsafe fn SetOutline(&self, value: i32) -> Result<()>
pub unsafe fn GetPosition(&self) -> Result<f32>
pub unsafe fn SetPosition(&self, value: f32) -> Result<()>
pub unsafe fn GetProtected(&self) -> Result<i32>
pub unsafe fn SetProtected(&self, value: i32) -> Result<()>
pub unsafe fn GetShadow(&self) -> Result<i32>
pub unsafe fn SetShadow(&self, value: i32) -> Result<()>
pub unsafe fn GetSize(&self) -> Result<f32>
pub unsafe fn SetSize(&self, value: f32) -> Result<()>
pub unsafe fn GetSmallCaps(&self) -> Result<i32>
pub unsafe fn SetSmallCaps(&self, value: i32) -> Result<()>
pub unsafe fn GetSpacing(&self) -> Result<f32>
pub unsafe fn SetSpacing(&self, value: f32) -> Result<()>
pub unsafe fn GetStrikeThrough(&self) -> Result<i32>
pub unsafe fn SetStrikeThrough(&self, value: i32) -> Result<()>
pub unsafe fn GetSubscript(&self) -> Result<i32>
pub unsafe fn SetSubscript(&self, value: i32) -> Result<()>
pub unsafe fn GetSuperscript(&self) -> Result<i32>
pub unsafe fn SetSuperscript(&self, value: i32) -> Result<()>
pub unsafe fn GetUnderline(&self) -> Result<i32>
pub unsafe fn SetUnderline(&self, value: i32) -> Result<()>
pub unsafe fn GetWeight(&self) -> Result<i32>
pub unsafe fn SetWeight(&self, value: i32) -> Result<()>
Methods from Deref<Target = IDispatch>§
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: *const PCWSTR, cnames: u32, lcid: u32, rgdispid: *mut i32, ) -> Result<()>
pub unsafe fn Invoke( &self, dispidmember: i32, riid: *const GUID, lcid: u32, wflags: DISPATCH_FLAGS, pdispparams: *const DISPPARAMS, pvarresult: Option<*mut VARIANT>, pexcepinfo: Option<*mut EXCEPINFO>, puargerr: Option<*mut u32>, ) -> Result<()>
Trait Implementations§
§impl From<&ITextFont2> for &ITextFont
impl From<&ITextFont2> for &ITextFont
§fn from(value: &ITextFont2) -> Self
fn from(value: &ITextFont2) -> Self
Converts to this type from the input type.
§impl From<ITextFont2> for ITextFont
impl From<ITextFont2> for ITextFont
§fn from(value: ITextFont2) -> Self
fn from(value: ITextFont2) -> Self
Converts to this type from the input type.
§impl Interface for ITextFont
impl Interface for ITextFont
§fn as_raw(&self) -> *mut c_void
fn as_raw(&self) -> *mut c_void
Returns the raw COM interface pointer. The resulting pointer continues to be owned by the
Interface
implementation.§fn into_raw(self) -> *mut c_void
fn into_raw(self) -> *mut c_void
Returns the raw COM interface pointer and releases ownership. It the caller’s responsibility to release the COM interface pointer.
§unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
unsafe fn from_raw_borrowed(raw: &*mut c_void) -> Option<&Self>
§fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
fn cast<T>(&self) -> Result<T, Error>where
T: Interface,
Attempts to cast the current interface to another interface using
QueryInterface
. Read more§fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_to_any<T>(&self) -> Result<&(dyn Any + 'static), Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. Read more§fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn is_object<T>(&self) -> boolwhere
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
§fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object_ref<T>(&self) -> Result<&<T as ComObjectInner>::Outer, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. &MyApp_Impl
, not the inner &MyApp
object. Read more§fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
fn cast_object<T>(&self) -> Result<ComObject<T>, Error>where
T: ComObjectInner,
<T as ComObjectInner>::Outer: Any + 'static + IUnknownImpl<Impl = T>,
This casts the given COM interface to [
&dyn Any
]. It returns a reference to the “outer”
object, e.g. MyApp_Impl
, not the inner MyApp
object. Read more§fn downgrade(&self) -> Result<Weak<Self>, Error>
fn downgrade(&self) -> Result<Weak<Self>, Error>
Attempts to create a [
Weak
] reference to this object.impl Eq for ITextFont
impl StructuralPartialEq for ITextFont
Auto Trait Implementations§
impl Freeze for ITextFont
impl RefUnwindSafe for ITextFont
impl !Send for ITextFont
impl !Sync for ITextFont
impl Unpin for ITextFont
impl UnwindSafe for ITextFont
Blanket Implementations§
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