189 lines
No EOL
54 KiB
HTML
189 lines
No EOL
54 KiB
HTML
<!DOCTYPE html><html lang="en"><head><meta charset="utf-8"><meta name="viewport" content="width=device-width, initial-scale=1.0"><meta name="generator" content="rustdoc"><meta name="description" content="A graphics compositor that can draw to windows."><title>Compositor in cosmic::iced::daemon::program::graphics - 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</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Renderer" title="Renderer">Renderer</a></li><li><a href="#associatedtype.Surface" title="Surface">Surface</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.configure_surface" title="configure_surface">configure_surface</a></li><li><a href="#tymethod.create_renderer" title="create_renderer">create_renderer</a></li><li><a href="#tymethod.create_surface" title="create_surface">create_surface</a></li><li><a href="#tymethod.information" title="information">information</a></li><li><a href="#tymethod.present" title="present">present</a></li><li><a href="#tymethod.screenshot" title="screenshot">screenshot</a></li><li><a href="#tymethod.with_backend" title="with_backend">with_backend</a></li></ul><h3><a href="#provided-methods">Provided Methods</a></h3><ul class="block"><li><a href="#method.load_font" title="load_font">load_font</a></li><li><a href="#method.new" title="new">new</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Compositor-for-()" title="()">()</a></li><li><a href="#impl-Compositor-for-Compositor" title="Compositor">Compositor</a></li><li><a href="#impl-Compositor-for-Compositor%3CA,+B%3E" title="Compositor<A, B>">Compositor<A, B></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>iced::<wbr>daemon::<wbr>program::<wbr>graphics</a></h2></div></div></nav><div class="sidebar-resizer" title="Drag to resize sidebar"></div><main><div class="width-limiter"><rustdoc-search></rustdoc-search><section id="main-content" class="content"><div class="main-heading"><div class="rustdoc-breadcrumbs"><a href="../../../../index.html">cosmic</a>::<wbr><a href="../../../index.html">iced</a>::<wbr><a href="../../index.html">daemon</a>::<wbr><a href="../index.html">program</a>::<wbr><a href="index.html">graphics</a></div><h1>Trait <span class="trait">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>pub trait Compositor: <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.Renderer" class="associatedtype">Renderer</a>;
|
|
type <a href="#associatedtype.Surface" class="associatedtype">Surface</a>;
|
|
|
|
// Required methods
|
|
fn <a href="#tymethod.with_backend" class="fn">with_backend</a>(
|
|
settings: <a class="struct" href="struct.Settings.html" title="struct cosmic::iced::daemon::program::graphics::Settings">Settings</a>,
|
|
display: impl <a class="trait" href="compositor/trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
|
compatible_window: impl <a class="trait" href="compositor/trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
|
shell: <a class="struct" href="struct.Shell.html" title="struct cosmic::iced::daemon::program::graphics::Shell">Shell</a>,
|
|
backend: <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>>,
|
|
) -> impl <a class="trait" href="futures/futures/trait.Future.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="enum.Error.html" title="enum cosmic::iced::daemon::program::graphics::Error">Error</a>>>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.create_renderer" class="fn">create_renderer</a>(&self) -> Self::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.create_surface" class="fn">create_surface</a><W>(
|
|
&mut self,
|
|
window: W,
|
|
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
) -> Self::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>
|
|
<span class="where">where W: <a class="trait" href="compositor/trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a></span>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.configure_surface" class="fn">configure_surface</a>(
|
|
&mut self,
|
|
surface: &mut Self::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
|
|
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
height: <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.information" class="fn">information</a>(&self) -> <a class="struct" href="compositor/struct.Information.html" title="struct cosmic::iced::daemon::program::graphics::compositor::Information">Information</a>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.present" class="fn">present</a>(
|
|
&mut self,
|
|
renderer: &mut Self::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
|
|
surface: &mut Self::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
|
|
viewport: &<a class="struct" href="struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
|
|
background_color: <a class="struct" href="../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
|
|
on_pre_present: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="compositor/enum.SurfaceError.html" title="enum cosmic::iced::daemon::program::graphics::compositor::SurfaceError">SurfaceError</a>>;
|
|
<span class="item-spacer"></span> fn <a href="#tymethod.screenshot" class="fn">screenshot</a>(
|
|
&mut self,
|
|
renderer: &mut Self::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
|
|
viewport: &<a class="struct" href="struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
|
|
background_color: <a class="struct" href="../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
|
|
) -> <a class="struct" href="../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>> <a href="#" class="tooltip" data-notable-ty="Vec<u8>">ⓘ</a>;
|
|
|
|
// Provided methods
|
|
fn <a href="#method.new" class="fn">new</a>(
|
|
settings: <a class="struct" href="struct.Settings.html" title="struct cosmic::iced::daemon::program::graphics::Settings">Settings</a>,
|
|
display: impl <a class="trait" href="compositor/trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
|
compatible_window: impl <a class="trait" href="compositor/trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
|
shell: <a class="struct" href="struct.Shell.html" title="struct cosmic::iced::daemon::program::graphics::Shell">Shell</a>,
|
|
) -> impl <a class="trait" href="futures/futures/trait.Future.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="enum.Error.html" title="enum cosmic::iced::daemon::program::graphics::Error">Error</a>>> { ... }
|
|
<span class="item-spacer"></span> fn <a href="#method.load_font" class="fn">load_font</a>(&mut self, font: <a class="enum" href="../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'static, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>) { ... }
|
|
}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>A graphics compositor that can draw to windows.</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.Renderer" class="method"><h4 class="code-header">type <a href="#associatedtype.Renderer" class="associatedtype">Renderer</a></h4></section></summary><div class="docblock"><p>The iced renderer of the backend.</p>
|
|
</div></details><details class="toggle" open><summary><section id="associatedtype.Surface" class="method"><h4 class="code-header">type <a href="#associatedtype.Surface" class="associatedtype">Surface</a></h4></section></summary><div class="docblock"><p>The surface of the backend.</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.with_backend" class="method"><h4 class="code-header">fn <a href="#tymethod.with_backend" class="fn">with_backend</a>(
|
|
settings: <a class="struct" href="struct.Settings.html" title="struct cosmic::iced::daemon::program::graphics::Settings">Settings</a>,
|
|
display: impl <a class="trait" href="compositor/trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
|
compatible_window: impl <a class="trait" href="compositor/trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
|
shell: <a class="struct" href="struct.Shell.html" title="struct cosmic::iced::daemon::program::graphics::Shell">Shell</a>,
|
|
backend: <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>>,
|
|
) -> impl <a class="trait" href="futures/futures/trait.Future.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="enum.Error.html" title="enum cosmic::iced::daemon::program::graphics::Error">Error</a>>></h4></section></summary><div class="docblock"><p>Creates a new <a href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor"><code>Compositor</code></a> with a backend preference.</p>
|
|
<p>If the backend does not match the preference, it will return
|
|
<a href="enum.Error.html#variant.GraphicsAdapterNotFound" title="variant cosmic::iced::daemon::program::graphics::Error::GraphicsAdapterNotFound"><code>Error::GraphicsAdapterNotFound</code></a>.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.create_renderer" class="method"><h4 class="code-header">fn <a href="#tymethod.create_renderer" class="fn">create_renderer</a>(&self) -> Self::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a></h4></section></summary><div class="docblock"><p>Creates a <a href="trait.Compositor.html#associatedtype.Renderer" title="associated type iced_graphics::compositor::Compositor::Renderer::Renderer"><code>Self::Renderer</code></a> for the <a href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor"><code>Compositor</code></a>.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.create_surface" class="method"><h4 class="code-header">fn <a href="#tymethod.create_surface" class="fn">create_surface</a><W>(
|
|
&mut self,
|
|
window: W,
|
|
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
) -> Self::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a><div class="where">where
|
|
W: <a class="trait" href="compositor/trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section></summary><div class="docblock"><p>Crates a new <a href="trait.Compositor.html#associatedtype.Surface" title="associated type iced_graphics::compositor::Compositor::Surface::Surface"><code>Surface</code></a> for the given window.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.configure_surface" class="method"><h4 class="code-header">fn <a href="#tymethod.configure_surface" class="fn">configure_surface</a>(
|
|
&mut self,
|
|
surface: &mut Self::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
|
|
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
)</h4></section></summary><div class="docblock"><p>Configures a new <a href="trait.Compositor.html#associatedtype.Surface" title="associated type iced_graphics::compositor::Compositor::Surface::Surface"><code>Surface</code></a> with the given dimensions.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.information" class="method"><h4 class="code-header">fn <a href="#tymethod.information" class="fn">information</a>(&self) -> <a class="struct" href="compositor/struct.Information.html" title="struct cosmic::iced::daemon::program::graphics::compositor::Information">Information</a></h4></section></summary><div class="docblock"><p>Returns <a href="compositor/struct.Information.html" title="struct cosmic::iced::daemon::program::graphics::compositor::Information"><code>Information</code></a> used by this <a href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor"><code>Compositor</code></a>.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.present" class="method"><h4 class="code-header">fn <a href="#tymethod.present" class="fn">present</a>(
|
|
&mut self,
|
|
renderer: &mut Self::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
|
|
surface: &mut Self::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
|
|
viewport: &<a class="struct" href="struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
|
|
background_color: <a class="struct" href="../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
|
|
on_pre_present: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="compositor/enum.SurfaceError.html" title="enum cosmic::iced::daemon::program::graphics::compositor::SurfaceError">SurfaceError</a>></h4></section></summary><div class="docblock"><p>Presents the <a href="trait.Compositor.html#associatedtype.Renderer" title="associated type iced_graphics::compositor::Compositor::Renderer::Renderer"><code>Renderer</code></a> primitives to the next frame of the given <a href="trait.Compositor.html#associatedtype.Surface" title="associated type iced_graphics::compositor::Compositor::Surface::Surface"><code>Surface</code></a>.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="tymethod.screenshot" class="method"><h4 class="code-header">fn <a href="#tymethod.screenshot" class="fn">screenshot</a>(
|
|
&mut self,
|
|
renderer: &mut Self::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
|
|
viewport: &<a class="struct" href="struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
|
|
background_color: <a class="struct" href="../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
|
|
) -> <a class="struct" href="../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>> <a href="#" class="tooltip" data-notable-ty="Vec<u8>">ⓘ</a></h4></section></summary><div class="docblock"><p>Screenshots the current <a href="trait.Compositor.html#associatedtype.Renderer" title="associated type iced_graphics::compositor::Compositor::Renderer::Renderer"><code>Renderer</code></a> primitives to an offscreen texture, and returns the bytes of
|
|
the texture ordered as <code>RGBA</code> in the <code>sRGB</code> color space.</p>
|
|
</div></details></div><h2 id="provided-methods" class="section-header">Provided Methods<a href="#provided-methods" class="anchor">§</a></h2><div class="methods"><details class="toggle method-toggle" open><summary><section id="method.new" class="method"><h4 class="code-header">fn <a href="#method.new" class="fn">new</a>(
|
|
settings: <a class="struct" href="struct.Settings.html" title="struct cosmic::iced::daemon::program::graphics::Settings">Settings</a>,
|
|
display: impl <a class="trait" href="compositor/trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
|
compatible_window: impl <a class="trait" href="compositor/trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
|
shell: <a class="struct" href="struct.Shell.html" title="struct cosmic::iced::daemon::program::graphics::Shell">Shell</a>,
|
|
) -> impl <a class="trait" href="futures/futures/trait.Future.html" title="trait cosmic::iced::daemon::program::graphics::futures::futures::Future">Future</a><Output = <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Self, <a class="enum" href="enum.Error.html" title="enum cosmic::iced::daemon::program::graphics::Error">Error</a>>></h4></section></summary><div class="docblock"><p>Creates a new <a href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor"><code>Compositor</code></a>.</p>
|
|
</div></details><details class="toggle method-toggle" open><summary><section id="method.load_font" class="method"><h4 class="code-header">fn <a href="#method.load_font" class="fn">load_font</a>(&mut self, font: <a class="enum" href="../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'static, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>)</h4></section></summary><div class="docblock"><p>Loads a font from its bytes.</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="foreign-impls" class="section-header">Implementations on Foreign Types<a href="#foreign-impls" class="anchor">§</a></h2><details class="toggle implementors-toggle"><summary><section id="impl-Compositor-for-()" class="impl"><a href="#impl-Compositor-for-()" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a> for <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h3></section></summary><div class="impl-items"><section id="associatedtype.Renderer-1" class="associatedtype trait-impl"><a href="#associatedtype.Renderer-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Renderer" class="associatedtype">Renderer</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="associatedtype.Surface-1" class="associatedtype trait-impl"><a href="#associatedtype.Surface-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Surface" class="associatedtype">Surface</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="method.with_backend" class="method trait-impl"><a href="#method.with_backend" class="anchor">§</a><h4 class="code-header">async fn <a href="#tymethod.with_backend" class="fn">with_backend</a>(
|
|
_settings: <a class="struct" href="struct.Settings.html" title="struct cosmic::iced::daemon::program::graphics::Settings">Settings</a>,
|
|
_display: impl <a class="trait" href="compositor/trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a>,
|
|
_compatible_window: impl <a class="trait" href="compositor/trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
|
_shell: <a class="struct" href="struct.Shell.html" title="struct cosmic::iced::daemon::program::graphics::Shell">Shell</a>,
|
|
_preferred_backend: <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>>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="enum.Error.html" title="enum cosmic::iced::daemon::program::graphics::Error">Error</a>></h4></section><section id="method.create_renderer" class="method trait-impl"><a href="#method.create_renderer" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.create_renderer" class="fn">create_renderer</a>(&self) -> <<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a></h4></section><section id="method.create_surface" class="method trait-impl"><a href="#method.create_surface" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.create_surface" class="fn">create_surface</a><W>(
|
|
&mut self,
|
|
_window: W,
|
|
_width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
_height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
) -> <<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a><div class="where">where
|
|
W: <a class="trait" href="compositor/trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section><section id="method.configure_surface" class="method trait-impl"><a href="#method.configure_surface" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.configure_surface" class="fn">configure_surface</a>(
|
|
&mut self,
|
|
_surface: &mut <<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
|
|
_width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
_height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
)</h4></section><section id="method.load_font-1" class="method trait-impl"><a href="#method.load_font-1" class="anchor">§</a><h4 class="code-header">fn <a href="#method.load_font" class="fn">load_font</a>(&mut self, _font: <a class="enum" href="../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'static, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>)</h4></section><section id="method.information" class="method trait-impl"><a href="#method.information" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.information" class="fn">information</a>(&self) -> <a class="struct" href="compositor/struct.Information.html" title="struct cosmic::iced::daemon::program::graphics::compositor::Information">Information</a></h4></section><section id="method.present" class="method trait-impl"><a href="#method.present" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.present" class="fn">present</a>(
|
|
&mut self,
|
|
_renderer: &mut <<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
|
|
_surface: &mut <<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
|
|
_viewport: &<a class="struct" href="struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
|
|
_background_color: <a class="struct" href="../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
|
|
_on_pre_present: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="compositor/enum.SurfaceError.html" title="enum cosmic::iced::daemon::program::graphics::compositor::SurfaceError">SurfaceError</a>></h4></section><section id="method.screenshot" class="method trait-impl"><a href="#method.screenshot" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.screenshot" class="fn">screenshot</a>(
|
|
&mut self,
|
|
_renderer: &mut <<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
|
|
_viewport: &<a class="struct" href="struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
|
|
_background_color: <a class="struct" href="../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
|
|
) -> <a class="struct" href="../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>> <a href="#" class="tooltip" data-notable-ty="Vec<u8>">ⓘ</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Compositor-for-Compositor" class="impl"><a href="#impl-Compositor-for-Compositor" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a> for Compositor</h3></section></summary><div class="impl-items"><section id="associatedtype.Renderer-2" class="associatedtype trait-impl"><a href="#associatedtype.Renderer-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Renderer" class="associatedtype">Renderer</a> = Renderer</h4></section><section id="associatedtype.Surface-2" class="associatedtype trait-impl"><a href="#associatedtype.Surface-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Surface" class="associatedtype">Surface</a> = Surface</h4></section><section id="method.with_backend-1" class="method trait-impl"><a href="#method.with_backend-1" class="anchor">§</a><h4 class="code-header">async fn <a href="#tymethod.with_backend" class="fn">with_backend</a>(
|
|
settings: <a class="struct" href="struct.Settings.html" title="struct cosmic::iced::daemon::program::graphics::Settings">Settings</a>,
|
|
display: impl <a class="trait" href="compositor/trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a>,
|
|
_compatible_window: impl <a class="trait" href="compositor/trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a>,
|
|
_shell: <a class="struct" href="struct.Shell.html" title="struct cosmic::iced::daemon::program::graphics::Shell">Shell</a>,
|
|
backend: <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>>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Compositor, <a class="enum" href="enum.Error.html" title="enum cosmic::iced::daemon::program::graphics::Error">Error</a>></h4></section><section id="method.create_renderer-1" class="method trait-impl"><a href="#method.create_renderer-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.create_renderer" class="fn">create_renderer</a>(&self) -> <Compositor as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a></h4></section><section id="method.create_surface-1" class="method trait-impl"><a href="#method.create_surface-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.create_surface" class="fn">create_surface</a><W>(
|
|
&mut self,
|
|
window: W,
|
|
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
) -> <Compositor as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a><div class="where">where
|
|
W: <a class="trait" href="compositor/trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section><section id="method.configure_surface-1" class="method trait-impl"><a href="#method.configure_surface-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.configure_surface" class="fn">configure_surface</a>(
|
|
&mut self,
|
|
surface: &mut <Compositor as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
|
|
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
)</h4></section><section id="method.information-1" class="method trait-impl"><a href="#method.information-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.information" class="fn">information</a>(&self) -> <a class="struct" href="compositor/struct.Information.html" title="struct cosmic::iced::daemon::program::graphics::compositor::Information">Information</a></h4></section><section id="method.present-1" class="method trait-impl"><a href="#method.present-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.present" class="fn">present</a>(
|
|
&mut self,
|
|
renderer: &mut <Compositor as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
|
|
surface: &mut <Compositor as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
|
|
viewport: &<a class="struct" href="struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
|
|
background_color: <a class="struct" href="../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
|
|
on_pre_present: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="compositor/enum.SurfaceError.html" title="enum cosmic::iced::daemon::program::graphics::compositor::SurfaceError">SurfaceError</a>></h4></section><section id="method.screenshot-1" class="method trait-impl"><a href="#method.screenshot-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.screenshot" class="fn">screenshot</a>(
|
|
&mut self,
|
|
renderer: &mut <Compositor as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
|
|
viewport: &<a class="struct" href="struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
|
|
background_color: <a class="struct" href="../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
|
|
) -> <a class="struct" href="../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>> <a href="#" class="tooltip" data-notable-ty="Vec<u8>">ⓘ</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Compositor-for-Compositor%3CA,+B%3E" class="impl"><a href="#impl-Compositor-for-Compositor%3CA,+B%3E" class="anchor">§</a><h3 class="code-header">impl<A, B> <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a> for Compositor<A, B><div class="where">where
|
|
A: <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>,
|
|
B: <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>,</div></h3></section></summary><div class="impl-items"><section id="associatedtype.Renderer-3" class="associatedtype trait-impl"><a href="#associatedtype.Renderer-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Renderer" class="associatedtype">Renderer</a> = Renderer<<A as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>, <B as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>></h4></section><section id="associatedtype.Surface-3" class="associatedtype trait-impl"><a href="#associatedtype.Surface-3" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Surface" class="associatedtype">Surface</a> = Surface<<A as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>, <B as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>></h4></section><section id="method.with_backend-2" class="method trait-impl"><a href="#method.with_backend-2" class="anchor">§</a><h4 class="code-header">async fn <a href="#tymethod.with_backend" class="fn">with_backend</a>(
|
|
settings: <a class="struct" href="struct.Settings.html" title="struct cosmic::iced::daemon::program::graphics::Settings">Settings</a>,
|
|
display: impl <a class="trait" href="compositor/trait.Display.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Display">Display</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
|
compatible_window: impl <a class="trait" href="compositor/trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,
|
|
shell: <a class="struct" href="struct.Shell.html" title="struct cosmic::iced::daemon::program::graphics::Shell">Shell</a>,
|
|
backend: <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>>,
|
|
) -> <a class="enum" href="https://doc.rust-lang.org/nightly/core/result/enum.Result.html" title="enum core::result::Result">Result</a><Compositor<A, B>, <a class="enum" href="enum.Error.html" title="enum cosmic::iced::daemon::program::graphics::Error">Error</a>></h4></section><section id="method.create_renderer-2" class="method trait-impl"><a href="#method.create_renderer-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.create_renderer" class="fn">create_renderer</a>(&self) -> <Compositor<A, B> as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a></h4></section><section id="method.create_surface-2" class="method trait-impl"><a href="#method.create_surface-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.create_surface" class="fn">create_surface</a><W>(
|
|
&mut self,
|
|
window: W,
|
|
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
) -> <Compositor<A, B> as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a><div class="where">where
|
|
W: <a class="trait" href="compositor/trait.Window.html" title="trait cosmic::iced::daemon::program::graphics::compositor::Window">Window</a> + <a class="trait" href="https://doc.rust-lang.org/nightly/core/clone/trait.Clone.html" title="trait core::clone::Clone">Clone</a>,</div></h4></section><section id="method.configure_surface-2" class="method trait-impl"><a href="#method.configure_surface-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.configure_surface" class="fn">configure_surface</a>(
|
|
&mut self,
|
|
surface: &mut <Compositor<A, B> as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
|
|
width: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
height: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u32.html">u32</a>,
|
|
)</h4></section><section id="method.load_font-2" class="method trait-impl"><a href="#method.load_font-2" class="anchor">§</a><h4 class="code-header">fn <a href="#method.load_font" class="fn">load_font</a>(&mut self, font: <a class="enum" href="../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/borrow/enum.Cow.html" title="enum cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::borrow::Cow">Cow</a><'static, [<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>]>)</h4></section><section id="method.information-2" class="method trait-impl"><a href="#method.information-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.information" class="fn">information</a>(&self) -> <a class="struct" href="compositor/struct.Information.html" title="struct cosmic::iced::daemon::program::graphics::compositor::Information">Information</a></h4></section><section id="method.present-2" class="method trait-impl"><a href="#method.present-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.present" class="fn">present</a>(
|
|
&mut self,
|
|
renderer: &mut <Compositor<A, B> as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
|
|
surface: &mut <Compositor<A, B> as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Surface" title="type cosmic::iced::daemon::program::graphics::Compositor::Surface">Surface</a>,
|
|
viewport: &<a class="struct" href="struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
|
|
background_color: <a class="struct" href="../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
|
|
on_pre_present: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/ops/function/trait.FnOnce.html" title="trait core::ops::function::FnOnce">FnOnce</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="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>, <a class="enum" href="compositor/enum.SurfaceError.html" title="enum cosmic::iced::daemon::program::graphics::compositor::SurfaceError">SurfaceError</a>></h4></section><section id="method.screenshot-2" class="method trait-impl"><a href="#method.screenshot-2" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.screenshot" class="fn">screenshot</a>(
|
|
&mut self,
|
|
renderer: &mut <Compositor<A, B> as <a class="trait" href="trait.Compositor.html" title="trait cosmic::iced::daemon::program::graphics::Compositor">Compositor</a>>::<a class="associatedtype" href="trait.Compositor.html#associatedtype.Renderer" title="type cosmic::iced::daemon::program::graphics::Compositor::Renderer">Renderer</a>,
|
|
viewport: &<a class="struct" href="struct.Viewport.html" title="struct cosmic::iced::daemon::program::graphics::Viewport">Viewport</a>,
|
|
background_color: <a class="struct" href="../../../struct.Color.html" title="struct cosmic::iced::Color">Color</a>,
|
|
) -> <a class="struct" href="../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html" title="struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec">Vec</a><<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.u8.html">u8</a>> <a href="#" class="tooltip" data-notable-ty="Vec<u8>">ⓘ</a></h4></section></div></details><h2 id="implementors" class="section-header">Implementors<a href="#implementors" class="anchor">§</a></h2><div id="implementors-list"></div><script src="../../../../../trait.impl/iced_graphics/compositor/trait.Compositor.js" data-ignore-extern-crates="iced_renderer,std,iced_tiny_skia" async></script><script type="text/json" id="notable-traits-data">{"Vec<u8>":"<h3>Notable traits for <code><a class=\"struct\" href=\"../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html\" title=\"struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec\">Vec</a><<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.u8.html\">u8</a>, A></code></h3><pre><code><div class=\"where\">impl<A> <a class=\"trait\" href=\"https://doc.rust-lang.org/nightly/std/io/trait.Write.html\" title=\"trait std::io::Write\">Write</a> for <a class=\"struct\" href=\"../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/vec/struct.Vec.html\" title=\"struct cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::vec::Vec\">Vec</a><<a class=\"primitive\" href=\"https://doc.rust-lang.org/nightly/std/primitive.u8.html\">u8</a>, A><div class=\"where\">where\n A: <a class=\"trait\" href=\"../../../../cctk/sctk/reexports/client/backend/smallvec/alloc/alloc/trait.Allocator.html\" title=\"trait cosmic::cctk::sctk::reexports::client::backend::smallvec::alloc::alloc::Allocator\">Allocator</a>,</div></div>"}</script></section></div></main></body></html> |