pub struct IFrnClipboard { /* private fields */ }Implementations§
Source§impl IFrnClipboard
impl IFrnClipboard
Sourcepub fn from_impl<T: IFrnClipboardImpl + 'static>(
value: T,
) -> ComPtr<IFrnClipboard>
pub fn from_impl<T: IFrnClipboardImpl + 'static>( value: T, ) -> ComPtr<IFrnClipboard>
Wraps a Rust implementation into a COM object native code can call.
Sourcepub fn get_formats(
&self,
change_count: i64,
) -> Result<Option<ComPtr<IFrnStringArray>>, HResult>
pub fn get_formats( &self, change_count: i64, ) -> Result<Option<ComPtr<IFrnStringArray>>, HResult>
IFrnClipboard::GetFormats
Sourcepub fn get_item_count(&self, change_count: i64) -> Result<i32, HResult>
pub fn get_item_count(&self, change_count: i64) -> Result<i32, HResult>
IFrnClipboard::GetItemCount
Sourcepub fn get_item_formats(
&self,
index: i32,
change_count: i64,
) -> Result<Option<ComPtr<IFrnStringArray>>, HResult>
pub fn get_item_formats( &self, index: i32, change_count: i64, ) -> Result<Option<ComPtr<IFrnStringArray>>, HResult>
IFrnClipboard::GetItemFormats
Sourcepub fn get_item_value_as_string(
&self,
index: i32,
change_count: i64,
format: Option<&CStr>,
) -> Result<Option<ComPtr<IFrnString>>, HResult>
pub fn get_item_value_as_string( &self, index: i32, change_count: i64, format: Option<&CStr>, ) -> Result<Option<ComPtr<IFrnString>>, HResult>
IFrnClipboard::GetItemValueAsString
Sourcepub fn get_item_value_as_bytes(
&self,
index: i32,
change_count: i64,
format: Option<&CStr>,
) -> Result<Option<ComPtr<IFrnString>>, HResult>
pub fn get_item_value_as_bytes( &self, index: i32, change_count: i64, format: Option<&CStr>, ) -> Result<Option<ComPtr<IFrnString>>, HResult>
IFrnClipboard::GetItemValueAsBytes
Sourcepub fn get_change_count(&self) -> Result<i64, HResult>
pub fn get_change_count(&self) -> Result<i64, HResult>
IFrnClipboard::GetChangeCount
Sourcepub fn set_data(
&self,
data_source: Option<&IFrnClipboardDataSource>,
) -> Result<(), HResult>
pub fn set_data( &self, data_source: Option<&IFrnClipboardDataSource>, ) -> Result<(), HResult>
IFrnClipboard::SetData
Sourcepub fn is_text_format(&self, format: Option<&CStr>) -> bool
pub fn is_text_format(&self, format: Option<&CStr>) -> bool
IFrnClipboard::IsTextFormat
Methods from Deref<Target = IUnknown>§
Trait Implementations§
Source§impl Deref for IFrnClipboard
impl Deref for IFrnClipboard
Source§impl<T: IFrnClipboardImpl> ImplementedBy<T> for IFrnClipboard
impl<T: IFrnClipboardImpl> ImplementedBy<T> for IFrnClipboard
const VTBL: &'static IFrnClipboardVtbl
Source§impl Interface for IFrnClipboard
impl Interface for IFrnClipboard
type Vtbl = IFrnClipboardVtbl
Source§fn matches_iid(iid: &Guid) -> bool
fn matches_iid(iid: &Guid) -> bool
true if iid names this interface or one of its bases (including
IUnknown). Both the IDL value and the value materialized by com.h
(see Guid::as_com_h_materialized) are accepted.fn as_unknown(&self) -> &IUnknown
fn as_raw(&self) -> *mut Self
Auto Trait Implementations§
impl !Send for IFrnClipboard
impl !Sync for IFrnClipboard
impl Freeze for IFrnClipboard
impl RefUnwindSafe for IFrnClipboard
impl Unpin for IFrnClipboard
impl UnsafeUnpin for IFrnClipboard
impl UnwindSafe for IFrnClipboard
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
Source§impl<T> ClassDefaults for Twhere
T: ?Sized,
impl<T> ClassDefaults for Twhere
T: ?Sized,
Source§fn static_constructor()
fn static_constructor()
The static constructor of a type: work done once per thread, after
the properties of the type are registered and before its first
instance exists (class handlers,
affects_render, metadata
overrides). Read more