84 lines
No EOL
33 KiB
HTML
84 lines
No EOL
33 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A buffer for short-term storage and transfer within and between applications."><title>Clipboard in cosmic::iced::advanced - Rust</title><script>if(window.location.protocol!=="file:")document.head.insertAdjacentHTML("beforeend","SourceSerif4-Regular-6b053e98.ttf.woff2,FiraSans-Italic-81dc35de.woff2,FiraSans-Regular-0fe48ade.woff2,FiraSans-MediumItalic-ccf7e434.woff2,FiraSans-Medium-e1aa3f0a.woff2,SourceCodePro-Regular-8badfe75.ttf.woff2,SourceCodePro-Semibold-aa29a496.ttf.woff2".split(",").map(f=>`<link rel="preload" as="font" type="font/woff2" crossorigin href="../../../static.files/${f}">`).join(""))</script><link rel="stylesheet" href="../../../static.files/normalize-9960930a.css"><link rel="stylesheet" href="../../../static.files/rustdoc-aa0817cf.css"><meta name="rustdoc-vars" data-root-path="../../../" data-static-root-path="../../../static.files/" data-current-crate="cosmic" data-themes="" data-resource-suffix="" data-rustdoc-version="1.90.0-nightly (3048886e5 2025-07-30)" data-channel="nightly" data-search-js="search-fa3e91e5.js" data-settings-js="settings-5514c975.js" ><script src="../../../static.files/storage-68b7e25d.js"></script><script defer src="sidebar-items.js"></script><script defer src="../../../static.files/main-eebb9057.js"></script><noscript><link rel="stylesheet" href="../../../static.files/noscript-32bb7600.css"></noscript><link rel="alternate icon" type="image/png" href="../../../static.files/favicon-32x32-6580c154.png"><link rel="icon" type="image/svg+xml" href="../../../static.files/favicon-044be391.svg"></head><body class="rustdoc trait"><!--[if lte IE 11]><div class="warning">This old browser is unsupported and will most likely display funky things.</div><![endif]--><nav class="mobile-topbar"><button class="sidebar-menu-toggle" title="show sidebar"></button></nav><nav class="sidebar"><div class="sidebar-crate"><h2><a href="../../../cosmic/index.html">cosmic</a><span class="version">1.0.0</span></h2></div><div class="sidebar-elems"><section id="rustdoc-toc"><h2 class="location"><a href="#">Clipboard</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.read" title="read">read</a></li><li><a href="#tymethod.write" title="write">write</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.end_dnd" title="end_dnd">end_dnd</a></li><li><a href="#method.peek_dnd" title="peek_dnd">peek_dnd</a></li><li><a href="#method.read_data" title="read_data">read_data</a></li><li><a href="#method.register_dnd_destination" title="register_dnd_destination">register_dnd_destination</a></li><li><a href="#method.request_logical_window_size" title="request_logical_window_size">request_logical_window_size</a></li><li><a href="#method.set_action" title="set_action">set_action</a></li><li><a href="#method.start_dnd" title="start_dnd">start_dnd</a></li><li><a href="#method.write_data" title="write_data">write_data</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Clipboard-for-Clipboard" title="Clipboard">Clipboard</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>iced::<wbr>advanced</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../index.html">cosmic</a>::<wbr><a href="../index.html">iced</a>::<wbr><a href="index.html">advanced</a></div><h1>Trait <span class="trait">Clipboard</span><button id="copy-path" title="Copy item path to clipboard">Copy item path</button></h1><rustdoc-toolbar></rustdoc-toolbar><span class="sub-heading"></span></div><pre class="rust item-decl"><code>pub trait Clipboard {
|
|
// Required methods
|
|
fn <a href="#tymethod.read" class="fn">read</a>(&self, kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.write" class="fn">write</a>(&mut self, kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>, contents: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>);
|
|
|
|
// Provided methods
|
|
fn <a href="#method.read_data" class="fn">read_data</a>(
|
|
&self,
|
|
_kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>,
|
|
_mimes: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.write_data" class="fn">write_data</a>(
|
|
&mut self,
|
|
_kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>,
|
|
_contents: <a class="struct" href="../clipboard/mime/struct.ClipboardStoreData.html" title="struct cosmic::iced::clipboard::mime::ClipboardStoreData">ClipboardStoreData</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="../clipboard/mime/trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>>>,
|
|
) { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.register_dnd_destination" class="fn">register_dnd_destination</a>(
|
|
&self,
|
|
_surface: <a class="struct" href="../clipboard/dnd/struct.DndSurface.html" title="struct cosmic::iced::clipboard::dnd::DndSurface">DndSurface</a>,
|
|
_rectangles: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="struct" href="../clipboard/dnd/struct.DndDestinationRectangle.html" title="struct cosmic::iced::clipboard::dnd::DndDestinationRectangle">DndDestinationRectangle</a>>,
|
|
) { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.set_action" class="fn">set_action</a>(&self, _action: <a class="struct" href="../clipboard/dnd/struct.DndAction.html" title="struct cosmic::iced::clipboard::dnd::DndAction">DndAction</a>) { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.start_dnd" class="fn">start_dnd</a>(
|
|
&mut self,
|
|
_internal: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
|
_source_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../daemon/program/graphics/core/clipboard/enum.DndSource.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::DndSource">DndSource</a>>,
|
|
_icon_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../daemon/program/graphics/core/clipboard/struct.IconSurface.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::IconSurface">IconSurface</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>>>>,
|
|
_content: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="../clipboard/mime/trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>>,
|
|
_actions: <a class="struct" href="../clipboard/dnd/struct.DndAction.html" title="struct cosmic::iced::clipboard::dnd::DndAction">DndAction</a>,
|
|
) { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.end_dnd" class="fn">end_dnd</a>(&self) { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.peek_dnd" class="fn">peek_dnd</a>(&self, _mime: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.request_logical_window_size" class="fn">request_logical_window_size</a>(&self, _width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, _height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>) { ... }
|
|
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A buffer for short-term storage and transfer within and between
|
|
applications.</p>
|
|
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="tymethod.read" class="method"><h4 class="code-header">fn <a href="#tymethod.read" class="fn">read</a>(&self, kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>></h4></section></summary><div class="docblock"><p>Reads the current content of the <a href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a> as text.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.write" class="method"><h4 class="code-header">fn <a href="#tymethod.write" class="fn">write</a>(&mut self, kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>, contents: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)</h4></section></summary><div class="docblock"><p>Writes the given text contents to the <a href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a>.</p>
|
|
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.read_data" class="method"><h4 class="code-header">fn <a href="#method.read_data" class="fn">read_data</a>(
|
|
&self,
|
|
_kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>,
|
|
_mimes: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)></h4></section></summary><div class="docblock"><p>Consider using <a href="../daemon/program/graphics/core/clipboard/fn.read_data.html" title="fn cosmic::iced::daemon::program::graphics::core::clipboard::read_data"><code>read_data</code></a> instead
|
|
Reads the current content of the <a href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a> as text.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.write_data" class="method"><h4 class="code-header">fn <a href="#method.write_data" class="fn">write_data</a>(
|
|
&mut self,
|
|
_kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>,
|
|
_contents: <a class="struct" href="../clipboard/mime/struct.ClipboardStoreData.html" title="struct cosmic::iced::clipboard::mime::ClipboardStoreData">ClipboardStoreData</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="../clipboard/mime/trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>>>,
|
|
)</h4></section></summary><div class="docblock"><p>Writes the given contents to the <a href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard"><code>Clipboard</code></a>.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.register_dnd_destination" class="method"><h4 class="code-header">fn <a href="#method.register_dnd_destination" class="fn">register_dnd_destination</a>(
|
|
&self,
|
|
_surface: <a class="struct" href="../clipboard/dnd/struct.DndSurface.html" title="struct cosmic::iced::clipboard::dnd::DndSurface">DndSurface</a>,
|
|
_rectangles: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="struct" href="../clipboard/dnd/struct.DndDestinationRectangle.html" title="struct cosmic::iced::clipboard::dnd::DndDestinationRectangle">DndDestinationRectangle</a>>,
|
|
)</h4></section></summary><div class="docblock"><p>Starts a DnD operation.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.set_action" class="method"><h4 class="code-header">fn <a href="#method.set_action" class="fn">set_action</a>(&self, _action: <a class="struct" href="../clipboard/dnd/struct.DndAction.html" title="struct cosmic::iced::clipboard::dnd::DndAction">DndAction</a>)</h4></section></summary><div class="docblock"><p>Set the final action for the DnD operation.
|
|
Only should be done if it is requested.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.start_dnd" class="method"><h4 class="code-header">fn <a href="#method.start_dnd" class="fn">start_dnd</a>(
|
|
&mut self,
|
|
_internal: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
|
_source_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../daemon/program/graphics/core/clipboard/enum.DndSource.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::DndSource">DndSource</a>>,
|
|
_icon_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../daemon/program/graphics/core/clipboard/struct.IconSurface.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::IconSurface">IconSurface</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>>>>,
|
|
_content: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="../clipboard/mime/trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>>,
|
|
_actions: <a class="struct" href="../clipboard/dnd/struct.DndAction.html" title="struct cosmic::iced::clipboard::dnd::DndAction">DndAction</a>,
|
|
)</h4></section></summary><div class="docblock"><p>Registers Dnd destinations</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.end_dnd" class="method"><h4 class="code-header">fn <a href="#method.end_dnd" class="fn">end_dnd</a>(&self)</h4></section></summary><div class="docblock"><p>Ends a DnD operation.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.peek_dnd" class="method"><h4 class="code-header">fn <a href="#method.peek_dnd" class="fn">peek_dnd</a>(&self, _mime: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)></h4></section></summary><div class="docblock"><p>Consider using <a href="../daemon/program/graphics/core/clipboard/fn.peek_dnd.html" title="fn cosmic::iced::daemon::program::graphics::core::clipboard::peek_dnd"><code>peek_dnd</code></a> instead
|
|
Peeks the data on the DnD with a specific mime type.
|
|
Will return an error if there is no ongoing DnD operation.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.request_logical_window_size" class="method"><h4 class="code-header">fn <a href="#method.request_logical_window_size" class="fn">request_logical_window_size</a>(&self, _width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, _height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</h4></section></summary><div class="docblock"><p>Request window size</p>
|
|
</div></details></div><h2 id="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Clipboard-for-Clipboard" class="impl"><a href="#impl-Clipboard-for-Clipboard" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard">Clipboard</a> for Clipboard</h3></section></summary><div class="impl-items"><section id="method.read" class="method trait-impl"><a href="#method.read" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.read" class="fn">read</a>(&self, kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>></h4></section><section id="method.write" class="method trait-impl"><a href="#method.write" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.write" class="fn">write</a>(&mut self, kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>, contents: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)</h4></section><section id="method.read_data-1" class="method trait-impl"><a href="#method.read_data-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.read_data" class="fn">read_data</a>(&self, kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>, mimes: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)></h4></section><section id="method.write_data-1" class="method trait-impl"><a href="#method.write_data-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.write_data" class="fn">write_data</a>(
|
|
&mut self,
|
|
kind: <a class="enum" href="../daemon/program/graphics/core/clipboard/enum.Kind.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::Kind">Kind</a>,
|
|
contents: <a class="struct" href="../clipboard/mime/struct.ClipboardStoreData.html" title="struct cosmic::iced::clipboard::mime::ClipboardStoreData">ClipboardStoreData</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="../clipboard/mime/trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>>>,
|
|
)</h4></section><section id="method.start_dnd-1" class="method trait-impl"><a href="#method.start_dnd-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.start_dnd" class="fn">start_dnd</a>(
|
|
&mut self,
|
|
internal: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.bool.html">bool</a>,
|
|
source_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="enum" href="../daemon/program/graphics/core/clipboard/enum.DndSource.html" title="enum cosmic::iced::daemon::program::graphics::core::clipboard::DndSource">DndSource</a>>,
|
|
icon_surface: <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><<a class="struct" href="../daemon/program/graphics/core/clipboard/struct.IconSurface.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::IconSurface">IconSurface</a><<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="https://doc.rust-lang.org/nightly/core/any/trait.Any.html" title="trait core::any::Any">Any</a>>>>,
|
|
content: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/boxed/struct.Box.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::boxed::Box">Box</a><dyn <a class="trait" href="../clipboard/mime/trait.AsMimeTypes.html" title="trait cosmic::iced::clipboard::mime::AsMimeTypes">AsMimeTypes</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a>>,
|
|
actions: <a class="struct" href="../clipboard/dnd/struct.DndAction.html" title="struct cosmic::iced::clipboard::dnd::DndAction">DndAction</a>,
|
|
)</h4></section><section id="method.register_dnd_destination-1" class="method trait-impl"><a href="#method.register_dnd_destination-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.register_dnd_destination" class="fn">register_dnd_destination</a>(
|
|
&self,
|
|
surface: <a class="struct" href="../clipboard/dnd/struct.DndSurface.html" title="struct cosmic::iced::clipboard::dnd::DndSurface">DndSurface</a>,
|
|
rectangles: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="struct" href="../clipboard/dnd/struct.DndDestinationRectangle.html" title="struct cosmic::iced::clipboard::dnd::DndDestinationRectangle">DndDestinationRectangle</a>>,
|
|
)</h4></section><section id="method.end_dnd-1" class="method trait-impl"><a href="#method.end_dnd-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.end_dnd" class="fn">end_dnd</a>(&self)</h4></section><section id="method.peek_dnd-1" class="method trait-impl"><a href="#method.peek_dnd-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.peek_dnd" class="fn">peek_dnd</a>(&self, mime: <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><(<a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>>, <a class="struct" href="../../cctk/sctk/reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>)></h4></section><section id="method.set_action-1" class="method trait-impl"><a href="#method.set_action-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.set_action" class="fn">set_action</a>(&self, action: <a class="struct" href="../clipboard/dnd/struct.DndAction.html" title="struct cosmic::iced::clipboard::dnd::DndAction">DndAction</a>)</h4></section><section id="method.request_logical_window_size-1" class="method trait-impl"><a href="#method.request_logical_window_size-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.request_logical_window_size" class="fn">request_logical_window_size</a>(&self, width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>, height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>)</h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-Clipboard-for-Null" class="impl"><a href="#impl-Clipboard-for-Null" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Clipboard.html" title="trait cosmic::iced::advanced::Clipboard">Clipboard</a> for <a class="struct" href="../daemon/program/graphics/core/clipboard/struct.Null.html" title="struct cosmic::iced::daemon::program::graphics::core::clipboard::Null">Null</a></h3></section></div><script src="../../../trait.impl/iced_core/clipboard/trait.Clipboard.js" data-ignore-extern-crates="iced_core,iced_winit" async></script></section></div></main></body></html> |