deploy: 95756b1a57
This commit is contained in:
commit
0fa87f2b35
16382 changed files with 734838 additions and 0 deletions
1
cosmic/cctk/sctk/activation/index.html
Normal file
1
cosmic/cctk/sctk/activation/index.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!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="API documentation for the Rust `activation` mod in crate `cosmic`."><title>cosmic::cctk::sctk::activation - 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 mod"><!--[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="#">Module activation</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="../index.html">sctk</a></div><h1>Module <span>activation</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><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.ActivationState.html" title="struct cosmic::cctk::sctk::activation::ActivationState">Activation<wbr>State</a></dt><dd>State for xdg-activation</dd><dt><a class="struct" href="struct.RequestData.html" title="struct cosmic::cctk::sctk::activation::RequestData">Request<wbr>Data</a></dt><dd>Minimal implementation of <a href="trait.RequestDataExt.html" title="trait cosmic::cctk::sctk::activation::RequestDataExt"><code>RequestDataExt</code></a>.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.ActivationHandler.html" title="trait cosmic::cctk::sctk::activation::ActivationHandler">Activation<wbr>Handler</a></dt><dd>Handler for xdg-activation</dd><dt><a class="trait" href="trait.RequestDataExt.html" title="trait cosmic::cctk::sctk::activation::RequestDataExt">Request<wbr>Data<wbr>Ext</a></dt><dd>Data attached to a token request</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/cctk/sctk/activation/sidebar-items.js
Normal file
1
cosmic/cctk/sctk/activation/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["ActivationState","RequestData"],"trait":["ActivationHandler","RequestDataExt"]};
|
||||
108
cosmic/cctk/sctk/activation/struct.ActivationState.html
Normal file
108
cosmic/cctk/sctk/activation/struct.ActivationState.html
Normal file
File diff suppressed because one or more lines are too long
81
cosmic/cctk/sctk/activation/struct.RequestData.html
Normal file
81
cosmic/cctk/sctk/activation/struct.RequestData.html
Normal file
File diff suppressed because one or more lines are too long
9
cosmic/cctk/sctk/activation/trait.ActivationHandler.html
Normal file
9
cosmic/cctk/sctk/activation/trait.ActivationHandler.html
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
<!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="Handler for xdg-activation"><title>ActivationHandler in cosmic::cctk::sctk::activation - 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="#">Activation<wbr>Handler</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.RequestData" title="RequestData">RequestData</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.new_token" title="new_token">new_token</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>activation</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">cctk</a>::<wbr><a href="../index.html">sctk</a>::<wbr><a href="index.html">activation</a></div><h1>Trait <span class="trait">ActivationHandler</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 ActivationHandler: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
type <a href="#associatedtype.RequestData" class="associatedtype">RequestData</a>: <a class="trait" href="trait.RequestDataExt.html" title="trait cosmic::cctk::sctk::activation::RequestDataExt">RequestDataExt</a>;
|
||||
|
||||
// Required method
|
||||
fn <a href="#tymethod.new_token" class="fn">new_token</a>(&mut self, token: <a class="struct" href="../reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>, data: &Self::<a class="associatedtype" href="trait.ActivationHandler.html#associatedtype.RequestData" title="type cosmic::cctk::sctk::activation::ActivationHandler::RequestData">RequestData</a>);
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Handler for xdg-activation</p>
|
||||
</div></details><h2 id="required-associated-types" class="section-header">Required Associated Types<a href="#required-associated-types" class="anchor">§</a></h2><div class="methods"><details class="toggle" open><summary><section id="associatedtype.RequestData" class="method"><h4 class="code-header">type <a href="#associatedtype.RequestData" class="associatedtype">RequestData</a>: <a class="trait" href="trait.RequestDataExt.html" title="trait cosmic::cctk::sctk::activation::RequestDataExt">RequestDataExt</a></h4></section></summary><div class="docblock"><p>Data type used for requesting activation tokens</p>
|
||||
</div></details></div><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.new_token" class="method"><h4 class="code-header">fn <a href="#tymethod.new_token" class="fn">new_token</a>(&mut self, token: <a class="struct" href="../reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>, data: &Self::<a class="associatedtype" href="trait.ActivationHandler.html#associatedtype.RequestData" title="type cosmic::cctk::sctk::activation::ActivationHandler::RequestData">RequestData</a>)</h4></section></summary><div class="docblock"><p>A token was issued for a previous request with <code>data</code>.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../trait.impl/smithay_client_toolkit/activation/trait.ActivationHandler.js" async></script></section></div></main></body></html>
|
||||
14
cosmic/cctk/sctk/activation/trait.RequestDataExt.html
Normal file
14
cosmic/cctk/sctk/activation/trait.RequestDataExt.html
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
<!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="Data attached to a token request"><title>RequestDataExt in cosmic::cctk::sctk::activation - 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="#">Request<wbr>Data<wbr>Ext</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.app_id" title="app_id">app_id</a></li><li><a href="#tymethod.seat_and_serial" title="seat_and_serial">seat_and_serial</a></li><li><a href="#tymethod.surface" title="surface">surface</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>activation</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">cctk</a>::<wbr><a href="../index.html">sctk</a>::<wbr><a href="index.html">activation</a></div><h1>Trait <span class="trait">RequestDataExt</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 RequestDataExt: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.app_id" class="fn">app_id</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.seat_and_serial" class="fn">seat_and_serial</a>(&self) -> <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="../reexports/client/protocol/wl_seat/struct.WlSeat.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_seat::WlSeat">WlSeat</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.surface" class="fn">surface</a>(&self) -> <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="../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>>;
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Data attached to a token request</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.app_id" class="method"><h4 class="code-header">fn <a href="#tymethod.app_id" class="fn">app_id</a>(&self) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/option/enum.Option.html" title="enum core::option::Option">Option</a><&<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.str.html">str</a>></h4></section></summary><div class="docblock"><p>App_id of the application requesting the token, if applicable</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.seat_and_serial" class="method"><h4 class="code-header">fn <a href="#tymethod.seat_and_serial" class="fn">seat_and_serial</a>(&self) -> <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="../reexports/client/protocol/wl_seat/struct.WlSeat.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_seat::WlSeat">WlSeat</a>, <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>)></h4></section></summary><div class="docblock"><p>Seat and serial of the window requesting the token, if applicable.</p>
|
||||
<p><em>Warning</em>: Many compositors will issue invalid tokens for requests without
|
||||
recent serials. There is no way to detect this from the client-side.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.surface" class="method"><h4 class="code-header">fn <a href="#tymethod.surface" class="fn">surface</a>(&self) -> <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="../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>></h4></section></summary><div class="docblock"><p>Surface of the window requesting the token, if applicable.</p>
|
||||
<p><em>Warning</em>: Many compositors will issue invalid tokens for requests from
|
||||
unfocused surfaces. There is no way to detect this from the client-side.</p>
|
||||
</div></details></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-RequestDataExt-for-RequestData" class="impl"><a href="#impl-RequestDataExt-for-RequestData" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.RequestDataExt.html" title="trait cosmic::cctk::sctk::activation::RequestDataExt">RequestDataExt</a> for <a class="struct" href="struct.RequestData.html" title="struct cosmic::cctk::sctk::activation::RequestData">RequestData</a></h3></section></div><script src="../../../../trait.impl/smithay_client_toolkit/activation/trait.RequestDataExt.js" data-ignore-extern-crates="smithay_client_toolkit" async></script></section></div></main></body></html>
|
||||
1
cosmic/cctk/sctk/compositor/index.html
Normal file
1
cosmic/cctk/sctk/compositor/index.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/cctk/sctk/compositor/sidebar-items.js
Normal file
1
cosmic/cctk/sctk/compositor/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["CompositorState","Region","Surface","SurfaceData"],"trait":["CompositorHandler","SurfaceDataExt"]};
|
||||
113
cosmic/cctk/sctk/compositor/struct.CompositorState.html
Normal file
113
cosmic/cctk/sctk/compositor/struct.CompositorState.html
Normal file
File diff suppressed because one or more lines are too long
69
cosmic/cctk/sctk/compositor/struct.Region.html
Normal file
69
cosmic/cctk/sctk/compositor/struct.Region.html
Normal file
File diff suppressed because one or more lines are too long
77
cosmic/cctk/sctk/compositor/struct.Surface.html
Normal file
77
cosmic/cctk/sctk/compositor/struct.Surface.html
Normal file
File diff suppressed because one or more lines are too long
74
cosmic/cctk/sctk/compositor/struct.SurfaceData.html
Normal file
74
cosmic/cctk/sctk/compositor/struct.SurfaceData.html
Normal file
File diff suppressed because one or more lines are too long
80
cosmic/cctk/sctk/compositor/trait.CompositorHandler.html
Normal file
80
cosmic/cctk/sctk/compositor/trait.CompositorHandler.html
Normal file
|
|
@ -0,0 +1,80 @@
|
|||
<!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="API documentation for the Rust `CompositorHandler` trait in crate `cosmic`."><title>CompositorHandler in cosmic::cctk::sctk::compositor - 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="#">Compositor<wbr>Handler</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.frame" title="frame">frame</a></li><li><a href="#tymethod.scale_factor_changed" title="scale_factor_changed">scale_factor_changed</a></li><li><a href="#tymethod.surface_enter" title="surface_enter">surface_enter</a></li><li><a href="#tymethod.surface_leave" title="surface_leave">surface_leave</a></li><li><a href="#tymethod.transform_changed" title="transform_changed">transform_changed</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>compositor</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">cctk</a>::<wbr><a href="../index.html">sctk</a>::<wbr><a href="index.html">compositor</a></div><h1>Trait <span class="trait">CompositorHandler</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 CompositorHandler: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.scale_factor_changed" class="fn">scale_factor_changed</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
surface: &<a class="struct" href="../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
|
||||
new_factor: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.transform_changed" class="fn">transform_changed</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
surface: &<a class="struct" href="../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
|
||||
new_transform: <a class="enum" href="../reexports/client/protocol/wl_output/enum.Transform.html" title="enum cosmic::cctk::sctk::reexports::client::protocol::wl_output::Transform">Transform</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.frame" class="fn">frame</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
surface: &<a class="struct" href="../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
|
||||
time: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.surface_enter" class="fn">surface_enter</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
surface: &<a class="struct" href="../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
|
||||
output: &<a class="struct" href="../reexports/client/protocol/wl_output/struct.WlOutput.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_output::WlOutput">WlOutput</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.surface_leave" class="fn">surface_leave</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
surface: &<a class="struct" href="../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
|
||||
output: &<a class="struct" href="../reexports/client/protocol/wl_output/struct.WlOutput.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_output::WlOutput">WlOutput</a>,
|
||||
);
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><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.scale_factor_changed" class="method"><h4 class="code-header">fn <a href="#tymethod.scale_factor_changed" class="fn">scale_factor_changed</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
surface: &<a class="struct" href="../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
|
||||
new_factor: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.i32.html">i32</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>The surface has either been moved into or out of an output and the output has a different scale factor.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.transform_changed" class="method"><h4 class="code-header">fn <a href="#tymethod.transform_changed" class="fn">transform_changed</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
surface: &<a class="struct" href="../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
|
||||
new_transform: <a class="enum" href="../reexports/client/protocol/wl_output/enum.Transform.html" title="enum cosmic::cctk::sctk::reexports::client::protocol::wl_output::Transform">Transform</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>The surface has either been moved into or out of an output and the output has different transform.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.frame" class="method"><h4 class="code-header">fn <a href="#tymethod.frame" class="fn">frame</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
surface: &<a class="struct" href="../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
|
||||
time: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>A frame callback has been completed.</p>
|
||||
<p>Frame callbacks are used to avoid updating surfaces that are not currently visible. If a
|
||||
frame callback is requested prior to committing a surface, the client should avoid drawing
|
||||
to that surface until the callback completes. See the
|
||||
<a href="../reexports/client/protocol/wl_surface/struct.WlSurface.html#method.frame" title="method cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface::frame"><code>WlSurface::frame</code></a> request for more details.</p>
|
||||
<p>This function will be called if you request a frame callback by passing the surface itself
|
||||
as the userdata (<code>surface.frame(&queue, &surface)</code>); you can also implement <a href="../reexports/client/trait.Dispatch.html" title="trait cosmic::cctk::sctk::reexports::client::Dispatch"><code>Dispatch</code></a>
|
||||
for other values to more easily dispatch rendering for specific surface types.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.surface_enter" class="method"><h4 class="code-header">fn <a href="#tymethod.surface_enter" class="fn">surface_enter</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
surface: &<a class="struct" href="../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
|
||||
output: &<a class="struct" href="../reexports/client/protocol/wl_output/struct.WlOutput.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_output::WlOutput">WlOutput</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>The surface has entered an output.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.surface_leave" class="method"><h4 class="code-header">fn <a href="#tymethod.surface_leave" class="fn">surface_leave</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
surface: &<a class="struct" href="../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
|
||||
output: &<a class="struct" href="../reexports/client/protocol/wl_output/struct.WlOutput.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_output::WlOutput">WlOutput</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>The surface has left an output.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../trait.impl/smithay_client_toolkit/compositor/trait.CompositorHandler.js" async></script></section></div></main></body></html>
|
||||
4
cosmic/cctk/sctk/compositor/trait.SurfaceDataExt.html
Normal file
4
cosmic/cctk/sctk/compositor/trait.SurfaceDataExt.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!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="API documentation for the Rust `SurfaceDataExt` trait in crate `cosmic`."><title>SurfaceDataExt in cosmic::cctk::sctk::compositor - 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="#">Surface<wbr>Data<wbr>Ext</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.surface_data" title="surface_data">surface_data</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>compositor</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">cctk</a>::<wbr><a href="../index.html">sctk</a>::<wbr><a href="index.html">compositor</a></div><h1>Trait <span class="trait">SurfaceDataExt</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 SurfaceDataExt: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.surface_data" class="fn">surface_data</a>(&self) -> &<a class="struct" href="struct.SurfaceData.html" title="struct cosmic::cctk::sctk::compositor::SurfaceData">SurfaceData</a>;
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.surface_data" class="method"><h4 class="code-header">fn <a href="#tymethod.surface_data" class="fn">surface_data</a>(&self) -> &<a class="struct" href="struct.SurfaceData.html" title="struct cosmic::cctk::sctk::compositor::SurfaceData">SurfaceData</a></h4></section></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-SurfaceDataExt-for-SurfaceData" class="impl"><a href="#impl-SurfaceDataExt-for-SurfaceData" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.SurfaceDataExt.html" title="trait cosmic::cctk::sctk::compositor::SurfaceDataExt">SurfaceDataExt</a> for <a class="struct" href="struct.SurfaceData.html" title="struct cosmic::cctk::sctk::compositor::SurfaceData">SurfaceData</a></h3></section></div><script src="../../../../trait.impl/smithay_client_toolkit/compositor/trait.SurfaceDataExt.js" data-ignore-extern-crates="smithay_client_toolkit" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
<!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="API documentation for the Rust `data_device` mod in crate `cosmic`."><title>cosmic::cctk::sctk::data_device_manager::data_device - 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 mod"><!--[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="#">Module data_<wbr>device</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a></div><h1>Module <span>data_device</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><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.DataDevice.html" title="struct cosmic::cctk::sctk::data_device_manager::data_device::DataDevice">Data<wbr>Device</a></dt><dt><a class="struct" href="struct.DataDeviceData.html" title="struct cosmic::cctk::sctk::data_device_manager::data_device::DataDeviceData">Data<wbr>Device<wbr>Data</a></dt></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.DataDeviceHandler.html" title="trait cosmic::cctk::sctk::data_device_manager::data_device::DataDeviceHandler">Data<wbr>Device<wbr>Handler</a></dt><dd>Handler trait for DataDevice events.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["DataDevice","DataDeviceData"],"trait":["DataDeviceHandler"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,78 @@
|
|||
<!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="Handler trait for DataDevice events."><title>DataDeviceHandler in cosmic::cctk::sctk::data_device_manager::data_device - 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="#">Data<wbr>Device<wbr>Handler</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.drop_performed" title="drop_performed">drop_performed</a></li><li><a href="#tymethod.enter" title="enter">enter</a></li><li><a href="#tymethod.leave" title="leave">leave</a></li><li><a href="#tymethod.motion" title="motion">motion</a></li><li><a href="#tymethod.selection" title="selection">selection</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager::<wbr>data_<wbr>device</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a>::<wbr><a href="index.html">data_device</a></div><h1>Trait <span class="trait">DataDeviceHandler</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 DataDeviceHandler: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.enter" class="fn">enter</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
wl_surface: &<a class="struct" href="../../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.leave" class="fn">leave</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.motion" class="fn">motion</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.selection" class="fn">selection</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.drop_performed" class="fn">drop_performed</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
);
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Handler trait for DataDevice events.</p>
|
||||
<p>The functions defined in this trait are called as DataDevice events are received from the compositor.</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.enter" class="method"><h4 class="code-header">fn <a href="#tymethod.enter" class="fn">enter</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
wl_surface: &<a class="struct" href="../../reexports/client/protocol/wl_surface/struct.WlSurface.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_surface::WlSurface">WlSurface</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>The data device pointer has entered a surface at the provided location</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.leave" class="method"><h4 class="code-header">fn <a href="#tymethod.leave" class="fn">leave</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>The drag and drop pointer has left the surface and the session ends.
|
||||
The offer will be destroyed unless it was previously dropped.
|
||||
In the case of a dropped offer, the client must destroy it manually after it is finished.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.motion" class="method"><h4 class="code-header">fn <a href="#tymethod.motion" class="fn">motion</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
x: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
y: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f64.html">f64</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>Drag and Drop motion.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.selection" class="method"><h4 class="code-header">fn <a href="#tymethod.selection" class="fn">selection</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>Advertises a new selection.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.drop_performed" class="method"><h4 class="code-header">fn <a href="#tymethod.drop_performed" class="fn">drop_performed</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
data_device: &<a class="struct" href="../../reexports/client/protocol/wl_data_device/struct.WlDataDevice.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device::WlDataDevice">WlDataDevice</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>Drop performed.
|
||||
After the next data offer action event, data may be able to be received, unless the action is “ask”.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../../trait.impl/smithay_client_toolkit/data_device_manager/data_device/trait.DataDeviceHandler.js" async></script></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,14 @@
|
|||
<!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="Request to receive the data of a given mime type."><title>receive in cosmic::cctk::sctk::data_device_manager::data_offer - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager::<wbr>data_<wbr>offer</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a>::<wbr><a href="index.html">data_offer</a></div><h1>Function <span class="fn">receive</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 fn receive(
|
||||
offer: &<a class="struct" href="../../reexports/client/protocol/wl_data_offer/struct.WlDataOffer.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_offer::WlDataOffer">WlDataOffer</a>,
|
||||
mime_type: <a class="struct" href="../../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/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="struct" href="../struct.ReadPipe.html" title="struct cosmic::cctk::sctk::data_device_manager::ReadPipe">ReadPipe</a>, <a class="struct" href="../../../../iced/daemon/program/graphics/futures/futures/io/struct.Error.html" title="struct cosmic::iced::daemon::program::graphics::futures::futures::io::Error">Error</a>></code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Request to receive the data of a given mime type.</p>
|
||||
<p>You can do this several times, as a reaction to motion of
|
||||
the dnd cursor, or to inspect the data in order to choose your
|
||||
response.</p>
|
||||
<p>Note that you should <em>not</em> read the contents right away in a
|
||||
blocking way, as you may deadlock your application doing so.
|
||||
At least make sure you flush your events to the server before
|
||||
doing so.</p>
|
||||
<p>Fails if too many file descriptors were already open and a pipe
|
||||
could not be created.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,11 @@
|
|||
<!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="Receive data to the write end of a raw file descriptor. If you have the read end, you can read from it."><title>receive_to_fd in cosmic::cctk::sctk::data_device_manager::data_offer - 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 fn"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager::<wbr>data_<wbr>offer</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a>::<wbr><a href="index.html">data_offer</a></div><h1>Function <span class="fn">receive_to_fd</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 fn receive_to_fd(offer: &<a class="struct" href="../../reexports/client/protocol/wl_data_offer/struct.WlDataOffer.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_offer::WlDataOffer">WlDataOffer</a>, mime_type: <a class="struct" href="../../reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>, writefd: <a class="struct" href="https://doc.rust-lang.org/nightly/std/os/fd/owned/struct.OwnedFd.html" title="struct std::os::fd::owned::OwnedFd">OwnedFd</a>)</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Receive data to the write end of a raw file descriptor. If you have the read end, you can read from it.</p>
|
||||
<p>You can do this several times, as a reaction to motion of
|
||||
the dnd cursor, or to inspect the data in order to choose your
|
||||
response.</p>
|
||||
<p>Note that you should <em>not</em> read the contents right away in a
|
||||
blocking way, as you may deadlock your application doing so.
|
||||
At least make sure you flush your events to the server before
|
||||
doing so.</p>
|
||||
<p>The provided file destructor must be a valid FD for writing, and will be closed
|
||||
once the contents are written.</p>
|
||||
</div></details></section></div></main></body></html>
|
||||
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["DataOfferError"],"fn":["receive","receive_to_fd"],"struct":["DataDeviceOfferInner","DataOfferData","DragOffer","SelectionOffer"],"trait":["DataOfferHandler"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,43 @@
|
|||
<!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="Handler trait for DataOffer events."><title>DataOfferHandler in cosmic::cctk::sctk::data_device_manager::data_offer - 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="#">Data<wbr>Offer<wbr>Handler</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.selected_action" title="selected_action">selected_action</a></li><li><a href="#tymethod.source_actions" title="source_actions">source_actions</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager::<wbr>data_<wbr>offer</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a>::<wbr><a href="index.html">data_offer</a></div><h1>Trait <span class="trait">DataOfferHandler</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 DataOfferHandler: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.source_actions" class="fn">source_actions</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
offer: &mut <a class="struct" href="struct.DragOffer.html" title="struct cosmic::cctk::sctk::data_device_manager::data_offer::DragOffer">DragOffer</a>,
|
||||
actions: <a class="struct" href="../../reexports/client/protocol/wl_data_device_manager/struct.DndAction.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device_manager::DndAction">DndAction</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.selected_action" class="fn">selected_action</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
offer: &mut <a class="struct" href="struct.DragOffer.html" title="struct cosmic::cctk::sctk::data_device_manager::data_offer::DragOffer">DragOffer</a>,
|
||||
actions: <a class="struct" href="../../reexports/client/protocol/wl_data_device_manager/struct.DndAction.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device_manager::DndAction">DndAction</a>,
|
||||
);
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Handler trait for DataOffer events.</p>
|
||||
<p>The functions defined in this trait are called as DataOffer events are received from the compositor.</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.source_actions" class="method"><h4 class="code-header">fn <a href="#tymethod.source_actions" class="fn">source_actions</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
offer: &mut <a class="struct" href="struct.DragOffer.html" title="struct cosmic::cctk::sctk::data_device_manager::data_offer::DragOffer">DragOffer</a>,
|
||||
actions: <a class="struct" href="../../reexports/client/protocol/wl_data_device_manager/struct.DndAction.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device_manager::DndAction">DndAction</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>Called to advertise the available DnD Actions as set by the source.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.selected_action" class="method"><h4 class="code-header">fn <a href="#tymethod.selected_action" class="fn">selected_action</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
offer: &mut <a class="struct" href="struct.DragOffer.html" title="struct cosmic::cctk::sctk::data_device_manager::data_offer::DragOffer">DragOffer</a>,
|
||||
actions: <a class="struct" href="../../reexports/client/protocol/wl_data_device_manager/struct.DndAction.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device_manager::DndAction">DndAction</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>Called to advertise the action selected by the compositor after matching
|
||||
the source/destination side actions. Only one action or none will be
|
||||
selected in the actions sent by the compositor. This may be called
|
||||
multiple times during a DnD operation. The most recent DndAction is the
|
||||
only valid one.</p>
|
||||
<p>At the time of a <code>drop</code> event on the data device, this action must be
|
||||
used except in the case of an ask action. In the case that the last
|
||||
action received is <code>ask</code>, the destination asks the user for their
|
||||
preference, then calls set_actions & accept each one last time. Finally,
|
||||
the destination may then request data to be sent and finishing the data
|
||||
offer</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../../trait.impl/smithay_client_toolkit/data_device_manager/data_offer/trait.DataOfferHandler.js" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
<!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="API documentation for the Rust `data_source` mod in crate `cosmic`."><title>cosmic::cctk::sctk::data_device_manager::data_source - 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 mod"><!--[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="#">Module data_<wbr>source</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a></div><h1>Module <span>data_source</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><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.CopyPasteSource.html" title="struct cosmic::cctk::sctk::data_device_manager::data_source::CopyPasteSource">Copy<wbr>Paste<wbr>Source</a></dt><dt><a class="struct" href="struct.DataSourceData.html" title="struct cosmic::cctk::sctk::data_device_manager::data_source::DataSourceData">Data<wbr>Source<wbr>Data</a></dt><dt><a class="struct" href="struct.DragSource.html" title="struct cosmic::cctk::sctk::data_device_manager::data_source::DragSource">Drag<wbr>Source</a></dt></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.DataSourceDataExt.html" title="trait cosmic::cctk::sctk::data_device_manager::data_source::DataSourceDataExt">Data<wbr>Source<wbr>Data<wbr>Ext</a></dt><dt><a class="trait" href="trait.DataSourceHandler.html" title="trait cosmic::cctk::sctk::data_device_manager::data_source::DataSourceHandler">Data<wbr>Source<wbr>Handler</a></dt><dd>Handler trait for DataSource events.</dd></dl></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["CopyPasteSource","DataSourceData","DragSource"],"trait":["DataSourceDataExt","DataSourceHandler"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,4 @@
|
|||
<!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="API documentation for the Rust `DataSourceDataExt` trait in crate `cosmic`."><title>DataSourceDataExt in cosmic::cctk::sctk::data_device_manager::data_source - 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="#">Data<wbr>Source<wbr>Data<wbr>Ext</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.data_source_data" title="data_source_data">data_source_data</a></li></ul><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager::<wbr>data_<wbr>source</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a>::<wbr><a href="index.html">data_source</a></div><h1>Trait <span class="trait">DataSourceDataExt</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 DataSourceDataExt: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Send.html" title="trait core::marker::Send">Send</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sync.html" title="trait core::marker::Sync">Sync</a> {
|
||||
// Required method
|
||||
fn <a href="#tymethod.data_source_data" class="fn">data_source_data</a>(&self) -> &<a class="struct" href="struct.DataSourceData.html" title="struct cosmic::cctk::sctk::data_device_manager::data_source::DataSourceData">DataSourceData</a>;
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.data_source_data" class="method"><h4 class="code-header">fn <a href="#tymethod.data_source_data" class="fn">data_source_data</a>(&self) -> &<a class="struct" href="struct.DataSourceData.html" title="struct cosmic::cctk::sctk::data_device_manager::data_source::DataSourceData">DataSourceData</a></h4></section></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"><section id="impl-DataSourceDataExt-for-DataSourceData" class="impl"><a href="#impl-DataSourceDataExt-for-DataSourceData" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.DataSourceDataExt.html" title="trait cosmic::cctk::sctk::data_device_manager::data_source::DataSourceDataExt">DataSourceDataExt</a> for <a class="struct" href="struct.DataSourceData.html" title="struct cosmic::cctk::sctk::data_device_manager::data_source::DataSourceData">DataSourceData</a></h3></section></div><script src="../../../../../trait.impl/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceDataExt.js" data-ignore-extern-crates="smithay_client_toolkit" async></script></section></div></main></body></html>
|
||||
|
|
@ -0,0 +1,89 @@
|
|||
<!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="Handler trait for DataSource events."><title>DataSourceHandler in cosmic::cctk::sctk::data_device_manager::data_source - 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="#">Data<wbr>Source<wbr>Handler</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.accept_mime" title="accept_mime">accept_mime</a></li><li><a href="#tymethod.action" title="action">action</a></li><li><a href="#tymethod.cancelled" title="cancelled">cancelled</a></li><li><a href="#tymethod.dnd_dropped" title="dnd_dropped">dnd_dropped</a></li><li><a href="#tymethod.dnd_finished" title="dnd_finished">dnd_finished</a></li><li><a href="#tymethod.send_request" title="send_request">send_request</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>data_<wbr>device_<wbr>manager::<wbr>data_<wbr>source</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">cctk</a>::<wbr><a href="../../index.html">sctk</a>::<wbr><a href="../index.html">data_device_manager</a>::<wbr><a href="index.html">data_source</a></div><h1>Trait <span class="trait">DataSourceHandler</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 DataSourceHandler: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.accept_mime" class="fn">accept_mime</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
mime: <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="../../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.send_request" class="fn">send_request</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
mime: <a class="struct" href="../../reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>,
|
||||
fd: <a class="struct" href="../struct.WritePipe.html" title="struct cosmic::cctk::sctk::data_device_manager::WritePipe">WritePipe</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.cancelled" class="fn">cancelled</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.dnd_dropped" class="fn">dnd_dropped</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.dnd_finished" class="fn">dnd_finished</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.action" class="fn">action</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
action: <a class="struct" href="../../reexports/client/protocol/wl_data_device_manager/struct.DndAction.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device_manager::DndAction">DndAction</a>,
|
||||
);
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Handler trait for DataSource events.</p>
|
||||
<p>The functions defined in this trait are called as DataSource events are received from the compositor.</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.accept_mime" class="method"><h4 class="code-header">fn <a href="#tymethod.accept_mime" class="fn">accept_mime</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
mime: <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="../../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>This may be called multiple times, once for each accepted mime type from the destination, if any.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.send_request" class="method"><h4 class="code-header">fn <a href="#tymethod.send_request" class="fn">send_request</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
mime: <a class="struct" href="../../reexports/client/backend/smallvec/alloc/string/struct.String.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::string::String">String</a>,
|
||||
fd: <a class="struct" href="../struct.WritePipe.html" title="struct cosmic::cctk::sctk::data_device_manager::WritePipe">WritePipe</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>The client has requested the data for this source to be sent.
|
||||
Send the data, then close the fd.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.cancelled" class="method"><h4 class="code-header">fn <a href="#tymethod.cancelled" class="fn">cancelled</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>The data source is no longer valid
|
||||
Cleanup & destroy this resource</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.dnd_dropped" class="method"><h4 class="code-header">fn <a href="#tymethod.dnd_dropped" class="fn">dnd_dropped</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>A drop was performed.
|
||||
The data source will be used and should not be destroyed yet</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.dnd_finished" class="method"><h4 class="code-header">fn <a href="#tymethod.dnd_finished" class="fn">dnd_finished</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>The drag and drop finished.
|
||||
The data source may be destroyed.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.action" class="method"><h4 class="code-header">fn <a href="#tymethod.action" class="fn">action</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
source: &<a class="struct" href="../../reexports/client/protocol/wl_data_source/struct.WlDataSource.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_source::WlDataSource">WlDataSource</a>,
|
||||
action: <a class="struct" href="../../reexports/client/protocol/wl_data_device_manager/struct.DndAction.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_data_device_manager::DndAction">DndAction</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>An action was selected by the compositor.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../../trait.impl/smithay_client_toolkit/data_device_manager/data_source/trait.DataSourceHandler.js" async></script></section></div></main></body></html>
|
||||
3
cosmic/cctk/sctk/data_device_manager/index.html
Normal file
3
cosmic/cctk/sctk/data_device_manager/index.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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="API documentation for the Rust `data_device_manager` mod in crate `cosmic`."><title>cosmic::cctk::sctk::data_device_manager - 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 mod"><!--[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="#">Module data_<wbr>device_<wbr>manager</a></h2><h3><a href="#modules">Module Items</a></h3><ul class="block"><li><a href="#modules" title="Modules">Modules</a></li><li><a href="#structs" title="Structs">Structs</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="../index.html">sctk</a></div><h1>Module <span>data_device_manager</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><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="modules" class="section-header">Modules<a href="#modules" class="anchor">§</a></h2><dl class="item-table"><dt><a class="mod" href="data_device/index.html" title="mod cosmic::cctk::sctk::data_device_manager::data_device">data_<wbr>device</a></dt><dt><a class="mod" href="data_offer/index.html" title="mod cosmic::cctk::sctk::data_device_manager::data_offer">data_<wbr>offer</a></dt><dt><a class="mod" href="data_source/index.html" title="mod cosmic::cctk::sctk::data_device_manager::data_source">data_<wbr>source</a></dt></dl><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.DataDeviceManagerState.html" title="struct cosmic::cctk::sctk::data_device_manager::DataDeviceManagerState">Data<wbr>Device<wbr>Manager<wbr>State</a></dt><dt><a class="struct" href="struct.ReadPipe.html" title="struct cosmic::cctk::sctk::data_device_manager::ReadPipe">Read<wbr>Pipe</a></dt><dd>If the <code>calloop</code> cargo feature is enabled, this can be used
|
||||
as an <code>EventSource</code> in a calloop event loop.</dd><dt><a class="struct" href="struct.WritePipe.html" title="struct cosmic::cctk::sctk::data_device_manager::WritePipe">Write<wbr>Pipe</a></dt><dd>If the <code>calloop</code> cargo feature is enabled, this can be used
|
||||
as an <code>EventSource</code> in a calloop event loop.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/cctk/sctk/data_device_manager/sidebar-items.js
Normal file
1
cosmic/cctk/sctk/data_device_manager/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"mod":["data_device","data_offer","data_source"],"struct":["DataDeviceManagerState","ReadPipe","WritePipe"]};
|
||||
File diff suppressed because one or more lines are too long
117
cosmic/cctk/sctk/data_device_manager/struct.ReadPipe.html
Normal file
117
cosmic/cctk/sctk/data_device_manager/struct.ReadPipe.html
Normal file
File diff suppressed because one or more lines are too long
121
cosmic/cctk/sctk/data_device_manager/struct.WritePipe.html
Normal file
121
cosmic/cctk/sctk/data_device_manager/struct.WritePipe.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/cctk/sctk/dmabuf/index.html
Normal file
1
cosmic/cctk/sctk/dmabuf/index.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!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="API documentation for the Rust `dmabuf` mod in crate `cosmic`."><title>cosmic::cctk::sctk::dmabuf - 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 mod"><!--[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="#">Module dmabuf</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="../index.html">sctk</a></div><h1>Module <span>dmabuf</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><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.DmabufFeedback.html" title="struct cosmic::cctk::sctk::dmabuf::DmabufFeedback">Dmabuf<wbr>Feedback</a></dt><dd>Description of supported and preferred dmabuf formats</dd><dt><a class="struct" href="struct.DmabufFeedbackTranche.html" title="struct cosmic::cctk::sctk::dmabuf::DmabufFeedbackTranche">Dmabuf<wbr>Feedback<wbr>Tranche</a></dt><dd>A preference tranche of dmabuf formats</dd><dt><a class="struct" href="struct.DmabufFormat.html" title="struct cosmic::cctk::sctk::dmabuf::DmabufFormat">Dmabuf<wbr>Format</a></dt><dd>A single dmabuf format/modifier pair</dd><dt><a class="struct" href="struct.DmabufParams.html" title="struct cosmic::cctk::sctk::dmabuf::DmabufParams">Dmabuf<wbr>Params</a></dt><dd>Builder for a dmabuf backed buffer</dd><dt><a class="struct" href="struct.DmabufState.html" title="struct cosmic::cctk::sctk::dmabuf::DmabufState">Dmabuf<wbr>State</a></dt><dd>A handler for <a href="../reexports/protocols/wp/linux_dmabuf/zv1/client/zwp_linux_dmabuf_v1/struct.ZwpLinuxDmabufV1.html" title="struct cosmic::cctk::sctk::reexports::protocols::wp::linux_dmabuf::zv1::client::zwp_linux_dmabuf_v1::ZwpLinuxDmabufV1"><code>zwp_linux_dmabuf_v1::ZwpLinuxDmabufV1</code></a></dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.DmabufHandler.html" title="trait cosmic::cctk::sctk::dmabuf::DmabufHandler">Dmabuf<wbr>Handler</a></dt></dl></section></div></main></body></html>
|
||||
1
cosmic/cctk/sctk/dmabuf/sidebar-items.js
Normal file
1
cosmic/cctk/sctk/dmabuf/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["DmabufFeedback","DmabufFeedbackTranche","DmabufFormat","DmabufParams","DmabufState"],"trait":["DmabufHandler"]};
|
||||
70
cosmic/cctk/sctk/dmabuf/struct.DmabufFeedback.html
Normal file
70
cosmic/cctk/sctk/dmabuf/struct.DmabufFeedback.html
Normal file
File diff suppressed because one or more lines are too long
77
cosmic/cctk/sctk/dmabuf/struct.DmabufFeedbackTranche.html
Normal file
77
cosmic/cctk/sctk/dmabuf/struct.DmabufFeedbackTranche.html
Normal file
File diff suppressed because one or more lines are too long
74
cosmic/cctk/sctk/dmabuf/struct.DmabufFormat.html
Normal file
74
cosmic/cctk/sctk/dmabuf/struct.DmabufFormat.html
Normal file
File diff suppressed because one or more lines are too long
98
cosmic/cctk/sctk/dmabuf/struct.DmabufParams.html
Normal file
98
cosmic/cctk/sctk/dmabuf/struct.DmabufParams.html
Normal file
File diff suppressed because one or more lines are too long
114
cosmic/cctk/sctk/dmabuf/struct.DmabufState.html
Normal file
114
cosmic/cctk/sctk/dmabuf/struct.DmabufState.html
Normal file
File diff suppressed because one or more lines are too long
57
cosmic/cctk/sctk/dmabuf/trait.DmabufHandler.html
Normal file
57
cosmic/cctk/sctk/dmabuf/trait.DmabufHandler.html
Normal file
|
|
@ -0,0 +1,57 @@
|
|||
<!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="API documentation for the Rust `DmabufHandler` trait in crate `cosmic`."><title>DmabufHandler in cosmic::cctk::sctk::dmabuf - 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="#">Dmabuf<wbr>Handler</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.created" title="created">created</a></li><li><a href="#tymethod.dmabuf_feedback" title="dmabuf_feedback">dmabuf_feedback</a></li><li><a href="#tymethod.dmabuf_state" title="dmabuf_state">dmabuf_state</a></li><li><a href="#tymethod.failed" title="failed">failed</a></li><li><a href="#tymethod.released" title="released">released</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>dmabuf</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">cctk</a>::<wbr><a href="../index.html">sctk</a>::<wbr><a href="index.html">dmabuf</a></div><h1>Trait <span class="trait">DmabufHandler</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 DmabufHandler: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.dmabuf_state" class="fn">dmabuf_state</a>(&mut self) -> &mut <a class="struct" href="struct.DmabufState.html" title="struct cosmic::cctk::sctk::dmabuf::DmabufState">DmabufState</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.dmabuf_feedback" class="fn">dmabuf_feedback</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
proxy: &<a class="struct" href="../reexports/protocols/wp/linux_dmabuf/zv1/client/zwp_linux_dmabuf_feedback_v1/struct.ZwpLinuxDmabufFeedbackV1.html" title="struct cosmic::cctk::sctk::reexports::protocols::wp::linux_dmabuf::zv1::client::zwp_linux_dmabuf_feedback_v1::ZwpLinuxDmabufFeedbackV1">ZwpLinuxDmabufFeedbackV1</a>,
|
||||
feedback: <a class="struct" href="struct.DmabufFeedback.html" title="struct cosmic::cctk::sctk::dmabuf::DmabufFeedback">DmabufFeedback</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.created" class="fn">created</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
params: &<a class="struct" href="../reexports/protocols/wp/linux_dmabuf/zv1/client/zwp_linux_buffer_params_v1/struct.ZwpLinuxBufferParamsV1.html" title="struct cosmic::cctk::sctk::reexports::protocols::wp::linux_dmabuf::zv1::client::zwp_linux_buffer_params_v1::ZwpLinuxBufferParamsV1">ZwpLinuxBufferParamsV1</a>,
|
||||
buffer: <a class="struct" href="../reexports/client/protocol/wl_buffer/struct.WlBuffer.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_buffer::WlBuffer">WlBuffer</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.failed" class="fn">failed</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
params: &<a class="struct" href="../reexports/protocols/wp/linux_dmabuf/zv1/client/zwp_linux_buffer_params_v1/struct.ZwpLinuxBufferParamsV1.html" title="struct cosmic::cctk::sctk::reexports::protocols::wp::linux_dmabuf::zv1::client::zwp_linux_buffer_params_v1::ZwpLinuxBufferParamsV1">ZwpLinuxBufferParamsV1</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.released" class="fn">released</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
buffer: &<a class="struct" href="../reexports/client/protocol/wl_buffer/struct.WlBuffer.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_buffer::WlBuffer">WlBuffer</a>,
|
||||
);
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.dmabuf_state" class="method"><h4 class="code-header">fn <a href="#tymethod.dmabuf_state" class="fn">dmabuf_state</a>(&mut self) -> &mut <a class="struct" href="struct.DmabufState.html" title="struct cosmic::cctk::sctk::dmabuf::DmabufState">DmabufState</a></h4></section><details class="toggle method-toggle" open><summary><section id="tymethod.dmabuf_feedback" class="method"><h4 class="code-header">fn <a href="#tymethod.dmabuf_feedback" class="fn">dmabuf_feedback</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
proxy: &<a class="struct" href="../reexports/protocols/wp/linux_dmabuf/zv1/client/zwp_linux_dmabuf_feedback_v1/struct.ZwpLinuxDmabufFeedbackV1.html" title="struct cosmic::cctk::sctk::reexports::protocols::wp::linux_dmabuf::zv1::client::zwp_linux_dmabuf_feedback_v1::ZwpLinuxDmabufFeedbackV1">ZwpLinuxDmabufFeedbackV1</a>,
|
||||
feedback: <a class="struct" href="struct.DmabufFeedback.html" title="struct cosmic::cctk::sctk::dmabuf::DmabufFeedback">DmabufFeedback</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>Server has sent dmabuf feedback information. This may be received multiple
|
||||
times by a <code>ZwpLinuxDmabufFeedbackV1</code> object.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.created" class="method"><h4 class="code-header">fn <a href="#tymethod.created" class="fn">created</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
params: &<a class="struct" href="../reexports/protocols/wp/linux_dmabuf/zv1/client/zwp_linux_buffer_params_v1/struct.ZwpLinuxBufferParamsV1.html" title="struct cosmic::cctk::sctk::reexports::protocols::wp::linux_dmabuf::zv1::client::zwp_linux_buffer_params_v1::ZwpLinuxBufferParamsV1">ZwpLinuxBufferParamsV1</a>,
|
||||
buffer: <a class="struct" href="../reexports/client/protocol/wl_buffer/struct.WlBuffer.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_buffer::WlBuffer">WlBuffer</a>,
|
||||
)</h4></section></summary><div class="docblock"><p><code>wl_buffer</code> associated with <code>params</code> has been created successfully.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.failed" class="method"><h4 class="code-header">fn <a href="#tymethod.failed" class="fn">failed</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
params: &<a class="struct" href="../reexports/protocols/wp/linux_dmabuf/zv1/client/zwp_linux_buffer_params_v1/struct.ZwpLinuxBufferParamsV1.html" title="struct cosmic::cctk::sctk::reexports::protocols::wp::linux_dmabuf::zv1::client::zwp_linux_buffer_params_v1::ZwpLinuxBufferParamsV1">ZwpLinuxBufferParamsV1</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>Failed to create <code>wl_buffer</code> for <code>params</code>.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.released" class="method"><h4 class="code-header">fn <a href="#tymethod.released" class="fn">released</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
buffer: &<a class="struct" href="../reexports/client/protocol/wl_buffer/struct.WlBuffer.html" title="struct cosmic::cctk::sctk::reexports::client::protocol::wl_buffer::WlBuffer">WlBuffer</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>Compositor has released a <code>wl_buffer</code> created through <a href="struct.DmabufParams.html" title="struct cosmic::cctk::sctk::dmabuf::DmabufParams"><code>DmabufParams</code></a>.</p>
|
||||
</div></details></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../trait.impl/smithay_client_toolkit/dmabuf/trait.DmabufHandler.js" async></script></section></div></main></body></html>
|
||||
77
cosmic/cctk/sctk/error/enum.GlobalError.html
Normal file
77
cosmic/cctk/sctk/error/enum.GlobalError.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/cctk/sctk/error/index.html
Normal file
1
cosmic/cctk/sctk/error/index.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!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="API documentation for the Rust `error` mod in crate `cosmic`."><title>cosmic::cctk::sctk::error - 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 mod"><!--[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="#">Module error</a></h2><h3><a href="#enums">Module Items</a></h3><ul class="block"><li><a href="#enums" title="Enums">Enums</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="../index.html">sctk</a></div><h1>Module <span>error</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><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="enums" class="section-header">Enums<a href="#enums" class="anchor">§</a></h2><dl class="item-table"><dt><a class="enum" href="enum.GlobalError.html" title="enum cosmic::cctk::sctk::error::GlobalError">Global<wbr>Error</a></dt><dd>An error that may occur when creating objects using a global.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/cctk/sctk/error/sidebar-items.js
Normal file
1
cosmic/cctk/sctk/error/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"enum":["GlobalError"]};
|
||||
1
cosmic/cctk/sctk/foreign_toplevel_list/index.html
Normal file
1
cosmic/cctk/sctk/foreign_toplevel_list/index.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!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="API documentation for the Rust `foreign_toplevel_list` mod in crate `cosmic`."><title>cosmic::cctk::sctk::foreign_toplevel_list - 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 mod"><!--[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="#">Module foreign_<wbr>toplevel_<wbr>list</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="../index.html">sctk</a></div><h1>Module <span>foreign_toplevel_list</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><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.ForeignToplevelInfo.html" title="struct cosmic::cctk::sctk::foreign_toplevel_list::ForeignToplevelInfo">Foreign<wbr>Toplevel<wbr>Info</a></dt><dd>Information about a toplevel.</dd><dt><a class="struct" href="struct.ForeignToplevelList.html" title="struct cosmic::cctk::sctk::foreign_toplevel_list::ForeignToplevelList">Foreign<wbr>Toplevel<wbr>List</a></dt></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.ForeignToplevelListHandler.html" title="trait cosmic::cctk::sctk::foreign_toplevel_list::ForeignToplevelListHandler">Foreign<wbr>Toplevel<wbr>List<wbr>Handler</a></dt><dd>Handler trait for foreign toplevel list protocol.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/cctk/sctk/foreign_toplevel_list/sidebar-items.js
Normal file
1
cosmic/cctk/sctk/foreign_toplevel_list/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["ForeignToplevelInfo","ForeignToplevelList"],"trait":["ForeignToplevelListHandler"]};
|
||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
|
|
@ -0,0 +1,44 @@
|
|||
<!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="Handler trait for foreign toplevel list protocol."><title>ForeignToplevelListHandler in cosmic::cctk::sctk::foreign_toplevel_list - 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="#">Foreign<wbr>Toplevel<wbr>List<wbr>Handler</a></h2><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.foreign_toplevel_list_state" title="foreign_toplevel_list_state">foreign_toplevel_list_state</a></li><li><a href="#tymethod.new_toplevel" title="new_toplevel">new_toplevel</a></li><li><a href="#tymethod.toplevel_closed" title="toplevel_closed">toplevel_closed</a></li><li><a href="#tymethod.update_toplevel" title="update_toplevel">update_toplevel</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.finished" title="finished">finished</a></li></ul><h3><a href="#dyn-compatibility">Dyn Compatibility</a></h3><h3><a href="#implementors">Implementors</a></h3></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk::<wbr>foreign_<wbr>toplevel_<wbr>list</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">cctk</a>::<wbr><a href="../index.html">sctk</a>::<wbr><a href="index.html">foreign_toplevel_list</a></div><h1>Trait <span class="trait">ForeignToplevelListHandler</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 ForeignToplevelListHandler: <a class="trait" href="https://doc.rust-lang.org/nightly/core/marker/trait.Sized.html" title="trait core::marker::Sized">Sized</a> {
|
||||
// Required methods
|
||||
fn <a href="#tymethod.foreign_toplevel_list_state" class="fn">foreign_toplevel_list_state</a>(&mut self) -> &mut <a class="struct" href="struct.ForeignToplevelList.html" title="struct cosmic::cctk::sctk::foreign_toplevel_list::ForeignToplevelList">ForeignToplevelList</a>;
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.new_toplevel" class="fn">new_toplevel</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
toplevel_handle: <a class="struct" href="../reexports/protocols/ext/foreign_toplevel_list/v1/client/ext_foreign_toplevel_handle_v1/struct.ExtForeignToplevelHandleV1.html" title="struct cosmic::cctk::sctk::reexports::protocols::ext::foreign_toplevel_list::v1::client::ext_foreign_toplevel_handle_v1::ExtForeignToplevelHandleV1">ExtForeignToplevelHandleV1</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.update_toplevel" class="fn">update_toplevel</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
toplevel_handle: <a class="struct" href="../reexports/protocols/ext/foreign_toplevel_list/v1/client/ext_foreign_toplevel_handle_v1/struct.ExtForeignToplevelHandleV1.html" title="struct cosmic::cctk::sctk::reexports::protocols::ext::foreign_toplevel_list::v1::client::ext_foreign_toplevel_handle_v1::ExtForeignToplevelHandleV1">ExtForeignToplevelHandleV1</a>,
|
||||
);
|
||||
<span class="item-spacer"></span> fn <a href="#tymethod.toplevel_closed" class="fn">toplevel_closed</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
toplevel_handle: <a class="struct" href="../reexports/protocols/ext/foreign_toplevel_list/v1/client/ext_foreign_toplevel_handle_v1/struct.ExtForeignToplevelHandleV1.html" title="struct cosmic::cctk::sctk::reexports::protocols::ext::foreign_toplevel_list::v1::client::ext_foreign_toplevel_handle_v1::ExtForeignToplevelHandleV1">ExtForeignToplevelHandleV1</a>,
|
||||
);
|
||||
|
||||
// Provided method
|
||||
fn <a href="#method.finished" class="fn">finished</a>(&mut self, _conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>, _qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>) { ... }
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Handler trait for foreign toplevel list protocol.</p>
|
||||
</div></details><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.foreign_toplevel_list_state" class="method"><h4 class="code-header">fn <a href="#tymethod.foreign_toplevel_list_state" class="fn">foreign_toplevel_list_state</a>(&mut self) -> &mut <a class="struct" href="struct.ForeignToplevelList.html" title="struct cosmic::cctk::sctk::foreign_toplevel_list::ForeignToplevelList">ForeignToplevelList</a></h4></section><details class="toggle method-toggle" open><summary><section id="tymethod.new_toplevel" class="method"><h4 class="code-header">fn <a href="#tymethod.new_toplevel" class="fn">new_toplevel</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
toplevel_handle: <a class="struct" href="../reexports/protocols/ext/foreign_toplevel_list/v1/client/ext_foreign_toplevel_handle_v1/struct.ExtForeignToplevelHandleV1.html" title="struct cosmic::cctk::sctk::reexports::protocols::ext::foreign_toplevel_list::v1::client::ext_foreign_toplevel_handle_v1::ExtForeignToplevelHandleV1">ExtForeignToplevelHandleV1</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>A new toplevel has been opened.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.update_toplevel" class="method"><h4 class="code-header">fn <a href="#tymethod.update_toplevel" class="fn">update_toplevel</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
toplevel_handle: <a class="struct" href="../reexports/protocols/ext/foreign_toplevel_list/v1/client/ext_foreign_toplevel_handle_v1/struct.ExtForeignToplevelHandleV1.html" title="struct cosmic::cctk::sctk::reexports::protocols::ext::foreign_toplevel_list::v1::client::ext_foreign_toplevel_handle_v1::ExtForeignToplevelHandleV1">ExtForeignToplevelHandleV1</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>An existing toplevel has changed.</p>
|
||||
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.toplevel_closed" class="method"><h4 class="code-header">fn <a href="#tymethod.toplevel_closed" class="fn">toplevel_closed</a>(
|
||||
&mut self,
|
||||
conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>,
|
||||
qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>,
|
||||
toplevel_handle: <a class="struct" href="../reexports/protocols/ext/foreign_toplevel_list/v1/client/ext_foreign_toplevel_handle_v1/struct.ExtForeignToplevelHandleV1.html" title="struct cosmic::cctk::sctk::reexports::protocols::ext::foreign_toplevel_list::v1::client::ext_foreign_toplevel_handle_v1::ExtForeignToplevelHandleV1">ExtForeignToplevelHandleV1</a>,
|
||||
)</h4></section></summary><div class="docblock"><p>A toplevel has closed.</p>
|
||||
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><section id="method.finished" class="method"><h4 class="code-header">fn <a href="#method.finished" class="fn">finished</a>(&mut self, _conn: &<a class="struct" href="../reexports/client/struct.Connection.html" title="struct cosmic::cctk::sctk::reexports::client::Connection">Connection</a>, _qh: &<a class="struct" href="../reexports/client/struct.QueueHandle.html" title="struct cosmic::cctk::sctk::reexports::client::QueueHandle">QueueHandle</a><Self>)</h4></section></div><h2 id="dyn-compatibility" class="section-header">Dyn Compatibility<a href="#dyn-compatibility" class="anchor">§</a></h2><div class="dyn-compatibility-info"><p>This trait is <b>not</b> <a href="https://doc.rust-lang.org/nightly/reference/items/traits.html#dyn-compatibility">dyn compatible</a>.</p><p><i>In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.</i></p></div><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../trait.impl/smithay_client_toolkit/foreign_toplevel_list/trait.ForeignToplevelListHandler.js" async></script></section></div></main></body></html>
|
||||
1
cosmic/cctk/sctk/globals/index.html
Normal file
1
cosmic/cctk/sctk/globals/index.html
Normal file
|
|
@ -0,0 +1 @@
|
|||
<!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="API documentation for the Rust `globals` mod in crate `cosmic`."><title>cosmic::cctk::sctk::globals - 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 mod"><!--[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="#">Module globals</a></h2><h3><a href="#structs">Module Items</a></h3><ul class="block"><li><a href="#structs" title="Structs">Structs</a></li><li><a href="#traits" title="Traits">Traits</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="../index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="../index.html">sctk</a></div><h1>Module <span>globals</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><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><h2 id="structs" class="section-header">Structs<a href="#structs" class="anchor">§</a></h2><dl class="item-table"><dt><a class="struct" href="struct.GlobalData.html" title="struct cosmic::cctk::sctk::globals::GlobalData">Global<wbr>Data</a></dt><dd>A struct used as the UserData field for globals bound by SCTK.</dd></dl><h2 id="traits" class="section-header">Traits<a href="#traits" class="anchor">§</a></h2><dl class="item-table"><dt><a class="trait" href="trait.ProvidesBoundGlobal.html" title="trait cosmic::cctk::sctk::globals::ProvidesBoundGlobal">Provides<wbr>Bound<wbr>Global</a></dt><dd>A trait implemented by types that provide access to capability globals.</dd></dl></section></div></main></body></html>
|
||||
1
cosmic/cctk/sctk/globals/sidebar-items.js
Normal file
1
cosmic/cctk/sctk/globals/sidebar-items.js
Normal file
|
|
@ -0,0 +1 @@
|
|||
window.SIDEBAR_ITEMS = {"struct":["GlobalData"],"trait":["ProvidesBoundGlobal"]};
|
||||
329
cosmic/cctk/sctk/globals/struct.GlobalData.html
Normal file
329
cosmic/cctk/sctk/globals/struct.GlobalData.html
Normal file
File diff suppressed because one or more lines are too long
36
cosmic/cctk/sctk/globals/trait.ProvidesBoundGlobal.html
Normal file
36
cosmic/cctk/sctk/globals/trait.ProvidesBoundGlobal.html
Normal file
File diff suppressed because one or more lines are too long
1
cosmic/cctk/sctk/index.html
Normal file
1
cosmic/cctk/sctk/index.html
Normal file
File diff suppressed because one or more lines are too long
11
cosmic/cctk/sctk/macro.delegate_activation!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_activation!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_activation.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_activation.html">macro.delegate_activation.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_activation.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
4
cosmic/cctk/sctk/macro.delegate_activation.html
Normal file
4
cosmic/cctk/sctk/macro.delegate_activation.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!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="API documentation for the Rust `delegate_activation` macro in crate `cosmic`."><title>delegate_activation in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_activation</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>macro_rules! delegate_activation {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty, $data: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_compositor!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_compositor!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_compositor.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_compositor.html">macro.delegate_compositor.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_compositor.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
7
cosmic/cctk/sctk/macro.delegate_compositor.html
Normal file
7
cosmic/cctk/sctk/macro.delegate_compositor.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<!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="API documentation for the Rust `delegate_compositor` macro in crate `cosmic`."><title>delegate_compositor in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_compositor</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>macro_rules! delegate_compositor {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty, surface: [$($surface: ty),*$(,)?]) => { ... };
|
||||
(@{$($ty:tt)*}; surface: []) => { ... };
|
||||
(@{$($ty:tt)*}; surface-only: $surface:ty) => { ... };
|
||||
(@$ty:tt; surface: [ $($surface:ty),+ ]) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_data_device!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_data_device!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_data_device.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_data_device.html">macro.delegate_data_device.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_data_device.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
3
cosmic/cctk/sctk/macro.delegate_data_device.html
Normal file
3
cosmic/cctk/sctk/macro.delegate_data_device.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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="API documentation for the Rust `delegate_data_device` macro in crate `cosmic`."><title>delegate_data_device in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_data_device</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>macro_rules! delegate_data_device {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_dmabuf!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_dmabuf!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_dmabuf.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_dmabuf.html">macro.delegate_dmabuf.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_dmabuf.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
3
cosmic/cctk/sctk/macro.delegate_dmabuf.html
Normal file
3
cosmic/cctk/sctk/macro.delegate_dmabuf.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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="API documentation for the Rust `delegate_dmabuf` macro in crate `cosmic`."><title>delegate_dmabuf in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_dmabuf</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>macro_rules! delegate_dmabuf {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_foreign_toplevel_list!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_foreign_toplevel_list!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_foreign_toplevel_list.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_foreign_toplevel_list.html">macro.delegate_foreign_toplevel_list.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_foreign_toplevel_list.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -0,0 +1,3 @@
|
|||
<!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="API documentation for the Rust `delegate_foreign_toplevel_list` macro in crate `cosmic`."><title>delegate_foreign_toplevel_list in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_foreign_toplevel_list</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>macro_rules! delegate_foreign_toplevel_list {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_input_method!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_input_method!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_input_method.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_input_method.html">macro.delegate_input_method.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_input_method.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
3
cosmic/cctk/sctk/macro.delegate_input_method.html
Normal file
3
cosmic/cctk/sctk/macro.delegate_input_method.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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="API documentation for the Rust `delegate_input_method` macro in crate `cosmic`."><title>delegate_input_method in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_input_method</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>macro_rules! delegate_input_method {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_input_method_v3!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_input_method_v3!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_input_method_v3.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_input_method_v3.html">macro.delegate_input_method_v3.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_input_method_v3.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
3
cosmic/cctk/sctk/macro.delegate_input_method_v3.html
Normal file
3
cosmic/cctk/sctk/macro.delegate_input_method_v3.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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="API documentation for the Rust `delegate_input_method_v3` macro in crate `cosmic`."><title>delegate_input_method_v3 in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_input_method_v3</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>macro_rules! delegate_input_method_v3 {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_keyboard!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_keyboard!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_keyboard.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_keyboard.html">macro.delegate_keyboard.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_keyboard.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
4
cosmic/cctk/sctk/macro.delegate_keyboard.html
Normal file
4
cosmic/cctk/sctk/macro.delegate_keyboard.html
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
<!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="API documentation for the Rust `delegate_keyboard` macro in crate `cosmic`."><title>delegate_keyboard in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_keyboard</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>macro_rules! delegate_keyboard {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty, keyboard: [$($udata:ty),* $(,)?]) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_layer!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_layer!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_layer.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_layer.html">macro.delegate_layer.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_layer.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
3
cosmic/cctk/sctk/macro.delegate_layer.html
Normal file
3
cosmic/cctk/sctk/macro.delegate_layer.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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="API documentation for the Rust `delegate_layer` macro in crate `cosmic`."><title>delegate_layer in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_layer</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>macro_rules! delegate_layer {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_output!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_output!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_output.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_output.html">macro.delegate_output.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_output.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
3
cosmic/cctk/sctk/macro.delegate_output.html
Normal file
3
cosmic/cctk/sctk/macro.delegate_output.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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="API documentation for the Rust `delegate_output` macro in crate `cosmic`."><title>delegate_output in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_output</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>macro_rules! delegate_output {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_pointer!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_pointer!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_pointer.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_pointer.html">macro.delegate_pointer.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_pointer.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
7
cosmic/cctk/sctk/macro.delegate_pointer.html
Normal file
7
cosmic/cctk/sctk/macro.delegate_pointer.html
Normal file
|
|
@ -0,0 +1,7 @@
|
|||
<!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="API documentation for the Rust `delegate_pointer` macro in crate `cosmic`."><title>delegate_pointer in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_pointer</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>macro_rules! delegate_pointer {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty, pointer: [$($pointer_data:ty),* $(,)?]) => { ... };
|
||||
(@{$($ty:tt)*}; pointer: []) => { ... };
|
||||
(@{$($ty:tt)*}; pointer-only: $pointer_data:ty) => { ... };
|
||||
(@$ty:tt; pointer: [$($pointer:ty),*]) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_pointer_constraints!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_pointer_constraints!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_pointer_constraints.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_pointer_constraints.html">macro.delegate_pointer_constraints.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_pointer_constraints.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
3
cosmic/cctk/sctk/macro.delegate_pointer_constraints.html
Normal file
3
cosmic/cctk/sctk/macro.delegate_pointer_constraints.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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="API documentation for the Rust `delegate_pointer_constraints` macro in crate `cosmic`."><title>delegate_pointer_constraints in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_pointer_constraints</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>macro_rules! delegate_pointer_constraints {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_presentation_time!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_presentation_time!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_presentation_time.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_presentation_time.html">macro.delegate_presentation_time.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_presentation_time.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
3
cosmic/cctk/sctk/macro.delegate_presentation_time.html
Normal file
3
cosmic/cctk/sctk/macro.delegate_presentation_time.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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="API documentation for the Rust `delegate_presentation_time` macro in crate `cosmic`."><title>delegate_presentation_time in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_presentation_time</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>macro_rules! delegate_presentation_time {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_primary_selection!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_primary_selection!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_primary_selection.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_primary_selection.html">macro.delegate_primary_selection.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_primary_selection.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
3
cosmic/cctk/sctk/macro.delegate_primary_selection.html
Normal file
3
cosmic/cctk/sctk/macro.delegate_primary_selection.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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="API documentation for the Rust `delegate_primary_selection` macro in crate `cosmic`."><title>delegate_primary_selection in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_primary_selection</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>macro_rules! delegate_primary_selection {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_registry!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_registry!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_registry.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_registry.html">macro.delegate_registry.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_registry.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
23
cosmic/cctk/sctk/macro.delegate_registry.html
Normal file
23
cosmic/cctk/sctk/macro.delegate_registry.html
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<!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="Delegates the handling of `wl_registry`."><title>delegate_registry in cosmic::cctk::sctk - 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 macro"><!--[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="#">delegate_<wbr>registry</a></h2><h3><a href="#">Sections</a></h3><ul class="block top-toc"><li><a href="#usage" title="Usage">Usage</a></li></ul></section><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_registry</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>macro_rules! delegate_registry {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Delegates the handling of <a href="reexports/client/protocol/wl_registry/index.html" title="mod cosmic::cctk::sctk::reexports::client::protocol::wl_registry"><code>wl_registry</code></a>.</p>
|
||||
<p>Anything which implements <a href="registry/trait.RegistryHandler.html" title="trait cosmic::cctk::sctk::registry::RegistryHandler"><code>RegistryHandler</code></a> may be used in the delegate.</p>
|
||||
<h3 id="usage"><a class="doc-anchor" href="#usage">§</a>Usage</h3>
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>smithay_client_toolkit::{
|
||||
delegate_registry, delegate_shm, registry_handlers,
|
||||
shm::{ShmHandler, Shm},
|
||||
};
|
||||
|
||||
<span class="kw">struct </span>ExampleApp {
|
||||
shm_state: Shm,
|
||||
}
|
||||
|
||||
<span class="comment">// Here is the implementation of wl_shm to compile:
|
||||
</span><span class="macro">delegate_shm!</span>(ExampleApp);
|
||||
|
||||
<span class="kw">impl </span>ShmHandler <span class="kw">for </span>ExampleApp {
|
||||
<span class="kw">fn </span>shm_state(<span class="kw-2">&mut </span><span class="self">self</span>) -> <span class="kw-2">&mut </span>Shm {
|
||||
<span class="kw-2">&mut </span><span class="self">self</span>.shm_state
|
||||
}
|
||||
}</code></pre></div>
|
||||
</div></details></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_relative_pointer!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_relative_pointer!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_relative_pointer.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_relative_pointer.html">macro.delegate_relative_pointer.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_relative_pointer.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
3
cosmic/cctk/sctk/macro.delegate_relative_pointer.html
Normal file
3
cosmic/cctk/sctk/macro.delegate_relative_pointer.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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="API documentation for the Rust `delegate_relative_pointer` macro in crate `cosmic`."><title>delegate_relative_pointer in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_relative_pointer</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>macro_rules! delegate_relative_pointer {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_seat!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_seat!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_seat.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_seat.html">macro.delegate_seat.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_seat.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
3
cosmic/cctk/sctk/macro.delegate_seat.html
Normal file
3
cosmic/cctk/sctk/macro.delegate_seat.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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="API documentation for the Rust `delegate_seat` macro in crate `cosmic`."><title>delegate_seat in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_seat</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>macro_rules! delegate_seat {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_session_lock!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_session_lock!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_session_lock.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_session_lock.html">macro.delegate_session_lock.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_session_lock.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
3
cosmic/cctk/sctk/macro.delegate_session_lock.html
Normal file
3
cosmic/cctk/sctk/macro.delegate_session_lock.html
Normal file
|
|
@ -0,0 +1,3 @@
|
|||
<!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="API documentation for the Rust `delegate_session_lock` macro in crate `cosmic`."><title>delegate_session_lock in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_session_lock</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>macro_rules! delegate_session_lock {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span></section></div></main></body></html>
|
||||
11
cosmic/cctk/sctk/macro.delegate_shm!.html
Normal file
11
cosmic/cctk/sctk/macro.delegate_shm!.html
Normal file
|
|
@ -0,0 +1,11 @@
|
|||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta http-equiv="refresh" content="0;URL=macro.delegate_shm.html">
|
||||
<title>Redirection</title>
|
||||
</head>
|
||||
<body>
|
||||
<p>Redirecting to <a href="macro.delegate_shm.html">macro.delegate_shm.html</a>...</p>
|
||||
<script>location.replace("macro.delegate_shm.html" + location.search + location.hash);</script>
|
||||
</body>
|
||||
</html>
|
||||
24
cosmic/cctk/sctk/macro.delegate_shm.html
Normal file
24
cosmic/cctk/sctk/macro.delegate_shm.html
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
<!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="Delegates the handling of `wl_shm` to some `Shm`."><title>delegate_shm in cosmic::cctk::sctk - 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 macro"><!--[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"><div id="rustdoc-modnav"><h2><a href="index.html">In cosmic::<wbr>cctk::<wbr>sctk</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">cctk</a>::<wbr><a href="index.html">sctk</a></div><h1>Macro <span class="macro">delegate_shm</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>macro_rules! delegate_shm {
|
||||
($(@<$( $lt:tt $( : $clt:tt $(+ $dlt:tt )* )? ),+>)? $ty: ty) => { ... };
|
||||
}</code></pre><span class="item-info"><div class="stab portability">Available on <strong>crate feature <code>wayland</code> and Linux</strong> only.</div></span><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>Delegates the handling of <a href="reexports/client/protocol/wl_shm/index.html" title="mod cosmic::cctk::sctk::reexports::client::protocol::wl_shm"><code>wl_shm</code></a> to some <a href="shm/struct.Shm.html" title="struct cosmic::cctk::sctk::shm::Shm"><code>Shm</code></a>.</p>
|
||||
<p>This macro requires two things, the type that will delegate to <a href="shm/struct.Shm.html" title="struct cosmic::cctk::sctk::shm::Shm"><code>Shm</code></a> and a closure specifying how
|
||||
to obtain the state object.</p>
|
||||
|
||||
<div class="example-wrap"><pre class="rust rust-example-rendered"><code><span class="kw">use </span>smithay_client_toolkit::shm::{ShmHandler, Shm};
|
||||
<span class="kw">use </span>smithay_client_toolkit::delegate_shm;
|
||||
|
||||
<span class="kw">struct </span>ExampleApp {
|
||||
<span class="doccomment">/// The state object that will be our delegate.
|
||||
</span>shm: Shm,
|
||||
}
|
||||
|
||||
<span class="comment">// Use the macro to delegate wl_shm to Shm.
|
||||
</span><span class="macro">delegate_shm!</span>(ExampleApp);
|
||||
|
||||
<span class="comment">// You must implement the ShmHandler trait to provide a way to access the Shm from your data type.
|
||||
</span><span class="kw">impl </span>ShmHandler <span class="kw">for </span>ExampleApp {
|
||||
<span class="kw">fn </span>shm_state(<span class="kw-2">&mut </span><span class="self">self</span>) -> <span class="kw-2">&mut </span>Shm {
|
||||
<span class="kw-2">&mut </span><span class="self">self</span>.shm
|
||||
}
|
||||
}</code></pre></div>
|
||||
</div></details></section></div></main></body></html>
|
||||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue