libcosmic/cosmic/iced/daemon/program/graphics/geometry/frame/trait.Backend.html
2026-04-18 20:11:25 +00:00

75 lines
No EOL
44 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="The internal implementation of a `Frame`."><title>Backend in cosmic::iced::daemon::program::graphics::geometry::frame - 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="#">Backend</a></h2><h3><a href="#required-associated-types">Required Associated Types</a></h3><ul class="block"><li><a href="#associatedtype.Geometry" title="Geometry">Geometry</a></li></ul><h3><a href="#required-methods">Required Methods</a></h3><ul class="block"><li><a href="#tymethod.center" title="center">center</a></li><li><a href="#tymethod.draft" title="draft">draft</a></li><li><a href="#tymethod.draw_image" title="draw_image">draw_image</a></li><li><a href="#tymethod.draw_svg" title="draw_svg">draw_svg</a></li><li><a href="#tymethod.fill" title="fill">fill</a></li><li><a href="#tymethod.fill_rectangle" title="fill_rectangle">fill_rectangle</a></li><li><a href="#tymethod.fill_text" title="fill_text">fill_text</a></li><li><a href="#tymethod.height" title="height">height</a></li><li><a href="#tymethod.into_geometry" title="into_geometry">into_geometry</a></li><li><a href="#tymethod.paste" title="paste">paste</a></li><li><a href="#tymethod.pop_transform" title="pop_transform">pop_transform</a></li><li><a href="#tymethod.push_transform" title="push_transform">push_transform</a></li><li><a href="#tymethod.rotate" title="rotate">rotate</a></li><li><a href="#tymethod.scale" title="scale">scale</a></li><li><a href="#tymethod.scale_nonuniform" title="scale_nonuniform">scale_nonuniform</a></li><li><a href="#tymethod.size" title="size">size</a></li><li><a href="#tymethod.stroke" title="stroke">stroke</a></li><li><a href="#tymethod.stroke_rectangle" title="stroke_rectangle">stroke_rectangle</a></li><li><a href="#tymethod.stroke_text" title="stroke_text">stroke_text</a></li><li><a href="#tymethod.translate" title="translate">translate</a></li><li><a href="#tymethod.width" title="width">width</a></li></ul><h3><a href="#foreign-impls">Implementations on Foreign Types</a></h3><ul class="block"><li><a href="#impl-Backend-for-()" title="()">()</a></li><li><a href="#impl-Backend-for-Frame" title="Frame">Frame</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::<wbr>geometry::<wbr>frame</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>::<wbr><a href="../index.html">geometry</a>::<wbr><a href="index.html">frame</a></div><h1>Trait <span class="trait">Backend</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 Backend: <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.Geometry" class="associatedtype">Geometry</a>;
<details class="toggle type-contents-toggle"><summary class="hideme"><span>Show 21 methods</span></summary> // Required methods
fn <a href="#tymethod.width" class="fn">width</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.height" class="fn">height</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.size" class="fn">size</a>(&amp;self) -&gt; <a class="struct" href="../../../../../struct.Size.html" title="struct cosmic::iced::Size">Size</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.center" class="fn">center</a>(&amp;self) -&gt; <a class="struct" href="../../../../../struct.Point.html" title="struct cosmic::iced::Point">Point</a>;
<span class="item-spacer"></span> fn <a href="#tymethod.push_transform" class="fn">push_transform</a>(&amp;mut self);
<span class="item-spacer"></span> fn <a href="#tymethod.pop_transform" class="fn">pop_transform</a>(&amp;mut self);
<span class="item-spacer"></span> fn <a href="#tymethod.translate" class="fn">translate</a>(&amp;mut self, translation: <a class="struct" href="../../../../../struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a>);
<span class="item-spacer"></span> fn <a href="#tymethod.rotate" class="fn">rotate</a>(&amp;mut self, angle: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Radians.html" title="struct cosmic::iced::Radians">Radians</a>&gt;);
<span class="item-spacer"></span> fn <a href="#tymethod.scale" class="fn">scale</a>(&amp;mut self, scale: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;);
<span class="item-spacer"></span> fn <a href="#tymethod.scale_nonuniform" class="fn">scale_nonuniform</a>(&amp;mut self, scale: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a>&gt;);
<span class="item-spacer"></span> fn <a href="#tymethod.draft" class="fn">draft</a>(&amp;mut self, clip_bounds: <a class="struct" href="../../../../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>) -&gt; Self;
<span class="item-spacer"></span> fn <a href="#tymethod.paste" class="fn">paste</a>(&amp;mut self, frame: Self);
<span class="item-spacer"></span> fn <a href="#tymethod.stroke" class="fn">stroke</a>&lt;'a&gt;(&amp;mut self, path: &amp;<a class="struct" href="../../../../../../widget/canvas/struct.Path.html" title="struct cosmic::widget::canvas::Path">Path</a>, stroke: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Stroke.html" title="struct cosmic::widget::canvas::Stroke">Stroke</a>&lt;'a&gt;&gt;);
<span class="item-spacer"></span> fn <a href="#tymethod.stroke_rectangle" class="fn">stroke_rectangle</a>&lt;'a&gt;(
&amp;mut self,
top_left: <a class="struct" href="../../../../../struct.Point.html" title="struct cosmic::iced::Point">Point</a>,
size: <a class="struct" href="../../../../../struct.Size.html" title="struct cosmic::iced::Size">Size</a>,
stroke: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Stroke.html" title="struct cosmic::widget::canvas::Stroke">Stroke</a>&lt;'a&gt;&gt;,
);
<span class="item-spacer"></span> fn <a href="#tymethod.stroke_text" class="fn">stroke_text</a>&lt;'a&gt;(
&amp;mut self,
text: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Text.html" title="struct cosmic::widget::canvas::Text">Text</a>&gt;,
stroke: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Stroke.html" title="struct cosmic::widget::canvas::Stroke">Stroke</a>&lt;'a&gt;&gt;,
);
<span class="item-spacer"></span> fn <a href="#tymethod.fill" class="fn">fill</a>(&amp;mut self, path: &amp;<a class="struct" href="../../../../../../widget/canvas/struct.Path.html" title="struct cosmic::widget::canvas::Path">Path</a>, fill: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Fill.html" title="struct cosmic::widget::canvas::Fill">Fill</a>&gt;);
<span class="item-spacer"></span> fn <a href="#tymethod.fill_text" class="fn">fill_text</a>(&amp;mut self, text: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Text.html" title="struct cosmic::widget::canvas::Text">Text</a>&gt;);
<span class="item-spacer"></span> fn <a href="#tymethod.fill_rectangle" class="fn">fill_rectangle</a>(
&amp;mut self,
top_left: <a class="struct" href="../../../../../struct.Point.html" title="struct cosmic::iced::Point">Point</a>,
size: <a class="struct" href="../../../../../struct.Size.html" title="struct cosmic::iced::Size">Size</a>,
fill: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Fill.html" title="struct cosmic::widget::canvas::Fill">Fill</a>&gt;,
);
<span class="item-spacer"></span> fn <a href="#tymethod.draw_image" class="fn">draw_image</a>(&amp;mut self, bounds: <a class="struct" href="../../../../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>, image: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Image.html" title="struct cosmic::widget::canvas::Image">Image</a>&gt;);
<span class="item-spacer"></span> fn <a href="#tymethod.draw_svg" class="fn">draw_svg</a>(&amp;mut self, bounds: <a class="struct" href="../../../../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>, svg: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../struct.Svg.html" title="struct cosmic::iced::daemon::program::graphics::geometry::Svg">Svg</a>&gt;);
<span class="item-spacer"></span> fn <a href="#tymethod.into_geometry" class="fn">into_geometry</a>(self) -&gt; Self::<a class="associatedtype" href="trait.Backend.html#associatedtype.Geometry" title="type cosmic::iced::daemon::program::graphics::geometry::frame::Backend::Geometry">Geometry</a>;
</details>}</code></pre><details class="toggle top-doc" open><summary class="hideme"><span>Expand description</span></summary><div class="docblock"><p>The internal implementation of a <a href="../struct.Frame.html" title="struct cosmic::iced::daemon::program::graphics::geometry::Frame"><code>Frame</code></a>.</p>
<p>Analogous to <a href="../struct.Frame.html" title="struct cosmic::iced::daemon::program::graphics::geometry::Frame"><code>Frame</code></a>. See <a href="../struct.Frame.html" title="struct cosmic::iced::daemon::program::graphics::geometry::Frame"><code>Frame</code></a> for the documentation
of each method.</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"><section id="associatedtype.Geometry" class="method"><h4 class="code-header">type <a href="#associatedtype.Geometry" class="associatedtype">Geometry</a></h4></section></div><h2 id="required-methods" class="section-header">Required Methods<a href="#required-methods" class="anchor">§</a></h2><div class="methods"><section id="tymethod.width" class="method"><h4 class="code-header">fn <a href="#tymethod.width" class="fn">width</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section><section id="tymethod.height" class="method"><h4 class="code-header">fn <a href="#tymethod.height" class="fn">height</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section><section id="tymethod.size" class="method"><h4 class="code-header">fn <a href="#tymethod.size" class="fn">size</a>(&amp;self) -&gt; <a class="struct" href="../../../../../struct.Size.html" title="struct cosmic::iced::Size">Size</a></h4></section><section id="tymethod.center" class="method"><h4 class="code-header">fn <a href="#tymethod.center" class="fn">center</a>(&amp;self) -&gt; <a class="struct" href="../../../../../struct.Point.html" title="struct cosmic::iced::Point">Point</a></h4></section><section id="tymethod.push_transform" class="method"><h4 class="code-header">fn <a href="#tymethod.push_transform" class="fn">push_transform</a>(&amp;mut self)</h4></section><section id="tymethod.pop_transform" class="method"><h4 class="code-header">fn <a href="#tymethod.pop_transform" class="fn">pop_transform</a>(&amp;mut self)</h4></section><section id="tymethod.translate" class="method"><h4 class="code-header">fn <a href="#tymethod.translate" class="fn">translate</a>(&amp;mut self, translation: <a class="struct" href="../../../../../struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a>)</h4></section><section id="tymethod.rotate" class="method"><h4 class="code-header">fn <a href="#tymethod.rotate" class="fn">rotate</a>(&amp;mut self, angle: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Radians.html" title="struct cosmic::iced::Radians">Radians</a>&gt;)</h4></section><section id="tymethod.scale" class="method"><h4 class="code-header">fn <a href="#tymethod.scale" class="fn">scale</a>(&amp;mut self, scale: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;)</h4></section><section id="tymethod.scale_nonuniform" class="method"><h4 class="code-header">fn <a href="#tymethod.scale_nonuniform" class="fn">scale_nonuniform</a>(&amp;mut self, scale: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a>&gt;)</h4></section><section id="tymethod.draft" class="method"><h4 class="code-header">fn <a href="#tymethod.draft" class="fn">draft</a>(&amp;mut self, clip_bounds: <a class="struct" href="../../../../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>) -&gt; Self</h4></section><section id="tymethod.paste" class="method"><h4 class="code-header">fn <a href="#tymethod.paste" class="fn">paste</a>(&amp;mut self, frame: Self)</h4></section><section id="tymethod.stroke" class="method"><h4 class="code-header">fn <a href="#tymethod.stroke" class="fn">stroke</a>&lt;'a&gt;(&amp;mut self, path: &amp;<a class="struct" href="../../../../../../widget/canvas/struct.Path.html" title="struct cosmic::widget::canvas::Path">Path</a>, stroke: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Stroke.html" title="struct cosmic::widget::canvas::Stroke">Stroke</a>&lt;'a&gt;&gt;)</h4></section><section id="tymethod.stroke_rectangle" class="method"><h4 class="code-header">fn <a href="#tymethod.stroke_rectangle" class="fn">stroke_rectangle</a>&lt;'a&gt;(
&amp;mut self,
top_left: <a class="struct" href="../../../../../struct.Point.html" title="struct cosmic::iced::Point">Point</a>,
size: <a class="struct" href="../../../../../struct.Size.html" title="struct cosmic::iced::Size">Size</a>,
stroke: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Stroke.html" title="struct cosmic::widget::canvas::Stroke">Stroke</a>&lt;'a&gt;&gt;,
)</h4></section><section id="tymethod.stroke_text" class="method"><h4 class="code-header">fn <a href="#tymethod.stroke_text" class="fn">stroke_text</a>&lt;'a&gt;(
&amp;mut self,
text: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Text.html" title="struct cosmic::widget::canvas::Text">Text</a>&gt;,
stroke: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Stroke.html" title="struct cosmic::widget::canvas::Stroke">Stroke</a>&lt;'a&gt;&gt;,
)</h4></section><section id="tymethod.fill" class="method"><h4 class="code-header">fn <a href="#tymethod.fill" class="fn">fill</a>(&amp;mut self, path: &amp;<a class="struct" href="../../../../../../widget/canvas/struct.Path.html" title="struct cosmic::widget::canvas::Path">Path</a>, fill: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Fill.html" title="struct cosmic::widget::canvas::Fill">Fill</a>&gt;)</h4></section><section id="tymethod.fill_text" class="method"><h4 class="code-header">fn <a href="#tymethod.fill_text" class="fn">fill_text</a>(&amp;mut self, text: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Text.html" title="struct cosmic::widget::canvas::Text">Text</a>&gt;)</h4></section><section id="tymethod.fill_rectangle" class="method"><h4 class="code-header">fn <a href="#tymethod.fill_rectangle" class="fn">fill_rectangle</a>(&amp;mut self, top_left: <a class="struct" href="../../../../../struct.Point.html" title="struct cosmic::iced::Point">Point</a>, size: <a class="struct" href="../../../../../struct.Size.html" title="struct cosmic::iced::Size">Size</a>, fill: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Fill.html" title="struct cosmic::widget::canvas::Fill">Fill</a>&gt;)</h4></section><section id="tymethod.draw_image" class="method"><h4 class="code-header">fn <a href="#tymethod.draw_image" class="fn">draw_image</a>(&amp;mut self, bounds: <a class="struct" href="../../../../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>, image: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Image.html" title="struct cosmic::widget::canvas::Image">Image</a>&gt;)</h4></section><section id="tymethod.draw_svg" class="method"><h4 class="code-header">fn <a href="#tymethod.draw_svg" class="fn">draw_svg</a>(&amp;mut self, bounds: <a class="struct" href="../../../../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>, svg: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../struct.Svg.html" title="struct cosmic::iced::daemon::program::graphics::geometry::Svg">Svg</a>&gt;)</h4></section><section id="tymethod.into_geometry" class="method"><h4 class="code-header">fn <a href="#tymethod.into_geometry" class="fn">into_geometry</a>(self) -&gt; Self::<a class="associatedtype" href="trait.Backend.html#associatedtype.Geometry" title="type cosmic::iced::daemon::program::graphics::geometry::frame::Backend::Geometry">Geometry</a></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="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-Backend-for-()" class="impl"><a href="#impl-Backend-for-()" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Backend.html" title="trait cosmic::iced::daemon::program::graphics::geometry::frame::Backend">Backend</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.Geometry-1" class="associatedtype trait-impl"><a href="#associatedtype.Geometry-1" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Geometry" class="associatedtype">Geometry</a> = <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a></h4></section><section id="method.width" class="method trait-impl"><a href="#method.width" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.width" class="fn">width</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section><section id="method.height" class="method trait-impl"><a href="#method.height" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.height" class="fn">height</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section><section id="method.size" class="method trait-impl"><a href="#method.size" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.size" class="fn">size</a>(&amp;self) -&gt; <a class="struct" href="../../../../../struct.Size.html" title="struct cosmic::iced::Size">Size</a></h4></section><section id="method.center" class="method trait-impl"><a href="#method.center" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.center" class="fn">center</a>(&amp;self) -&gt; <a class="struct" href="../../../../../struct.Point.html" title="struct cosmic::iced::Point">Point</a></h4></section><section id="method.push_transform" class="method trait-impl"><a href="#method.push_transform" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.push_transform" class="fn">push_transform</a>(&amp;mut self)</h4></section><section id="method.pop_transform" class="method trait-impl"><a href="#method.pop_transform" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.pop_transform" class="fn">pop_transform</a>(&amp;mut self)</h4></section><section id="method.translate" class="method trait-impl"><a href="#method.translate" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.translate" class="fn">translate</a>(&amp;mut self, _translation: <a class="struct" href="../../../../../struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a>)</h4></section><section id="method.rotate" class="method trait-impl"><a href="#method.rotate" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.rotate" class="fn">rotate</a>(&amp;mut self, _angle: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Radians.html" title="struct cosmic::iced::Radians">Radians</a>&gt;)</h4></section><section id="method.scale" class="method trait-impl"><a href="#method.scale" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.scale" class="fn">scale</a>(&amp;mut self, _scale: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;)</h4></section><section id="method.scale_nonuniform" class="method trait-impl"><a href="#method.scale_nonuniform" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.scale_nonuniform" class="fn">scale_nonuniform</a>(&amp;mut self, _scale: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a>&gt;)</h4></section><section id="method.draft" class="method trait-impl"><a href="#method.draft" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.draft" class="fn">draft</a>(&amp;mut self, _clip_bounds: <a class="struct" href="../../../../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>)</h4></section><section id="method.paste" class="method trait-impl"><a href="#method.paste" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.paste" class="fn">paste</a>(&amp;mut self, _frame: <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a>)</h4></section><section id="method.stroke" class="method trait-impl"><a href="#method.stroke" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.stroke" class="fn">stroke</a>&lt;'a&gt;(&amp;mut self, _path: &amp;<a class="struct" href="../../../../../../widget/canvas/struct.Path.html" title="struct cosmic::widget::canvas::Path">Path</a>, _stroke: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Stroke.html" title="struct cosmic::widget::canvas::Stroke">Stroke</a>&lt;'a&gt;&gt;)</h4></section><section id="method.stroke_rectangle" class="method trait-impl"><a href="#method.stroke_rectangle" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.stroke_rectangle" class="fn">stroke_rectangle</a>&lt;'a&gt;(
&amp;mut self,
_top_left: <a class="struct" href="../../../../../struct.Point.html" title="struct cosmic::iced::Point">Point</a>,
_size: <a class="struct" href="../../../../../struct.Size.html" title="struct cosmic::iced::Size">Size</a>,
_stroke: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Stroke.html" title="struct cosmic::widget::canvas::Stroke">Stroke</a>&lt;'a&gt;&gt;,
)</h4></section><section id="method.stroke_text" class="method trait-impl"><a href="#method.stroke_text" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.stroke_text" class="fn">stroke_text</a>&lt;'a&gt;(
&amp;mut self,
_text: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Text.html" title="struct cosmic::widget::canvas::Text">Text</a>&gt;,
_stroke: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Stroke.html" title="struct cosmic::widget::canvas::Stroke">Stroke</a>&lt;'a&gt;&gt;,
)</h4></section><section id="method.fill" class="method trait-impl"><a href="#method.fill" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.fill" class="fn">fill</a>(&amp;mut self, _path: &amp;<a class="struct" href="../../../../../../widget/canvas/struct.Path.html" title="struct cosmic::widget::canvas::Path">Path</a>, _fill: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Fill.html" title="struct cosmic::widget::canvas::Fill">Fill</a>&gt;)</h4></section><section id="method.fill_text" class="method trait-impl"><a href="#method.fill_text" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.fill_text" class="fn">fill_text</a>(&amp;mut self, _text: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Text.html" title="struct cosmic::widget::canvas::Text">Text</a>&gt;)</h4></section><section id="method.fill_rectangle" class="method trait-impl"><a href="#method.fill_rectangle" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.fill_rectangle" class="fn">fill_rectangle</a>(
&amp;mut self,
_top_left: <a class="struct" href="../../../../../struct.Point.html" title="struct cosmic::iced::Point">Point</a>,
_size: <a class="struct" href="../../../../../struct.Size.html" title="struct cosmic::iced::Size">Size</a>,
_fill: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Fill.html" title="struct cosmic::widget::canvas::Fill">Fill</a>&gt;,
)</h4></section><section id="method.draw_image" class="method trait-impl"><a href="#method.draw_image" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.draw_image" class="fn">draw_image</a>(&amp;mut self, _bounds: <a class="struct" href="../../../../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>, _image: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Image.html" title="struct cosmic::widget::canvas::Image">Image</a>&gt;)</h4></section><section id="method.draw_svg" class="method trait-impl"><a href="#method.draw_svg" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.draw_svg" class="fn">draw_svg</a>(&amp;mut self, _bounds: <a class="struct" href="../../../../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>, _svg: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../struct.Svg.html" title="struct cosmic::iced::daemon::program::graphics::geometry::Svg">Svg</a>&gt;)</h4></section><section id="method.into_geometry" class="method trait-impl"><a href="#method.into_geometry" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.into_geometry" class="fn">into_geometry</a>(self) -&gt; &lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.unit.html">()</a> as <a class="trait" href="trait.Backend.html" title="trait cosmic::iced::daemon::program::graphics::geometry::frame::Backend">Backend</a>&gt;::<a class="associatedtype" href="trait.Backend.html#associatedtype.Geometry" title="type cosmic::iced::daemon::program::graphics::geometry::frame::Backend::Geometry">Geometry</a></h4></section></div></details><details class="toggle implementors-toggle"><summary><section id="impl-Backend-for-Frame" class="impl"><a href="#impl-Backend-for-Frame" class="anchor">§</a><h3 class="code-header">impl <a class="trait" href="trait.Backend.html" title="trait cosmic::iced::daemon::program::graphics::geometry::frame::Backend">Backend</a> for Frame</h3></section></summary><div class="impl-items"><section id="associatedtype.Geometry-2" class="associatedtype trait-impl"><a href="#associatedtype.Geometry-2" class="anchor">§</a><h4 class="code-header">type <a href="#associatedtype.Geometry" class="associatedtype">Geometry</a> = Geometry</h4></section><section id="method.width-1" class="method trait-impl"><a href="#method.width-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.width" class="fn">width</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section><section id="method.height-1" class="method trait-impl"><a href="#method.height-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.height" class="fn">height</a>(&amp;self) -&gt; <a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a></h4></section><section id="method.size-1" class="method trait-impl"><a href="#method.size-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.size" class="fn">size</a>(&amp;self) -&gt; <a class="struct" href="../../../../../struct.Size.html" title="struct cosmic::iced::Size">Size</a></h4></section><section id="method.center-1" class="method trait-impl"><a href="#method.center-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.center" class="fn">center</a>(&amp;self) -&gt; <a class="struct" href="../../../../../struct.Point.html" title="struct cosmic::iced::Point">Point</a></h4></section><section id="method.fill-1" class="method trait-impl"><a href="#method.fill-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.fill" class="fn">fill</a>(&amp;mut self, path: &amp;<a class="struct" href="../../../../../../widget/canvas/struct.Path.html" title="struct cosmic::widget::canvas::Path">Path</a>, fill: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Fill.html" title="struct cosmic::widget::canvas::Fill">Fill</a>&gt;)</h4></section><section id="method.fill_rectangle-1" class="method trait-impl"><a href="#method.fill_rectangle-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.fill_rectangle" class="fn">fill_rectangle</a>(&amp;mut self, top_left: <a class="struct" href="../../../../../struct.Point.html" title="struct cosmic::iced::Point">Point</a>, size: <a class="struct" href="../../../../../struct.Size.html" title="struct cosmic::iced::Size">Size</a>, fill: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Fill.html" title="struct cosmic::widget::canvas::Fill">Fill</a>&gt;)</h4></section><section id="method.stroke-1" class="method trait-impl"><a href="#method.stroke-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.stroke" class="fn">stroke</a>&lt;'a&gt;(&amp;mut self, path: &amp;<a class="struct" href="../../../../../../widget/canvas/struct.Path.html" title="struct cosmic::widget::canvas::Path">Path</a>, stroke: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Stroke.html" title="struct cosmic::widget::canvas::Stroke">Stroke</a>&lt;'a&gt;&gt;)</h4></section><section id="method.stroke_rectangle-1" class="method trait-impl"><a href="#method.stroke_rectangle-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.stroke_rectangle" class="fn">stroke_rectangle</a>&lt;'a&gt;(
&amp;mut self,
top_left: <a class="struct" href="../../../../../struct.Point.html" title="struct cosmic::iced::Point">Point</a>,
size: <a class="struct" href="../../../../../struct.Size.html" title="struct cosmic::iced::Size">Size</a>,
stroke: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Stroke.html" title="struct cosmic::widget::canvas::Stroke">Stroke</a>&lt;'a&gt;&gt;,
)</h4></section><section id="method.fill_text-1" class="method trait-impl"><a href="#method.fill_text-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.fill_text" class="fn">fill_text</a>(&amp;mut self, text: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Text.html" title="struct cosmic::widget::canvas::Text">Text</a>&gt;)</h4></section><section id="method.stroke_text-1" class="method trait-impl"><a href="#method.stroke_text-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.stroke_text" class="fn">stroke_text</a>&lt;'a&gt;(
&amp;mut self,
text: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Text.html" title="struct cosmic::widget::canvas::Text">Text</a>&gt;,
stroke: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Stroke.html" title="struct cosmic::widget::canvas::Stroke">Stroke</a>&lt;'a&gt;&gt;,
)</h4></section><section id="method.push_transform-1" class="method trait-impl"><a href="#method.push_transform-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.push_transform" class="fn">push_transform</a>(&amp;mut self)</h4></section><section id="method.pop_transform-1" class="method trait-impl"><a href="#method.pop_transform-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.pop_transform" class="fn">pop_transform</a>(&amp;mut self)</h4></section><section id="method.draft-1" class="method trait-impl"><a href="#method.draft-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.draft" class="fn">draft</a>(&amp;mut self, clip_bounds: <a class="struct" href="../../../../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>) -&gt; Frame</h4></section><section id="method.paste-1" class="method trait-impl"><a href="#method.paste-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.paste" class="fn">paste</a>(&amp;mut self, frame: Frame)</h4></section><section id="method.translate-1" class="method trait-impl"><a href="#method.translate-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.translate" class="fn">translate</a>(&amp;mut self, translation: <a class="struct" href="../../../../../struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a>)</h4></section><section id="method.rotate-1" class="method trait-impl"><a href="#method.rotate-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.rotate" class="fn">rotate</a>(&amp;mut self, angle: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Radians.html" title="struct cosmic::iced::Radians">Radians</a>&gt;)</h4></section><section id="method.scale-1" class="method trait-impl"><a href="#method.scale-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.scale" class="fn">scale</a>(&amp;mut self, scale: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="primitive" href="https://doc.rust-lang.org/nightly/std/primitive.f32.html">f32</a>&gt;)</h4></section><section id="method.scale_nonuniform-1" class="method trait-impl"><a href="#method.scale_nonuniform-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.scale_nonuniform" class="fn">scale_nonuniform</a>(&amp;mut self, scale: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../struct.Vector.html" title="struct cosmic::iced::Vector">Vector</a>&gt;)</h4></section><section id="method.into_geometry-1" class="method trait-impl"><a href="#method.into_geometry-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.into_geometry" class="fn">into_geometry</a>(self) -&gt; Geometry</h4></section><section id="method.draw_image-1" class="method trait-impl"><a href="#method.draw_image-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.draw_image" class="fn">draw_image</a>(&amp;mut self, bounds: <a class="struct" href="../../../../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>, image: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../../../../../../widget/canvas/struct.Image.html" title="struct cosmic::widget::canvas::Image">Image</a>&gt;)</h4></section><section id="method.draw_svg-1" class="method trait-impl"><a href="#method.draw_svg-1" class="anchor">§</a><h4 class="code-header">fn <a href="#tymethod.draw_svg" class="fn">draw_svg</a>(&amp;mut self, bounds: <a class="struct" href="../../../../../struct.Rectangle.html" title="struct cosmic::iced::Rectangle">Rectangle</a>, svg: impl <a class="trait" href="https://doc.rust-lang.org/nightly/core/convert/trait.Into.html" title="trait core::convert::Into">Into</a>&lt;<a class="struct" href="../struct.Svg.html" title="struct cosmic::iced::daemon::program::graphics::geometry::Svg">Svg</a>&gt;)</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/geometry/frame/trait.Backend.js" data-ignore-extern-crates="std,iced_tiny_skia" async></script></section></div></main></body></html>