Struct windows::ApplicationModel::DataTransfer::Clipboard
pub struct Clipboard;
Implementations§
§impl Clipboard
impl Clipboard
pub fn GetContent() -> Result<DataPackageView>
pub fn SetContent<P0>(content: P0) -> Result<()>where
P0: Param<DataPackage>,
pub fn Flush() -> Result<()>
pub fn Clear() -> Result<()>
pub fn ContentChanged<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<IInspectable>>,
pub fn RemoveContentChanged(token: EventRegistrationToken) -> Result<()>
pub fn GetHistoryItemsAsync() -> Result<IAsyncOperation<ClipboardHistoryItemsResult>>
pub fn ClearHistory() -> Result<bool>
pub fn DeleteItemFromHistory<P0>(item: P0) -> Result<bool>where
P0: Param<ClipboardHistoryItem>,
pub fn SetHistoryItemAsContent<P0>(
item: P0,
) -> Result<SetHistoryItemAsContentStatus>where
P0: Param<ClipboardHistoryItem>,
pub fn IsHistoryEnabled() -> Result<bool>
pub fn IsRoamingEnabled() -> Result<bool>
pub fn SetContentWithOptions<P0, P1>(content: P0, options: P1) -> Result<bool>where
P0: Param<DataPackage>,
P1: Param<ClipboardContentOptions>,
pub fn HistoryChanged<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<ClipboardHistoryChangedEventArgs>>,
pub fn RemoveHistoryChanged(token: EventRegistrationToken) -> Result<()>
pub fn RoamingEnabledChanged<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<IInspectable>>,
pub fn RemoveRoamingEnabledChanged(token: EventRegistrationToken) -> Result<()>
pub fn HistoryEnabledChanged<P0>(handler: P0) -> Result<EventRegistrationToken>where
P0: Param<EventHandler<IInspectable>>,
pub fn RemoveHistoryEnabledChanged(token: EventRegistrationToken) -> Result<()>
Auto Trait Implementations§
impl Freeze for Clipboard
impl RefUnwindSafe for Clipboard
impl Send for Clipboard
impl Sync for Clipboard
impl Unpin for Clipboard
impl UnwindSafe for Clipboard
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