pub enum Kind {
+Kind in iced::advanced::mouse::click - Rust pub enum Kind {
Single,
Double,
Triple,
@@ -6,8 +6,8 @@
Variants§
Trait Implementations§
Source§impl Copy for Kind
Source§impl Eq for Kind
Source§impl StructuralPartialEq for Kind
Auto Trait Implementations§
§impl Freeze for Kind
§impl RefUnwindSafe for Kind
§impl Send for Kind
§impl Sync for Kind
§impl Unpin for Kind
§impl UnwindSafe for Kind
Blanket Implementations§
Trait Implementations§
Source§impl Copy for Kind
Source§impl Eq for Kind
Source§impl StructuralPartialEq for Kind
Auto Trait Implementations§
§impl Freeze for Kind
§impl RefUnwindSafe for Kind
§impl Send for Kind
§impl Sync for Kind
§impl Unpin for Kind
§impl UnwindSafe for Kind
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
diff --git a/iced/advanced/mouse/click/struct.Click.html b/iced/advanced/mouse/click/struct.Click.html
index f3d4b08bb15..eac02472156 100644
--- a/iced/advanced/mouse/click/struct.Click.html
+++ b/iced/advanced/mouse/click/struct.Click.html
@@ -1,9 +1,9 @@
-Click in iced::advanced::mouse::click - Rust pub struct Click { /* private fields */ }
Available on crate feature advanced
only.Expand description
A mouse click.
-Implementations§
Source§impl Click
Sourcepub fn new(position: Point, button: Button, previous: Option<Click>) -> Click
Creates a new Click
with the given position and previous last
+
Click in iced::advanced::mouse::click - Rust pub struct Click { /* private fields */ }
Available on crate feature advanced
only.Expand description
A mouse click.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Click
§impl RefUnwindSafe for Click
§impl Send for Click
§impl Sync for Click
§impl Unpin for Click
§impl UnwindSafe for Click
Blanket Implementations§
Trait Implementations§
Source§impl Mul<Transformation> for Click
Source§impl Copy for Click
Auto Trait Implementations§
§impl Freeze for Click
§impl RefUnwindSafe for Click
§impl Send for Click
§impl Sync for Click
§impl Unpin for Click
§impl UnwindSafe for Click
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
diff --git a/iced/advanced/mouse/enum.Cursor.html b/iced/advanced/mouse/enum.Cursor.html
index 688824be328..4ee83939d4f 100644
--- a/iced/advanced/mouse/enum.Cursor.html
+++ b/iced/advanced/mouse/enum.Cursor.html
@@ -1,23 +1,23 @@
-Cursor in iced::advanced::mouse - Rust pub enum Cursor {
+Cursor in iced::advanced::mouse - Rust pub enum Cursor {
Available(Point),
Unavailable,
}
Available on crate feature advanced
only.Expand description
The mouse cursor state.
Variants§
§Available(Point)
The cursor has a defined position.
The cursor is currently unavailable (i.e. out of bounds or busy).
-Implementations§
Source§impl Cursor
Implementations§
Source§impl Cursor
Sourcepub fn position(self) -> Option<Point>
Returns the absolute position of the Cursor
, if available.
+Sourcepub fn position_over(self, bounds: Rectangle) -> Option<Point>
Sourcepub fn position_in(self, bounds: Rectangle) -> Option<Point>
Returns the relative position of the Cursor
inside the given bounds,
+
Sourcepub fn position_in(self, bounds: Rectangle) -> Option<Point>
Sourcepub fn position_from(self, origin: Point) -> Option<Point>
Returns the relative position of the Cursor
from the given origin,
+
Trait Implementations§
Source§impl Copy for Cursor
Source§impl StructuralPartialEq for Cursor
Auto Trait Implementations§
§impl Freeze for Cursor
§impl RefUnwindSafe for Cursor
§impl Send for Cursor
§impl Sync for Cursor
§impl Unpin for Cursor
§impl UnwindSafe for Cursor
Blanket Implementations§
Trait Implementations§
Source§impl Mul<Transformation> for Cursor
Source§impl Copy for Cursor
Source§impl StructuralPartialEq for Cursor
Auto Trait Implementations§
§impl Freeze for Cursor
§impl RefUnwindSafe for Cursor
§impl Send for Cursor
§impl Sync for Cursor
§impl Unpin for Cursor
§impl UnwindSafe for Cursor
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
diff --git a/iced/advanced/mouse/struct.Click.html b/iced/advanced/mouse/struct.Click.html
index fdf7b4da41e..efd5e005bdc 100644
--- a/iced/advanced/mouse/struct.Click.html
+++ b/iced/advanced/mouse/struct.Click.html
@@ -1,9 +1,9 @@
-Click in iced::advanced::mouse - Rust pub struct Click { /* private fields */ }
Available on crate feature advanced
only.Expand description
A mouse click.
-Implementations§
Source§impl Click
Sourcepub fn new(position: Point, button: Button, previous: Option<Click>) -> Click
Creates a new Click
with the given position and previous last
+
Click in iced::advanced::mouse - Rust pub struct Click { /* private fields */ }
Available on crate feature advanced
only.Expand description
A mouse click.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Click
§impl RefUnwindSafe for Click
§impl Send for Click
§impl Sync for Click
§impl Unpin for Click
§impl UnwindSafe for Click
Blanket Implementations§
Trait Implementations§
Source§impl Mul<Transformation> for Click
Source§impl Copy for Click
Auto Trait Implementations§
§impl Freeze for Click
§impl RefUnwindSafe for Click
§impl Send for Click
§impl Sync for Click
§impl Unpin for Click
§impl UnwindSafe for Click
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
diff --git a/iced/mouse/enum.Cursor.html b/iced/mouse/enum.Cursor.html
index 1c3e75711ff..893b0960e98 100644
--- a/iced/mouse/enum.Cursor.html
+++ b/iced/mouse/enum.Cursor.html
@@ -1,23 +1,23 @@
-Cursor in iced::mouse - Rust pub enum Cursor {
+Cursor in iced::mouse - Rust pub enum Cursor {
Available(Point),
Unavailable,
}
Expand description
The mouse cursor state.
Variants§
§Available(Point)
The cursor has a defined position.
The cursor is currently unavailable (i.e. out of bounds or busy).
-Implementations§
Source§impl Cursor
Implementations§
Source§impl Cursor
Sourcepub fn position(self) -> Option<Point>
Available on crate feature advanced
only.
Returns the absolute position of the Cursor
, if available.
+Sourcepub fn position_over(self, bounds: Rectangle) -> Option<Point>
Available on crate feature advanced
only.
Sourcepub fn position_in(self, bounds: Rectangle) -> Option<Point>
Available on crate feature advanced
only.
Returns the relative position of the Cursor
inside the given bounds,
+
Sourcepub fn position_in(self, bounds: Rectangle) -> Option<Point>
Available on crate feature advanced
only.
Sourcepub fn position_from(self, origin: Point) -> Option<Point>
Available on crate feature advanced
only.
Returns the relative position of the Cursor
from the given origin,
+
Trait Implementations§
Source§impl Copy for Cursor
Source§impl StructuralPartialEq for Cursor
Auto Trait Implementations§
§impl Freeze for Cursor
§impl RefUnwindSafe for Cursor
§impl Send for Cursor
§impl Sync for Cursor
§impl Unpin for Cursor
§impl UnwindSafe for Cursor
Blanket Implementations§
Trait Implementations§
Source§impl Mul<Transformation> for Cursor
Source§impl Copy for Cursor
Source§impl StructuralPartialEq for Cursor
Auto Trait Implementations§
§impl Freeze for Cursor
§impl RefUnwindSafe for Cursor
§impl Send for Cursor
§impl Sync for Cursor
§impl Unpin for Cursor
§impl UnwindSafe for Cursor
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
diff --git a/iced/struct.Transformation.html b/iced/struct.Transformation.html
index c3f204fb17a..9e147cf8c0c 100644
--- a/iced/struct.Transformation.html
+++ b/iced/struct.Transformation.html
@@ -1,11 +1,11 @@
-Transformation in iced - Rust pub struct Transformation(/* private fields */);
Expand description
A 2D transformation matrix.
+Transformation in iced - Rust pub struct Transformation(/* private fields */);
Expand description
A 2D transformation matrix.
Implementations§
Source§impl Transformation
Sourcepub const IDENTITY: Transformation
A Transformation
that preserves whatever is transformed.
Sourcepub fn orthographic(width: u32, height: u32) -> Transformation
Creates an orthographic projection.
Sourcepub fn translate(x: f32, y: f32) -> Transformation
Creates a translate transformation.
Sourcepub fn scale(scaling: f32) -> Transformation
Creates a uniform scaling transformation.
Sourcepub fn scale_factor(&self) -> f32
Returns the scale factor of the Transformation
.
Sourcepub fn translation(&self) -> Vector
Returns the translation of the Transformation
.
-Trait Implementations§
Source§impl Clone for Transformation
Source§fn clone(&self) -> Transformation
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for Transformation
Source§impl Default for Transformation
Source§fn default() -> Transformation
Returns the “default value” for a type. Read moreSource§impl Mul<Transformation> for Point
Source§impl Mul<Transformation> for Rectangle
Source§impl Mul<Transformation> for Size
Source§impl Mul<Transformation> for Vector
Source§impl Mul for Transformation
Source§type Output = Transformation
The resulting type after applying the *
operator.Source§fn mul(self, rhs: Transformation) -> Transformation
Performs the *
operation. Read moreTrait Implementations§
Source§impl Clone for Transformation
Source§fn clone(&self) -> Transformation
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for Transformation
Source§impl Default for Transformation
Source§fn default() -> Transformation
Returns the “default value” for a type. Read moreSource§impl Mul<Transformation> for Click
Source§impl Mul<Transformation> for Cursor
Source§impl Mul<Transformation> for Point
Source§impl Mul<Transformation> for Rectangle
Source§impl Mul<Transformation> for Size
Source§impl Mul<Transformation> for Vector
Source§impl Mul for Transformation
Source§type Output = Transformation
The resulting type after applying the *
operator.Source§fn mul(self, rhs: Transformation) -> Transformation
Performs the *
operation. Read moreSource§impl PartialEq for Transformation
Source§impl Copy for Transformation
Source§impl StructuralPartialEq for Transformation
Auto Trait Implementations§
§impl Freeze for Transformation
§impl RefUnwindSafe for Transformation
§impl Send for Transformation
§impl Sync for Transformation
§impl Unpin for Transformation
§impl UnwindSafe for Transformation
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
diff --git a/iced_core/mouse/click/enum.Kind.html b/iced_core/mouse/click/enum.Kind.html
index 33f3b7da382..93ab5c550e5 100644
--- a/iced_core/mouse/click/enum.Kind.html
+++ b/iced_core/mouse/click/enum.Kind.html
@@ -1,4 +1,4 @@
-Kind in iced_core::mouse::click - Rust pub enum Kind {
+Kind in iced_core::mouse::click - Rust pub enum Kind {
Single,
Double,
Triple,
@@ -6,8 +6,8 @@
Variants§
Trait Implementations§
Source§impl Copy for Kind
Source§impl Eq for Kind
Source§impl StructuralPartialEq for Kind
Auto Trait Implementations§
§impl Freeze for Kind
§impl RefUnwindSafe for Kind
§impl Send for Kind
§impl Sync for Kind
§impl Unpin for Kind
§impl UnwindSafe for Kind
Blanket Implementations§
Trait Implementations§
Source§impl Copy for Kind
Source§impl Eq for Kind
Source§impl StructuralPartialEq for Kind
Auto Trait Implementations§
§impl Freeze for Kind
§impl RefUnwindSafe for Kind
§impl Send for Kind
§impl Sync for Kind
§impl Unpin for Kind
§impl UnwindSafe for Kind
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
diff --git a/iced_core/mouse/click/index.html b/iced_core/mouse/click/index.html
index f6c9f2097a2..66071e181ac 100644
--- a/iced_core/mouse/click/index.html
+++ b/iced_core/mouse/click/index.html
@@ -1,2 +1,2 @@
-iced_core::mouse::click - Rust Expand description
Track mouse clicks.
+iced_core::mouse::click - Rust
\ No newline at end of file
diff --git a/iced_core/mouse/click/struct.Click.html b/iced_core/mouse/click/struct.Click.html
index ef3004e20b8..c7876b1bea9 100644
--- a/iced_core/mouse/click/struct.Click.html
+++ b/iced_core/mouse/click/struct.Click.html
@@ -1,9 +1,9 @@
-Click in iced_core::mouse::click - Rust pub struct Click { /* private fields */ }
Expand description
A mouse click.
-Implementations§
Source§impl Click
Sourcepub fn new(position: Point, button: Button, previous: Option<Click>) -> Click
Creates a new Click
with the given position and previous last
+
Click in iced_core::mouse::click - Rust pub struct Click { /* private fields */ }
Expand description
A mouse click.
+Implementations§
Trait Implementations§
Auto Trait Implementations§
§impl Freeze for Click
§impl RefUnwindSafe for Click
§impl Send for Click
§impl Sync for Click
§impl Unpin for Click
§impl UnwindSafe for Click
Blanket Implementations§
Trait Implementations§
Source§impl Mul<Transformation> for Click
Source§impl Copy for Click
Auto Trait Implementations§
§impl Freeze for Click
§impl RefUnwindSafe for Click
§impl Send for Click
§impl Sync for Click
§impl Unpin for Click
§impl UnwindSafe for Click
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
diff --git a/iced_core/mouse/enum.Cursor.html b/iced_core/mouse/enum.Cursor.html
index dddf628d384..b316898179e 100644
--- a/iced_core/mouse/enum.Cursor.html
+++ b/iced_core/mouse/enum.Cursor.html
@@ -1,23 +1,23 @@
-Cursor in iced_core::mouse - Rust pub enum Cursor {
+Cursor in iced_core::mouse - Rust pub enum Cursor {
Available(Point),
Unavailable,
}
Expand description
The mouse cursor state.
Variants§
§Available(Point)
The cursor has a defined position.
The cursor is currently unavailable (i.e. out of bounds or busy).
-Implementations§
Source§impl Cursor
Implementations§
Source§impl Cursor
Sourcepub fn position(self) -> Option<Point>
Returns the absolute position of the Cursor
, if available.
+Sourcepub fn position_over(self, bounds: Rectangle) -> Option<Point>
Sourcepub fn position_in(self, bounds: Rectangle) -> Option<Point>
Returns the relative position of the Cursor
inside the given bounds,
+
Sourcepub fn position_in(self, bounds: Rectangle) -> Option<Point>
Sourcepub fn position_from(self, origin: Point) -> Option<Point>
Returns the relative position of the Cursor
from the given origin,
+
Trait Implementations§
Source§impl Copy for Cursor
Source§impl StructuralPartialEq for Cursor
Auto Trait Implementations§
§impl Freeze for Cursor
§impl RefUnwindSafe for Cursor
§impl Send for Cursor
§impl Sync for Cursor
§impl Unpin for Cursor
§impl UnwindSafe for Cursor
Blanket Implementations§
Trait Implementations§
Source§impl Mul<Transformation> for Cursor
Source§impl Copy for Cursor
Source§impl StructuralPartialEq for Cursor
Auto Trait Implementations§
§impl Freeze for Cursor
§impl RefUnwindSafe for Cursor
§impl Send for Cursor
§impl Sync for Cursor
§impl Unpin for Cursor
§impl UnwindSafe for Cursor
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
diff --git a/iced_core/struct.Transformation.html b/iced_core/struct.Transformation.html
index 3634d421f5c..10867b048a0 100644
--- a/iced_core/struct.Transformation.html
+++ b/iced_core/struct.Transformation.html
@@ -1,11 +1,11 @@
-Transformation in iced_core - Rust pub struct Transformation(/* private fields */);
Expand description
A 2D transformation matrix.
+Transformation in iced_core - Rust pub struct Transformation(/* private fields */);
Expand description
A 2D transformation matrix.
Implementations§
Source§impl Transformation
Sourcepub const IDENTITY: Self
A Transformation
that preserves whatever is transformed.
Sourcepub fn orthographic(width: u32, height: u32) -> Transformation
Creates an orthographic projection.
Sourcepub fn translate(x: f32, y: f32) -> Transformation
Creates a translate transformation.
Sourcepub fn scale(scaling: f32) -> Transformation
Creates a uniform scaling transformation.
Sourcepub fn scale_factor(&self) -> f32
Returns the scale factor of the Transformation
.
Sourcepub fn translation(&self) -> Vector
Returns the translation of the Transformation
.
-Trait Implementations§
Source§impl Clone for Transformation
Source§fn clone(&self) -> Transformation
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for Transformation
Source§impl Default for Transformation
Source§impl From<Transformation> for Mat4
Source§fn from(transformation: Transformation) -> Self
Converts to this type from the input type.Source§impl Mul<Transformation> for Point
Source§impl Mul<Transformation> for Rectangle
Source§impl Mul<Transformation> for Size
Source§impl Mul<Transformation> for Vector
Source§impl Mul for Transformation
Trait Implementations§
Source§impl Clone for Transformation
Source§fn clone(&self) -> Transformation
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for Transformation
Source§impl Default for Transformation
Source§impl From<Transformation> for Mat4
Source§fn from(transformation: Transformation) -> Self
Converts to this type from the input type.Source§impl Mul<Transformation> for Click
Source§impl Mul<Transformation> for Cursor
Source§impl Mul<Transformation> for Point
Source§impl Mul<Transformation> for Rectangle
Source§impl Mul<Transformation> for Size
Source§impl Mul<Transformation> for Vector
Source§impl Mul for Transformation
Source§impl PartialEq for Transformation
Source§impl Copy for Transformation
Source§impl StructuralPartialEq for Transformation
Auto Trait Implementations§
§impl Freeze for Transformation
§impl RefUnwindSafe for Transformation
§impl Send for Transformation
§impl Sync for Transformation
§impl Unpin for Transformation
§impl UnwindSafe for Transformation
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
diff --git a/iced_renderer/fallback/enum.Compositor.html b/iced_renderer/fallback/enum.Compositor.html
index 92fa85bfa7d..e4aed73ae20 100644
--- a/iced_renderer/fallback/enum.Compositor.html
+++ b/iced_renderer/fallback/enum.Compositor.html
@@ -28,13 +28,13 @@
renderer: &mut Self::Renderer,
surface: &mut Self::Surface,
viewport: &Viewport,
- background_color: Color,
+ background_color: Color,
overlay: &[T],
) -> Result<(), SurfaceError>Source§fn screenshot<T: AsRef<str>>(
&mut self,
renderer: &mut Self::Renderer,
viewport: &Viewport,
- background_color: Color,
+ background_color: Color,
overlay: &[T],
) -> Vec<u8> ⓘ
Screenshots the current Renderer
primitives to an offscreen texture, and returns the bytes of
the texture ordered as RGBA
in the sRGB
color space.§Secondary(B)
The secondary (or fallback) rendering option.
Trait Implementations§
Source§impl<A, B> Default for Renderer<A, B>
Source§type Compositor = Compositor<<A as Default>::Compositor, <B as Default>::Compositor>
The compositor of the renderer.Source§impl Headless for Renderer<Renderer, Renderer>
Available on crate features wgpu
and tiny-skia
only.
Source§fn new(default_font: Font, default_text_size: Pixels) -> Self
Creates a new Headless
renderer;Source§fn screenshot(
+ B: Default,
Source§type Compositor = Compositor<<A as Default>::Compositor, <B as Default>::Compositor>
The compositor of the renderer.Source§impl Headless for Renderer<Renderer, Renderer>
Available on crate features wgpu
and tiny-skia
only.
Source§impl<A, B> Renderer for Renderer<A, B>
Source§fn fill_quad(&mut self, quad: Quad, background: impl Into<Background>)
Fills a Quad
with the provided Background
.Source§fn start_layer(&mut self, bounds: Rectangle)
Starts recording a new layer.Source§fn start_transformation(&mut self, transformation: Transformation)
Starts recording with a new Transformation
.Source§fn end_transformation(&mut self)
Ends recording a new layer. Read moreSource§fn with_layer(&mut self, bounds: Rectangle, f: impl FnOnce(&mut Self))
Draws the primitives recorded in the given closure in a new layer. Read moreSource§fn with_transformation(
+bytes representing the rendered pixels in RGBA order.
Source§impl<A, B> Renderer for Renderer<A, B>where
+ A: Renderer,
+ B: Renderer,
Source§fn fill_quad(&mut self, quad: Quad, background: impl Into<Background>)
Fills a [Quad
] with the provided [Background
].Source§fn start_layer(&mut self, bounds: Rectangle)
Starts recording a new layer.Source§fn start_transformation(&mut self, transformation: Transformation)
Starts recording with a new [Transformation
].Source§fn end_transformation(&mut self)
Ends recording a new layer. Read more§fn with_layer(&mut self, bounds: Rectangle, f: impl FnOnce(&mut Self))
Draws the primitives recorded in the given closure in a new layer. Read more§fn with_transformation(
&mut self,
- transformation: Transformation,
+ transformation: Transformation,
f: impl FnOnce(&mut Self),
-)
Applies a Transformation
to the primitives recorded in the given closure.Source§fn with_translation(&mut self, translation: Vector, f: impl FnOnce(&mut Self))
Applies a translation to the primitives recorded in the given closure.Source§impl<A, B> Renderer for Renderer<A, B>
Source§const CHECKMARK_ICON: char = A::CHECKMARK_ICON
The char
representing a ✔ icon in the ICON_FONT
.Source§const ARROW_DOWN_ICON: char = A::ARROW_DOWN_ICON
The char
representing a ▼ icon in the built-in ICON_FONT
.Source§fn default_font(&self) -> Self::Font
Returns the default Self::Font
.Source§fn default_size(&self) -> Pixels
Returns the default size of Text
.Source§fn fill_paragraph(
+)
Applies a [Transformation
] to the primitives recorded in the given closure.§fn with_translation(&mut self, translation: Vector, f: impl FnOnce(&mut Self))
Applies a translation to the primitives recorded in the given closure.Source§impl<A, B> Renderer for Renderer<A, B>where
+ A: Renderer,
+ B: Renderer<Font = A::Font, Paragraph = A::Paragraph, Editor = A::Editor>,
Source§const CHECKMARK_ICON: char = A::CHECKMARK_ICON
The char
representing a ✔ icon in the ICON_FONT
.Source§const ARROW_DOWN_ICON: char = A::ARROW_DOWN_ICON
The char
representing a ▼ icon in the built-in ICON_FONT
.Source§fn default_font(&self) -> Self::Font
Returns the default [Self::Font
].Source§fn default_size(&self) -> Pixels
Returns the default size of [Text
].Source§fn fill_paragraph(
&mut self,
- text: &Self::Paragraph,
- position: Point,
- color: Color,
- clip_bounds: Rectangle,
-)
Source§fn fill_editor(
+ text: &Self::Paragraph,
+ position: Point,
+ color: Color,
+ clip_bounds: Rectangle,
+)
Draws the given [Paragraph
] at the given position and with the given
+[Color
].Source§fn fill_editor(
&mut self,
- editor: &Self::Editor,
- position: Point,
- color: Color,
- clip_bounds: Rectangle,
-)
Source§impl<A, B> Renderer for Renderer<A, B>
Source§impl<A, B> Renderer for Renderer<A, B>where
+ text: Text<String, Self::Font>,
+ position: Point,
+ color: Color,
+ clip_bounds: Rectangle,
+)Draws the given [Text
] at the given position and with the given
+[Color
].
Source§impl<A, B> Renderer for Renderer<A, B>where
+ A: Renderer,
+ B: Renderer<Handle = A::Handle>,
Source§type Handle = <A as Renderer>::Handle
The image Handle to be displayed. Iced exposes its own default implementation of a Handle
Source§fn measure_image(&self, handle: &Self::Handle) -> Size<u32>
Returns the dimensions of an image for the given [Handle
].Source§fn draw_image(&mut self, image: Image<A::Handle>, bounds: Rectangle)
Draws an Image
inside the provided bounds
.Source§impl<A, B> Renderer for Renderer<A, B>
Available on crate feature wgpu
only.
Source§fn draw_primitive(&mut self, bounds: Rectangle, primitive: impl Primitive)
Draws a custom primitive.Source§impl<A, B> Renderer for Renderer<A, B>where
+ B: Renderer,
Available on crate feature wgpu
only.
Source§fn draw_primitive(&mut self, bounds: Rectangle, primitive: impl Primitive)
Draws a custom primitive.Source§impl<A, B> Renderer for Renderer<A, B>
Available on crate feature geometry
only.
Source§type Geometry = Geometry<<A as Renderer>::Geometry, <B as Renderer>::Geometry>
The kind of geometry this renderer can draw.Source§type Frame = Frame<<A as Renderer>::Frame, <B as Renderer>::Frame>
The kind of Frame
this renderer supports.Source§fn draw_geometry(&mut self, geometry: Self::Geometry)
Draws the given Self::Geometry
.Auto Trait Implementations§
§impl<A, B> Freeze for Renderer<A, B>where
+ B: Renderer,
Available on crate feature geometry
only. Source§type Geometry = Geometry<<A as Renderer>::Geometry, <B as Renderer>::Geometry>
The kind of geometry this renderer can draw.Source§type Frame = Frame<<A as Renderer>::Frame, <B as Renderer>::Frame>
The kind of Frame
this renderer supports.Source§fn new_frame(&self, size: Size) -> Self::Frame
Creates a new Self::Frame
.Source§fn draw_geometry(&mut self, geometry: Self::Geometry)
Draws the given Self::Geometry
.Auto Trait Implementations§
§impl<A, B> Freeze for Renderer<A, B>
§impl<A, B> RefUnwindSafe for Renderer<A, B>where
A: RefUnwindSafe,
diff --git a/iced_renderer/geometry/enum.Gradient.html b/iced_renderer/geometry/enum.Gradient.html
index 9995a714665..ae91022da06 100644
--- a/iced_renderer/geometry/enum.Gradient.html
+++ b/iced_renderer/geometry/enum.Gradient.html
@@ -1,7 +1,7 @@
Gradient in iced_renderer::geometry - Rust pub enum Gradient {
Linear(Linear),
}
Available on crate feature geometry
only.Expand description
A fill which linearly interpolates colors along a direction.
-For a gradient which can be used as a fill for a background of a widget, see crate::core::Gradient
.
+For a gradient which can be used as a fill for a background of a widget, see [crate::core::Gradient
].
Variants§
§Linear(Linear)
A linear gradient interpolates colors along a direction from its start
to its end
point.
Implementations§
Source§impl Gradient
Sourcepub fn pack(&self) -> Packed
Packs the Gradient
for use in shader code.
diff --git a/iced_renderer/geometry/enum.Style.html b/iced_renderer/geometry/enum.Style.html
index 9f6cde1571d..33edd7f9e09 100644
--- a/iced_renderer/geometry/enum.Style.html
+++ b/iced_renderer/geometry/enum.Style.html
@@ -1,10 +1,10 @@
Style in iced_renderer::geometry - Rust pub enum Style {
- Solid(Color),
+ Solid(Color),
Gradient(Gradient),
}
Available on crate feature geometry
only.Expand description
The coloring style of some drawing.
-Variants§
§Solid(Color)
A solid Color
.
+Variants§
Trait Implementations§
Source§impl PartialEq for Style
Trait Implementations§
Source§impl Copy for Style
Source§impl StructuralPartialEq for Style
Auto Trait Implementations§
§impl Freeze for Style
§impl RefUnwindSafe for Style
§impl Send for Style
§impl Sync for Style
§impl Unpin for Style
§impl UnwindSafe for Style
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
diff --git a/iced_renderer/geometry/fill/enum.Style.html b/iced_renderer/geometry/fill/enum.Style.html
index bbdb370717b..1c6b56070eb 100644
--- a/iced_renderer/geometry/fill/enum.Style.html
+++ b/iced_renderer/geometry/fill/enum.Style.html
@@ -1,10 +1,10 @@
Style in iced_renderer::geometry::fill - Rust pub enum Style {
- Solid(Color),
+ Solid(Color),
Gradient(Gradient),
}
Available on crate feature geometry
only.Expand description
The coloring style of some drawing.
-Variants§
§Solid(Color)
A solid Color
.
+Variants§
Trait Implementations§
Source§impl PartialEq for Style
Trait Implementations§
Source§impl Copy for Style
Source§impl StructuralPartialEq for Style
Auto Trait Implementations§
§impl Freeze for Style
§impl RefUnwindSafe for Style
§impl Send for Style
§impl Sync for Style
§impl Unpin for Style
§impl UnwindSafe for Style
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
diff --git a/iced_renderer/geometry/fill/struct.Fill.html b/iced_renderer/geometry/fill/struct.Fill.html
index e869748a827..022287bc92e 100644
--- a/iced_renderer/geometry/fill/struct.Fill.html
+++ b/iced_renderer/geometry/fill/struct.Fill.html
@@ -3,12 +3,12 @@
pub rule: Rule,
}Available on crate feature geometry
only.Expand description
The style used to fill geometry.
Fields§
§style: Style
The color or gradient of the fill.
-By default, it is set to Style::Solid
with Color::BLACK
.
+By default, it is set to Style::Solid
with [Color::BLACK
].
§rule: Rule
The fill rule defines how to determine what is inside and what is
outside of a shape.
See the SVG specification for more details.
By default, it is set to NonZero
.
-Trait Implementations§
Source§impl Copy for Fill
Auto Trait Implementations§
§impl Freeze for Fill
§impl RefUnwindSafe for Fill
§impl Send for Fill
§impl Sync for Fill
§impl Unpin for Fill
§impl UnwindSafe for Fill
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
+Trait Implementations§
Source§impl Copy for Fill
Auto Trait Implementations§
§impl Freeze for Fill
§impl RefUnwindSafe for Fill
§impl Send for Fill
§impl Sync for Fill
§impl Unpin for Fill
§impl UnwindSafe for Fill
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
Dwp: WhitePoint<T>,
diff --git a/iced_renderer/geometry/frame/struct.Frame.html b/iced_renderer/geometry/frame/struct.Frame.html
index be8a5da16e4..1c278ffb856 100644
--- a/iced_renderer/geometry/frame/struct.Frame.html
+++ b/iced_renderer/geometry/frame/struct.Frame.html
@@ -1,17 +1,17 @@
Frame in iced_renderer::geometry::frame - Rust pub struct Frame<Renderer>where
Renderer: Renderer,{ /* private fields */ }
Available on crate feature geometry
only.Expand description
The region of a surface that can be used to draw geometry.
Implementations§
Source§impl<Renderer> Frame<Renderer>where
- Renderer: Renderer,
Sourcepub fn new(renderer: &Renderer, size: Size) -> Frame<Renderer>
Sourcepub fn new(renderer: &Renderer, size: Size) -> Frame<Renderer>
Creates a new Frame
with the given dimensions.
Sourcepub fn fill_rectangle(
&mut self,
- top_left: Point,
- size: Size,
+ top_left: Point,
+ size: Size,
fill: impl Into<Fill>,
)
Draws an axis-aligned rectangle given its top-left corner coordinate and
its Size
on the Frame
by filling it with the provided style.
@@ -19,8 +19,8 @@
provided style.
Sourcepub fn stroke_rectangle<'a>(
&mut self,
- top_left: Point,
- size: Size,
+ top_left: Point,
+ size: Size,
stroke: impl Into<Stroke<'a>>,
)
Draws the stroke of an axis-aligned rectangle with the provided style
given its top-left corner coordinate and its Size
on the Frame
.
@@ -29,8 +29,8 @@
Warning: All text will be rendered on top of all the layers of
a Canvas
. Therefore, it is currently only meant to be used for
overlays, which is the most common use case.
-Sourcepub fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
Available on crate feature image
only.
Sourcepub fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
Available on crate feature svg
only.
Sourcepub fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
Available on crate feature image
only.
Sourcepub fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
Available on crate feature svg
only.
Sourcepub fn with_save<R>(&mut self, f: impl FnOnce(&mut Frame<Renderer>) -> R) -> R
Stores the current transform of the Frame
and executes the given
drawing operations, restoring the transform afterwards.
This method is useful to compose transforms and perform drawing
@@ -39,17 +39,17 @@
Sourcepub fn pop_transform(&mut self)
Pops a transform from the transform stack and sets it as the current transform.
Sourcepub fn with_clip<R>(
&mut self,
- region: Rectangle,
+ region: Rectangle,
f: impl FnOnce(&mut Frame<Renderer>) -> R,
-) -> R
Executes the given drawing operations within a Rectangle
region,
+) -> R
Executes the given drawing operations within a [Rectangle
] region,
clipping any geometry that overflows its bounds. Any transformations
performed are local to the provided closure.
This method is useful to perform drawing operations that need to be
clipped.
-Sourcepub fn translate(&mut self, translation: Vector)
Applies a translation to the current transform of the Frame
.
-Sourcepub fn rotate(&mut self, angle: impl Into<Radians>)
Applies a rotation in radians to the current transform of the Frame
.
+Sourcepub fn translate(&mut self, translation: Vector)
Applies a translation to the current transform of the Frame
.
+Sourcepub fn rotate(&mut self, angle: impl Into<Radians>)
Applies a rotation in radians to the current transform of the Frame
.
Sourcepub fn scale(&mut self, scale: impl Into<f32>)
Applies a uniform scaling to the current transform of the Frame
.
-Sourcepub fn scale_nonuniform(&mut self, scale: impl Into<Vector>)
Applies a non-uniform scaling to the current transform of the Frame
.
+Sourcepub fn scale_nonuniform(&mut self, scale: impl Into<Vector>)
Applies a non-uniform scaling to the current transform of the Frame
.
Sourcepub fn into_geometry(self) -> <Renderer as Renderer>::Geometry
Turns the Frame
into its underlying geometry.
Auto Trait Implementations§
§impl<Renderer> Freeze for Frame<Renderer>
§impl<Renderer> RefUnwindSafe for Frame<Renderer>where
diff --git a/iced_renderer/geometry/frame/trait.Backend.html b/iced_renderer/geometry/frame/trait.Backend.html
index c26a755ee17..18de9c9fe63 100644
--- a/iced_renderer/geometry/frame/trait.Backend.html
+++ b/iced_renderer/geometry/frame/trait.Backend.html
@@ -4,60 +4,60 @@
Show 20 methods
// Required methods
fn width(&self) -> f32;
fn height(&self) -> f32;
- fn size(&self) -> Size;
- fn center(&self) -> Point;
+ fn size(&self) -> Size;
+ fn center(&self) -> Point;
fn push_transform(&mut self);
fn pop_transform(&mut self);
- fn translate(&mut self, translation: Vector);
- fn rotate(&mut self, angle: impl Into<Radians>);
+ fn translate(&mut self, translation: Vector);
+ fn rotate(&mut self, angle: impl Into<Radians>);
fn scale(&mut self, scale: impl Into<f32>);
- fn scale_nonuniform(&mut self, scale: impl Into<Vector>);
- fn draft(&mut self, clip_bounds: Rectangle) -> Self;
+ fn scale_nonuniform(&mut self, scale: impl Into<Vector>);
+ fn draft(&mut self, clip_bounds: Rectangle) -> Self;
fn paste(&mut self, frame: Self);
fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>);
fn stroke_rectangle<'a>(
&mut self,
- top_left: Point,
- size: Size,
+ top_left: Point,
+ size: Size,
stroke: impl Into<Stroke<'a>>,
);
fn fill(&mut self, path: &Path, fill: impl Into<Fill>);
fn fill_text(&mut self, text: impl Into<Text>);
fn fill_rectangle(
&mut self,
- top_left: Point,
- size: Size,
+ top_left: Point,
+ size: Size,
fill: impl Into<Fill>,
);
- fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>);
- fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>);
+ fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>);
+ fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>);
fn into_geometry(self) -> Self::Geometry;
}Available on crate feature geometry
only.Expand description
Required Associated Types§
Required Methods§
Sourcefn width(&self) -> f32
Sourcefn height(&self) -> f32
Sourcefn size(&self) -> Size
Sourcefn center(&self) -> Point
Sourcefn push_transform(&mut self)
Sourcefn pop_transform(&mut self)
Sourcefn translate(&mut self, translation: Vector)
Sourcefn rotate(&mut self, angle: impl Into<Radians>)
Sourcefn scale(&mut self, scale: impl Into<f32>)
Sourcefn scale_nonuniform(&mut self, scale: impl Into<Vector>)
Sourcefn draft(&mut self, clip_bounds: Rectangle) -> Self
Sourcefn paste(&mut self, frame: Self)
Sourcefn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
Sourcefn stroke_rectangle<'a>(
+
Required Associated Types§
Required Methods§
Sourcefn width(&self) -> f32
Sourcefn height(&self) -> f32
Sourcefn size(&self) -> Size
Sourcefn center(&self) -> Point
Sourcefn push_transform(&mut self)
Sourcefn pop_transform(&mut self)
Sourcefn translate(&mut self, translation: Vector)
Sourcefn rotate(&mut self, angle: impl Into<Radians>)
Sourcefn scale(&mut self, scale: impl Into<f32>)
Sourcefn scale_nonuniform(&mut self, scale: impl Into<Vector>)
Sourcefn draft(&mut self, clip_bounds: Rectangle) -> Self
Sourcefn paste(&mut self, frame: Self)
Sourcefn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
Sourcefn stroke_rectangle<'a>(
&mut self,
- top_left: Point,
- size: Size,
+ top_left: Point,
+ size: Size,
stroke: impl Into<Stroke<'a>>,
-)
Sourcefn fill(&mut self, path: &Path, fill: impl Into<Fill>)
Sourcefn fill_text(&mut self, text: impl Into<Text>)
Sourcefn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
Sourcefn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
Sourcefn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
Sourcefn into_geometry(self) -> Self::Geometry
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl Backend for ()
Available on debug-assertions enabled only.
Source§type Geometry = ()
Source§fn width(&self) -> f32
Source§fn height(&self) -> f32
Source§fn size(&self) -> Size
Source§fn center(&self) -> Point
Source§fn push_transform(&mut self)
Source§fn pop_transform(&mut self)
Source§fn translate(&mut self, _translation: Vector)
Source§fn rotate(&mut self, _angle: impl Into<Radians>)
Source§fn scale(&mut self, _scale: impl Into<f32>)
Source§fn scale_nonuniform(&mut self, _scale: impl Into<Vector>)
Source§fn draft(&mut self, _clip_bounds: Rectangle)
Source§fn paste(&mut self, _frame: ())
Source§fn stroke<'a>(&mut self, _path: &Path, _stroke: impl Into<Stroke<'a>>)
Source§fn stroke_rectangle<'a>(
+)
Sourcefn fill(&mut self, path: &Path, fill: impl Into<Fill>)
Sourcefn fill_text(&mut self, text: impl Into<Text>)
Sourcefn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
Sourcefn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
Sourcefn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
Sourcefn into_geometry(self) -> Self::Geometry
Dyn Compatibility§
This trait is not dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.
Implementations on Foreign Types§
Source§impl Backend for ()
Available on debug-assertions enabled only.
Source§type Geometry = ()
Source§fn width(&self) -> f32
Source§fn height(&self) -> f32
Source§fn size(&self) -> Size
Source§fn center(&self) -> Point
Source§fn push_transform(&mut self)
Source§fn pop_transform(&mut self)
Source§fn translate(&mut self, _translation: Vector)
Source§fn rotate(&mut self, _angle: impl Into<Radians>)
Source§fn scale(&mut self, _scale: impl Into<f32>)
Source§fn scale_nonuniform(&mut self, _scale: impl Into<Vector>)
Source§fn draft(&mut self, _clip_bounds: Rectangle)
Source§fn paste(&mut self, _frame: ())
Source§fn stroke<'a>(&mut self, _path: &Path, _stroke: impl Into<Stroke<'a>>)
Source§fn stroke_rectangle<'a>(
&mut self,
- _top_left: Point,
- _size: Size,
+ _top_left: Point,
+ _size: Size,
_stroke: impl Into<Stroke<'a>>,
)
Source§fn fill(&mut self, _path: &Path, _fill: impl Into<Fill>)
Source§fn fill_text(&mut self, _text: impl Into<Text>)
Source§fn fill_rectangle(
&mut self,
- _top_left: Point,
- _size: Size,
+ _top_left: Point,
+ _size: Size,
_fill: impl Into<Fill>,
-)
Source§fn draw_image(&mut self, _bounds: Rectangle, _image: impl Into<Image>)
Source§fn draw_svg(&mut self, _bounds: Rectangle, _svg: impl Into<Svg>)
Source§fn into_geometry(self) -> <() as Backend>::Geometry
Source§impl Backend for Frame
Source§type Geometry = Geometry
Source§fn width(&self) -> f32
Source§fn height(&self) -> f32
Source§fn size(&self) -> Size
Source§fn center(&self) -> Point
Source§fn fill(&mut self, path: &Path, fill: impl Into<Fill>)
Source§fn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
Source§fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
Source§fn stroke_rectangle<'a>(
+)
Source§fn draw_image(&mut self, _bounds: Rectangle, _image: impl Into<Image>)
Source§fn draw_svg(&mut self, _bounds: Rectangle, _svg: impl Into<Svg>)
Source§fn into_geometry(self) -> <() as Backend>::Geometry
Source§impl Backend for Frame
Source§type Geometry = Geometry
Source§fn width(&self) -> f32
Source§fn height(&self) -> f32
Source§fn size(&self) -> Size
Source§fn center(&self) -> Point
Source§fn fill(&mut self, path: &Path, fill: impl Into<Fill>)
Source§fn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
Source§fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
Source§fn stroke_rectangle<'a>(
&mut self,
- top_left: Point,
- size: Size,
+ top_left: Point,
+ size: Size,
stroke: impl Into<Stroke<'a>>,
-)
Source§fn fill_text(&mut self, text: impl Into<Text>)
Source§fn push_transform(&mut self)
Source§fn pop_transform(&mut self)
Source§fn draft(&mut self, clip_bounds: Rectangle) -> Frame
Source§fn paste(&mut self, frame: Frame)
Source§fn translate(&mut self, translation: Vector)
Source§fn rotate(&mut self, angle: impl Into<Radians>)
Source§fn scale(&mut self, scale: impl Into<f32>)
Source§fn scale_nonuniform(&mut self, scale: impl Into<Vector>)
Source§fn into_geometry(self) -> Geometry
Source§fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
Source§fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
Source§impl Backend for Frame
Source§type Geometry = Geometry
Source§fn width(&self) -> f32
Source§fn height(&self) -> f32
Source§fn size(&self) -> Size
Source§fn center(&self) -> Point
Source§fn fill(&mut self, path: &Path, fill: impl Into<Fill>)
Source§fn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
Source§fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
Source§fn stroke_rectangle<'a>(
+)
Source§fn fill_text(&mut self, text: impl Into<Text>)
Source§fn push_transform(&mut self)
Source§fn pop_transform(&mut self)
Source§fn draft(&mut self, clip_bounds: Rectangle) -> Frame
Source§fn paste(&mut self, frame: Frame)
Source§fn translate(&mut self, translation: Vector)
Source§fn rotate(&mut self, angle: impl Into<Radians>)
Source§fn scale(&mut self, scale: impl Into<f32>)
Source§fn scale_nonuniform(&mut self, scale: impl Into<Vector>)
Source§fn into_geometry(self) -> Geometry
Source§fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
Source§fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
Source§impl Backend for Frame
Source§type Geometry = Geometry
Source§fn width(&self) -> f32
Source§fn height(&self) -> f32
Source§fn size(&self) -> Size
Source§fn center(&self) -> Point
Source§fn fill(&mut self, path: &Path, fill: impl Into<Fill>)
Source§fn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
Source§fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
Source§fn stroke_rectangle<'a>(
&mut self,
- top_left: Point,
- size: Size,
+ top_left: Point,
+ size: Size,
stroke: impl Into<Stroke<'a>>,
-)
Source§fn fill_text(&mut self, text: impl Into<Text>)
Source§fn translate(&mut self, translation: Vector)
Source§fn rotate(&mut self, angle: impl Into<Radians>)
Source§fn scale(&mut self, scale: impl Into<f32>)
Source§fn scale_nonuniform(&mut self, scale: impl Into<Vector>)
Source§fn push_transform(&mut self)
Source§fn pop_transform(&mut self)
Source§fn draft(&mut self, clip_bounds: Rectangle) -> Frame
Source§fn paste(&mut self, frame: Frame)
Source§fn into_geometry(self) -> <Frame as Backend>::Geometry
Source§fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
Source§fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
Implementors§
\ No newline at end of file
+)
Source§fn fill_text(&mut self, text: impl Into<Text>)
Source§fn translate(&mut self, translation: Vector)
Source§fn rotate(&mut self, angle: impl Into<Radians>)
Source§fn scale(&mut self, scale: impl Into<f32>)
Source§fn scale_nonuniform(&mut self, scale: impl Into<Vector>)
Source§fn push_transform(&mut self)
Source§fn pop_transform(&mut self)
Source§fn draft(&mut self, clip_bounds: Rectangle) -> Frame
Source§fn paste(&mut self, frame: Frame)
Source§fn into_geometry(self) -> <Frame as Backend>::Geometry
Source§fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
Source§fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
Implementors§
\ No newline at end of file
diff --git a/iced_renderer/geometry/gradient/enum.Gradient.html b/iced_renderer/geometry/gradient/enum.Gradient.html
index 062218f51fc..a2fdd70fe6d 100644
--- a/iced_renderer/geometry/gradient/enum.Gradient.html
+++ b/iced_renderer/geometry/gradient/enum.Gradient.html
@@ -1,7 +1,7 @@
Gradient in iced_renderer::geometry::gradient - Rust pub enum Gradient {
Linear(Linear),
}
Available on crate feature geometry
only.Expand description
A fill which linearly interpolates colors along a direction.
-For a gradient which can be used as a fill for a background of a widget, see crate::core::Gradient
.
+For a gradient which can be used as a fill for a background of a widget, see [crate::core::Gradient
].
Variants§
§Linear(Linear)
A linear gradient interpolates colors along a direction from its start
to its end
point.
Implementations§
Source§impl Gradient
Sourcepub fn pack(&self) -> Packed
Packs the Gradient
for use in shader code.
diff --git a/iced_renderer/geometry/gradient/fn.pack.html b/iced_renderer/geometry/gradient/fn.pack.html
index 49874457634..6ce74a550c1 100644
--- a/iced_renderer/geometry/gradient/fn.pack.html
+++ b/iced_renderer/geometry/gradient/fn.pack.html
@@ -1,2 +1,2 @@
-pack in iced_renderer::geometry::gradient - Rust pub fn pack(gradient: &Gradient, bounds: Rectangle) -> Packed
Available on crate feature geometry
only.Expand description
Creates a new Packed
gradient for use in shader code.
+pack in iced_renderer::geometry::gradient - Rust
\ No newline at end of file
diff --git a/iced_renderer/geometry/gradient/struct.Linear.html b/iced_renderer/geometry/gradient/struct.Linear.html
index 4a4d058dcfb..3119e458f20 100644
--- a/iced_renderer/geometry/gradient/struct.Linear.html
+++ b/iced_renderer/geometry/gradient/struct.Linear.html
@@ -1,16 +1,16 @@
Linear in iced_renderer::geometry::gradient - Rust pub struct Linear {
- pub start: Point,
- pub end: Point,
- pub stops: [Option<ColorStop>; 8],
+ pub start: Point,
+ pub end: Point,
+ pub stops: [Option<ColorStop>; 8],
}
Available on crate feature geometry
only.Expand description
A linear gradient.
-Fields§
§start: Point
The absolute starting position of the gradient.
-§end: Point
The absolute ending position of the gradient.
-§stops: [Option<ColorStop>; 8]
ColorStop
s along the linear gradient direction.
-Implementations§
Source§impl Linear
Sourcepub fn add_stop(self, offset: f32, color: Color) -> Linear
Adds a new ColorStop
, defined by an offset and a color, to the gradient.
+Fields§
§start: Point
The absolute starting position of the gradient.
+§end: Point
The absolute ending position of the gradient.
+§stops: [Option<ColorStop>; 8]
[ColorStop
]s along the linear gradient direction.
+Implementations§
Source§impl Linear
Sourcepub fn add_stop(self, offset: f32, color: Color) -> Linear
Adds a new [ColorStop
], defined by an offset and a color, to the gradient.
Any offset
that is not within 0.0..=1.0
will be silently ignored.
Any stop added after the 8th will be silently ignored.
-Sourcepub fn add_stops(self, stops: impl IntoIterator<Item = ColorStop>) -> Linear
Adds multiple ColorStop
s to the gradient.
+Sourcepub fn add_stops(self, stops: impl IntoIterator<Item = ColorStop>) -> Linear
Adds multiple [ColorStop
]s to the gradient.
Any stop added after the 8th will be silently ignored.
Trait Implementations§
Source§impl PartialEq for Linear
Source§fn eq(&self, other: &Linear) -> bool
Tests for self
and other
values to be equal, and is used by ==
.1.0.0 · Source§fn ne(&self, other: &Rhs) -> bool
Tests for !=
. The default implementation is almost always sufficient,
diff --git a/iced_renderer/geometry/path/arc/struct.Arc.html b/iced_renderer/geometry/path/arc/struct.Arc.html
index 3f62d5d2cef..b0a97568849 100644
--- a/iced_renderer/geometry/path/arc/struct.Arc.html
+++ b/iced_renderer/geometry/path/arc/struct.Arc.html
@@ -1,13 +1,13 @@
Arc in iced_renderer::geometry::path::arc - Rust pub struct Arc {
- pub center: Point,
+ pub center: Point,
pub radius: f32,
- pub start_angle: Radians,
- pub end_angle: Radians,
+ pub start_angle: Radians,
+ pub end_angle: Radians,
}
Available on crate feature geometry
only.Expand description
A segment of a differentiable curve.
-Fields§
§center: Point
The center of the arc.
+Fields§
§center: Point
The center of the arc.
§radius: f32
The radius of the arc.
-§start_angle: Radians
The start of the segment’s angle, clockwise rotation from positive x-axis.
-§end_angle: Radians
The end of the segment’s angle, clockwise rotation from positive x-axis.
+§start_angle: Radians
The start of the segment’s angle, clockwise rotation from positive x-axis.
+§end_angle: Radians
The end of the segment’s angle, clockwise rotation from positive x-axis.
Trait Implementations§
Source§impl From<Arc> for Elliptical
Source§fn from(arc: Arc) -> Elliptical
Converts to this type from the input type.Source§impl Copy for Arc
Auto Trait Implementations§
§impl Freeze for Arc
§impl RefUnwindSafe for Arc
§impl Send for Arc
§impl Sync for Arc
§impl Unpin for Arc
§impl UnwindSafe for Arc
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
diff --git a/iced_renderer/geometry/path/arc/struct.Elliptical.html b/iced_renderer/geometry/path/arc/struct.Elliptical.html
index 5a7d60ef4b7..fcc4c3157c7 100644
--- a/iced_renderer/geometry/path/arc/struct.Elliptical.html
+++ b/iced_renderer/geometry/path/arc/struct.Elliptical.html
@@ -1,15 +1,15 @@
Elliptical in iced_renderer::geometry::path::arc - Rust pub struct Elliptical {
- pub center: Point,
- pub radii: Vector,
- pub rotation: Radians,
- pub start_angle: Radians,
- pub end_angle: Radians,
+ pub center: Point,
+ pub radii: Vector,
+ pub rotation: Radians,
+ pub start_angle: Radians,
+ pub end_angle: Radians,
}
Available on crate feature geometry
only.Expand description
An elliptical Arc
.
-Fields§
§center: Point
The center of the arc.
-§radii: Vector
The radii of the arc’s ellipse. The horizontal and vertical half-dimensions of the ellipse will match the x and y values of the radii vector.
-§rotation: Radians
The clockwise rotation of the arc’s ellipse.
-§start_angle: Radians
The start of the segment’s angle, clockwise rotation from positive x-axis.
-§end_angle: Radians
The end of the segment’s angle, clockwise rotation from positive x-axis.
+Fields§
§center: Point
The center of the arc.
+§radii: Vector
The radii of the arc’s ellipse. The horizontal and vertical half-dimensions of the ellipse will match the x and y values of the radii vector.
+§rotation: Radians
The clockwise rotation of the arc’s ellipse.
+§start_angle: Radians
The start of the segment’s angle, clockwise rotation from positive x-axis.
+§end_angle: Radians
The end of the segment’s angle, clockwise rotation from positive x-axis.
Trait Implementations§
Source§impl Clone for Elliptical
Source§fn clone(&self) -> Elliptical
Returns a copy of the value. Read more1.0.0 · Source§fn clone_from(&mut self, source: &Self)
Performs copy-assignment from source
. Read moreSource§impl Debug for Elliptical
Source§impl From<Arc> for Elliptical
Source§fn from(arc: Arc) -> Elliptical
Converts to this type from the input type.Source§impl Copy for Elliptical
Auto Trait Implementations§
§impl Freeze for Elliptical
§impl RefUnwindSafe for Elliptical
§impl Send for Elliptical
§impl Sync for Elliptical
§impl Unpin for Elliptical
§impl UnwindSafe for Elliptical
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
diff --git a/iced_renderer/geometry/path/struct.Arc.html b/iced_renderer/geometry/path/struct.Arc.html
index 5c7b6a6028e..fcc7c974d9e 100644
--- a/iced_renderer/geometry/path/struct.Arc.html
+++ b/iced_renderer/geometry/path/struct.Arc.html
@@ -1,13 +1,13 @@
Arc in iced_renderer::geometry::path - Rust pub struct Arc {
- pub center: Point,
+ pub center: Point,
pub radius: f32,
- pub start_angle: Radians,
- pub end_angle: Radians,
+ pub start_angle: Radians,
+ pub end_angle: Radians,
}
Available on crate feature geometry
only.Expand description
A segment of a differentiable curve.
-Fields§
§center: Point
The center of the arc.
+Fields§
§center: Point
The center of the arc.
§radius: f32
The radius of the arc.
-§start_angle: Radians
The start of the segment’s angle, clockwise rotation from positive x-axis.
-§end_angle: Radians
The end of the segment’s angle, clockwise rotation from positive x-axis.
+§start_angle: Radians
The start of the segment’s angle, clockwise rotation from positive x-axis.
+§end_angle: Radians
The end of the segment’s angle, clockwise rotation from positive x-axis.
Trait Implementations§
Source§impl From<Arc> for Elliptical
Source§fn from(arc: Arc) -> Elliptical
Converts to this type from the input type.Source§impl Copy for Arc
Auto Trait Implementations§
§impl Freeze for Arc
§impl RefUnwindSafe for Arc
§impl Send for Arc
§impl Sync for Arc
§impl Unpin for Arc
§impl UnwindSafe for Arc
Blanket Implementations§
Source§impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere
T: Real + Zero + Arithmetics + Clone,
Swp: WhitePoint<T>,
diff --git a/iced_renderer/geometry/path/struct.Builder.html b/iced_renderer/geometry/path/struct.Builder.html
index eebc7112727..2c175886666 100644
--- a/iced_renderer/geometry/path/struct.Builder.html
+++ b/iced_renderer/geometry/path/struct.Builder.html
@@ -1,12 +1,12 @@
Builder in iced_renderer::geometry::path - Rust pub struct Builder { /* private fields */ }
Available on crate feature geometry
only.Implementations§
Source§impl Builder
Sourcepub fn move_to(&mut self, point: Point)
Moves the starting point of a new sub-path to the given Point
.
-Sourcepub fn line_to(&mut self, point: Point)
Connects the last point in the Path
to the given Point
with a
+
Sourcepub fn move_to(&mut self, point: Point)
Moves the starting point of a new sub-path to the given Point
.
+Sourcepub fn line_to(&mut self, point: Point)
Connects the last point in the Path
to the given Point
with a
straight line.
Sourcepub fn arc_to(&mut self, a: Point, b: Point, radius: f32)
Adds a circular arc to the Path
with the given control points and
+
Sourcepub fn arc_to(&mut self, a: Point, b: Point, radius: f32)
Adds a circular arc to the Path
with the given control points and
radius.
This essentially draws a straight line segment from the current
position to a
, but fits a circular arc of radius
tangent to that
@@ -17,15 +17,15 @@
See the HTML5 specification of arcTo
for more details and examples.
Sourcepub fn ellipse(&mut self, arc: Elliptical)
Adds an ellipse to the Path
using a clockwise direction.
-Sourcepub fn bezier_curve_to(&mut self, control_a: Point, control_b: Point, to: Point)
Adds a cubic Bézier curve to the Path
given its two control points
+
Sourcepub fn bezier_curve_to(&mut self, control_a: Point, control_b: Point, to: Point)
Adds a cubic Bézier curve to the Path
given its two control points
and its end point.
-Sourcepub fn quadratic_curve_to(&mut self, control: Point, to: Point)
Adds a quadratic Bézier curve to the Path
given its control point
+
Sourcepub fn quadratic_curve_to(&mut self, control: Point, to: Point)
Adds a quadratic Bézier curve to the Path
given its control point
and its end point.
-Sourcepub fn rectangle(&mut self, top_left: Point, size: Size)
Adds a rectangle to the Path
given its top-left corner coordinate
+
Sourcepub fn rectangle(&mut self, top_left: Point, size: Size)
Adds a rectangle to the Path
given its top-left corner coordinate
and its Size
.
-Sourcepub fn rounded_rectangle(&mut self, top_left: Point, size: Size, radius: Radius)
Adds a rounded rectangle to the Path
given its top-left
-corner coordinate its Size
and border::Radius
.
-Sourcepub fn circle(&mut self, center: Point, radius: f32)
Adds a circle to the Path
given its center coordinate and its
+
Sourcepub fn rounded_rectangle(&mut self, top_left: Point, size: Size, radius: Radius)
Adds a rounded rectangle to the Path
given its top-left
+corner coordinate its [Size
] and [border::Radius
].
+Sourcepub fn circle(&mut self, center: Point, radius: f32)
Adds a circle to the Path
given its center coordinate and its
radius.
Sourcepub fn close(&mut self)
Closes the current sub-path in the Path
with a straight line to
the starting point.
diff --git a/iced_renderer/geometry/path/struct.Path.html b/iced_renderer/geometry/path/struct.Path.html
index 758839df363..40563dad5d5 100644
--- a/iced_renderer/geometry/path/struct.Path.html
+++ b/iced_renderer/geometry/path/struct.Path.html
@@ -2,13 +2,13 @@
A single Path
can represent different kinds of 2D shapes!
Implementations§
Source§impl Path
Sourcepub fn line(from: Point, to: Point) -> Path
Creates a new Path
representing a line segment given its starting
+
Sourcepub fn line(from: Point, to: Point) -> Path
Creates a new Path
representing a line segment given its starting
and end points.
-Sourcepub fn rectangle(top_left: Point, size: Size) -> Path
Creates a new Path
representing a rectangle given its top-left
+
Sourcepub fn rectangle(top_left: Point, size: Size) -> Path
Creates a new Path
representing a rectangle given its top-left
corner coordinate and its Size
.
-Sourcepub fn rounded_rectangle(top_left: Point, size: Size, radius: Radius) -> Path
Creates a new Path
representing a rounded rectangle given its top-left
-corner coordinate, its Size
and border::Radius
.
-Sourcepub fn circle(center: Point, radius: f32) -> Path
Creates a new Path
representing a circle given its center
+
Sourcepub fn rounded_rectangle(top_left: Point, size: Size, radius: Radius) -> Path
Creates a new Path
representing a rounded rectangle given its top-left
+corner coordinate, its [Size
] and [border::Radius
].
+Sourcepub fn circle(center: Point, radius: f32) -> Path
Creates a new Path
representing a circle given its center
coordinate and its radius.
Sourcepub fn raw(&self) -> &Path
Returns the internal lyon_path::Path
.
Sourcepub fn transform(
diff --git a/iced_renderer/geometry/stroke/enum.Style.html b/iced_renderer/geometry/stroke/enum.Style.html
index 644608e4b2a..31d0525c434 100644
--- a/iced_renderer/geometry/stroke/enum.Style.html
+++ b/iced_renderer/geometry/stroke/enum.Style.html
@@ -1,10 +1,10 @@
Style in iced_renderer::geometry::stroke - Rust