pub struct ClipboardImpl { /* private fields */ }Expand description
The system clipboard.
Implementations§
Source§impl ClipboardImpl
impl ClipboardImpl
pub fn new(native: ComPtr<IFrnClipboard>) -> ClipboardImpl
Trait Implementations§
Source§impl IClipboardImpl for ClipboardImpl
impl IClipboardImpl for ClipboardImpl
Source§fn try_get_data_async(
&self,
) -> LocalBoxFuture<Result<Option<Rc<dyn IAsyncDataTransfer>>, ClipboardError>>
fn try_get_data_async( &self, ) -> LocalBoxFuture<Result<Option<Rc<dyn IAsyncDataTransfer>>, ClipboardError>>
Tries to get the data on the clipboard, if any.
Source§fn set_data_async(
&self,
data_transfer: Rc<dyn IAsyncDataTransfer>,
) -> LocalBoxFuture<Result<(), ClipboardError>>
fn set_data_async( &self, data_transfer: Rc<dyn IAsyncDataTransfer>, ) -> LocalBoxFuture<Result<(), ClipboardError>>
Sets the data on the clipboard.
Source§fn clear_async(&self) -> LocalBoxFuture<Result<(), ClipboardError>>
fn clear_async(&self) -> LocalBoxFuture<Result<(), ClipboardError>>
Clears the clipboard.
Source§fn as_owned_clipboard_impl(&self) -> Option<&dyn IOwnedClipboardImpl>
fn as_owned_clipboard_impl(&self) -> Option<&dyn IOwnedClipboardImpl>
The implementation as an owned clipboard, if it is one.
Source§fn as_flushable_clipboard_impl(&self) -> Option<&dyn IFlushableClipboardImpl>
fn as_flushable_clipboard_impl(&self) -> Option<&dyn IFlushableClipboardImpl>
The implementation as a flushable clipboard, if it is one.
Source§impl IOwnedClipboardImpl for ClipboardImpl
impl IOwnedClipboardImpl for ClipboardImpl
Source§fn is_current_owner_async(&self) -> LocalBoxFuture<Result<bool, ClipboardError>>
fn is_current_owner_async(&self) -> LocalBoxFuture<Result<bool, ClipboardError>>
Gets whether the current instance still owns the system clipboard.
Auto Trait Implementations§
impl !Freeze for ClipboardImpl
impl !RefUnwindSafe for ClipboardImpl
impl !Send for ClipboardImpl
impl !Sync for ClipboardImpl
impl Unpin for ClipboardImpl
impl UnsafeUnpin for ClipboardImpl
impl UnwindSafe for ClipboardImpl
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