pub fn default(theme: &Theme) -> Style
Expand description
The default style of the list of a Menu
.
pub struct Style {
+Style in iced::overlay::menu - Rust pub struct Style {
pub background: Background,
pub border: Border,
pub text_color: Color,
@@ -10,8 +10,8 @@
§text_color: Color
The text Color
of the menu.
§selected_text_color: Color
The text Color
of a selected option in the menu.
§selected_background: Background
The background Color
of a selected option in the menu.
-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
+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>,
Dwp: WhitePoint<T>,
diff --git a/iced/overlay/menu/trait.Catalog.html b/iced/overlay/menu/trait.Catalog.html
index 85077ee847..2cd7682c9f 100644
--- a/iced/overlay/menu/trait.Catalog.html
+++ b/iced/overlay/menu/trait.Catalog.html
@@ -1,4 +1,4 @@
-Catalog in iced::overlay::menu - Rust pub trait Catalog: Catalog {
+Catalog in iced::overlay::menu - Rust pub trait Catalog: Catalog {
type Class<'a>;
// Required methods
@@ -8,8 +8,8 @@
// Provided method
fn default_scrollable<'a>() -> Self::Class<'a> { ... }
}
Expand description
The theme catalog of a Menu
.
-Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.
-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.
Implementors§
\ No newline at end of file
+
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.
+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.
Implementors§
\ No newline at end of file
diff --git a/iced/overlay/menu/type.StyleFn.html b/iced/overlay/menu/type.StyleFn.html
index 79ae86652e..811357757e 100644
--- a/iced/overlay/menu/type.StyleFn.html
+++ b/iced/overlay/menu/type.StyleFn.html
@@ -1,2 +1,2 @@
-StyleFn in iced::overlay::menu - Rust pub type StyleFn<'a, Theme> = Box<dyn Fn(&Theme) -> Style + 'a>;
Expand description
A styling function for a Menu
.
+StyleFn in iced::overlay::menu - Rust
\ No newline at end of file
diff --git a/iced/theme/enum.Theme.html b/iced/theme/enum.Theme.html
index 5cd107203a..9023616534 100644
--- a/iced/theme/enum.Theme.html
+++ b/iced/theme/enum.Theme.html
@@ -56,7 +56,7 @@
a custom generator of a palette::Extended
.
Sourcepub fn extended_palette(&self) -> &Extended
Returns the palette::Extended
of the Theme
.
-
Trait Implementations§
Source§impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>
The default class produced by the Catalog
.Source§fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style
The Style
of a class with the given status.Source§fn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.
Trait Implementations§
Source§impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>
The default class produced by the Catalog
.Source§fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style
The Style
of a class with the given status.Source§fn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.Source§impl Catalog for Theme
Source§impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme, Status) -> Style + 'a>
The default class produced by the Catalog
.Source§fn style(
&self,
class: &Box<dyn Fn(&Theme, Status) -> Style + '_>,
status: Status,
diff --git a/iced/widget/enum.Theme.html b/iced/widget/enum.Theme.html
index 4ab6a55154..e039838d83 100644
--- a/iced/widget/enum.Theme.html
+++ b/iced/widget/enum.Theme.html
@@ -56,7 +56,7 @@
a custom generator of a palette::Extended
.
Sourcepub fn extended_palette(&self) -> &Extended
Returns the palette::Extended
of the Theme
.
-
Trait Implementations§
Source§impl Catalog for Theme
impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>
fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>
Catalog
.Source§fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style
fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style
Style
of a class with the given status.Source§fn default_scrollable<'a>() -> Self::Class<'a>
fn default_scrollable<'a>() -> Self::Class<'a>
Menu
.Trait Implementations§
Source§impl Catalog for Theme
impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>
fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>
Catalog
.Source§fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style
fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style
Style
of a class with the given status.Source§fn default_scrollable<'a>() -> Self::Class<'a>
fn default_scrollable<'a>() -> Self::Class<'a>
Menu
.Source§impl Catalog for Theme
impl Catalog for Theme
Source§impl Catalog for Theme
impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme, Status) -> Style + 'a>
fn default<'a>() -> Box<dyn Fn(&Theme, Status) -> Style + 'a>
Catalog
.Source§fn style(
&self,
class: &Box<dyn Fn(&Theme, Status) -> Style + '_>,
status: Status,
diff --git a/iced/widget/overlay/menu/fn.default.html b/iced/widget/overlay/menu/fn.default.html
index 5d57469298..8ca2da9779 100644
--- a/iced/widget/overlay/menu/fn.default.html
+++ b/iced/widget/overlay/menu/fn.default.html
@@ -1,2 +1,2 @@
-default in iced::widget::overlay::menu - Rust pub fn default(theme: &Theme) -> Style
Expand description
The default style of the list of a Menu
.
+default in iced::widget::overlay::menu - Rust
\ No newline at end of file
diff --git a/iced/widget/overlay/menu/struct.Style.html b/iced/widget/overlay/menu/struct.Style.html
index 1721b25f09..bce0e5ef9e 100644
--- a/iced/widget/overlay/menu/struct.Style.html
+++ b/iced/widget/overlay/menu/struct.Style.html
@@ -1,4 +1,4 @@
-Style in iced::widget::overlay::menu - Rust pub struct Style {
+Style in iced::widget::overlay::menu - Rust pub struct Style {
pub background: Background,
pub border: Border,
pub text_color: Color,
@@ -10,8 +10,8 @@
§text_color: Color
The text Color
of the menu.
§selected_text_color: Color
The text Color
of a selected option in the menu.
§selected_background: Background
The background Color
of a selected option in the menu.
-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
+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>,
Dwp: WhitePoint<T>,
diff --git a/iced/widget/overlay/menu/trait.Catalog.html b/iced/widget/overlay/menu/trait.Catalog.html
index 458a17ea1a..ff0dfbc942 100644
--- a/iced/widget/overlay/menu/trait.Catalog.html
+++ b/iced/widget/overlay/menu/trait.Catalog.html
@@ -1,4 +1,4 @@
-Catalog in iced::widget::overlay::menu - Rust pub trait Catalog: Catalog {
+Catalog in iced::widget::overlay::menu - Rust pub trait Catalog: Catalog {
type Class<'a>;
// Required methods
@@ -8,8 +8,8 @@
// Provided method
fn default_scrollable<'a>() -> Self::Class<'a> { ... }
}
Expand description
The theme catalog of a Menu
.
-Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.
-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.
Implementors§
\ No newline at end of file
+
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.
+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.
Implementors§
\ No newline at end of file
diff --git a/iced/widget/overlay/menu/type.StyleFn.html b/iced/widget/overlay/menu/type.StyleFn.html
index 2db6a78b57..456d42a8eb 100644
--- a/iced/widget/overlay/menu/type.StyleFn.html
+++ b/iced/widget/overlay/menu/type.StyleFn.html
@@ -1,2 +1,2 @@
-StyleFn in iced::widget::overlay::menu - Rust pub type StyleFn<'a, Theme> = Box<dyn Fn(&Theme) -> Style + 'a>;
Expand description
A styling function for a Menu
.
+StyleFn in iced::widget::overlay::menu - Rust
\ No newline at end of file
diff --git a/iced/widget/struct.Lazy.html b/iced/widget/struct.Lazy.html
index 3111788aa1..3c2e503ff7 100644
--- a/iced/widget/struct.Lazy.html
+++ b/iced/widget/struct.Lazy.html
@@ -6,12 +6,12 @@
view: impl Fn(&Dependency) -> View + 'a,
) -> Lazy<'a, Message, Theme, Renderer, Dependency, View>Creates a new Lazy
widget with the given data Dependency
and a
closure that can turn this data into a widget tree.
-Trait Implementations§
Trait Implementations§
Source§impl<'a, Message, Theme, Renderer, Dependency, View> From<Lazy<'a, Message, Theme, Renderer, Dependency, View>> for Element<'a, Message, Theme, Renderer>
Source§impl<'a, Message, Theme, Renderer, Dependency, View> Widget<Message, Theme, Renderer> for Lazy<'a, Message, Theme, Renderer, Dependency, View>where
View: Into<Element<'static, Message, Theme, Renderer>> + 'static,
diff --git a/iced/widget/theme/enum.Theme.html b/iced/widget/theme/enum.Theme.html
index c4001d503f..bbf74e6131 100644
--- a/iced/widget/theme/enum.Theme.html
+++ b/iced/widget/theme/enum.Theme.html
@@ -56,7 +56,7 @@
a custom generator of a palette::Extended
.
Sourcepub fn extended_palette(&self) -> &Extended
Returns the palette::Extended
of the Theme
.
-
Trait Implementations§
Source§impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>
The default class produced by the Catalog
.Source§fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style
The Style
of a class with the given status.Source§fn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.
Trait Implementations§
Source§impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>
The default class produced by the Catalog
.Source§fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style
The Style
of a class with the given status.Source§fn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.Source§impl Catalog for Theme
Source§impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme, Status) -> Style + 'a>
The default class produced by the Catalog
.Source§fn style(
&self,
class: &Box<dyn Fn(&Theme, Status) -> Style + '_>,
status: Status,
diff --git a/iced_renderer/fallback/enum.Renderer.html b/iced_renderer/fallback/enum.Renderer.html
index 679773801b..20261d78a4 100644
--- a/iced_renderer/fallback/enum.Renderer.html
+++ b/iced_renderer/fallback/enum.Renderer.html
@@ -43,9 +43,9 @@
A: Renderer,
B: Renderer,
Source§impl<A, B> Renderer for Renderer<A, B>where
- A: Renderer,
- 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>where
+ A: Renderer,
+ 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 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>where
A: Freeze,
diff --git a/iced_renderer/geometry/frame/trait.Backend.html b/iced_renderer/geometry/frame/trait.Backend.html
index b6bb80cdd0..e6fd391427 100644
--- a/iced_renderer/geometry/frame/trait.Backend.html
+++ b/iced_renderer/geometry/frame/trait.Backend.html
@@ -50,14 +50,14 @@
_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 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>(
+)
§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) -> <() 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,
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>)
§impl Backend for Frame
§type Geometry = Geometry
§fn width(&self) -> f32
§fn height(&self) -> f32
§fn size(&self) -> Size
§fn center(&self) -> Point
§fn fill(&mut self, path: &Path, fill: impl Into<Fill>)
§fn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
§fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
§fn stroke_rectangle<'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>)
§impl Backend for Frame
§type Geometry = Geometry
§fn width(&self) -> f32
§fn height(&self) -> f32
§fn size(&self) -> Size
§fn center(&self) -> Point
§fn fill(&mut self, path: &Path, fill: impl Into<Fill>)
§fn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
§fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
§fn stroke_rectangle<'a>(
&mut self,
top_left: Point,
size: Size,
stroke: impl Into<Stroke<'a>>,
-)
§fn fill_text(&mut self, text: impl Into<Text>)
§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 push_transform(&mut self)
§fn pop_transform(&mut self)
§fn draft(&mut self, clip_bounds: Rectangle) -> Frame
§fn paste(&mut self, frame: Frame)
§fn into_geometry(self) -> <Frame as Backend>::Geometry
§fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
§fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
Implementors§
\ No newline at end of file
+)§fn fill_text(&mut self, text: impl Into<Text>)
§fn push_transform(&mut self)
§fn pop_transform(&mut self)
§fn draft(&mut self, clip_bounds: Rectangle) -> Frame
§fn paste(&mut self, frame: Frame)
§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 into_geometry(self) -> Geometry
§fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
§fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
Implementors§
\ No newline at end of file
diff --git a/iced_renderer/geometry/trait.Renderer.html b/iced_renderer/geometry/trait.Renderer.html
index 1305a960e5..ef4c068292 100644
--- a/iced_renderer/geometry/trait.Renderer.html
+++ b/iced_renderer/geometry/trait.Renderer.html
@@ -10,6 +10,6 @@
fn style(
&self,
class: &Box<dyn Fn(&Theme, Status) -> Style + '_>,
status: Status,
diff --git a/iced/widget/overlay/menu/fn.default.html b/iced/widget/overlay/menu/fn.default.html
index 5d57469298..8ca2da9779 100644
--- a/iced/widget/overlay/menu/fn.default.html
+++ b/iced/widget/overlay/menu/fn.default.html
@@ -1,2 +1,2 @@
-default in iced::widget::overlay::menu - Rust pub fn default(theme: &Theme) -> Style
Expand description
The default style of the list of a Menu
.
+default in iced::widget::overlay::menu - Rust
\ No newline at end of file
diff --git a/iced/widget/overlay/menu/struct.Style.html b/iced/widget/overlay/menu/struct.Style.html
index 1721b25f09..bce0e5ef9e 100644
--- a/iced/widget/overlay/menu/struct.Style.html
+++ b/iced/widget/overlay/menu/struct.Style.html
@@ -1,4 +1,4 @@
-Style in iced::widget::overlay::menu - Rust pub struct Style {
+Style in iced::widget::overlay::menu - Rust pub struct Style {
pub background: Background,
pub border: Border,
pub text_color: Color,
@@ -10,8 +10,8 @@
§text_color: Color
The text Color
of the menu.
§selected_text_color: Color
The text Color
of a selected option in the menu.
§selected_background: Background
The background Color
of a selected option in the menu.
-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
+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>,
Dwp: WhitePoint<T>,
diff --git a/iced/widget/overlay/menu/trait.Catalog.html b/iced/widget/overlay/menu/trait.Catalog.html
index 458a17ea1a..ff0dfbc942 100644
--- a/iced/widget/overlay/menu/trait.Catalog.html
+++ b/iced/widget/overlay/menu/trait.Catalog.html
@@ -1,4 +1,4 @@
-Catalog in iced::widget::overlay::menu - Rust pub trait Catalog: Catalog {
+Catalog in iced::widget::overlay::menu - Rust pub trait Catalog: Catalog {
type Class<'a>;
// Required methods
@@ -8,8 +8,8 @@
// Provided method
fn default_scrollable<'a>() -> Self::Class<'a> { ... }
}
Expand description
The theme catalog of a Menu
.
-Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.
-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.
Implementors§
\ No newline at end of file
+
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.
+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.
Implementors§
\ No newline at end of file
diff --git a/iced/widget/overlay/menu/type.StyleFn.html b/iced/widget/overlay/menu/type.StyleFn.html
index 2db6a78b57..456d42a8eb 100644
--- a/iced/widget/overlay/menu/type.StyleFn.html
+++ b/iced/widget/overlay/menu/type.StyleFn.html
@@ -1,2 +1,2 @@
-StyleFn in iced::widget::overlay::menu - Rust pub type StyleFn<'a, Theme> = Box<dyn Fn(&Theme) -> Style + 'a>;
Expand description
A styling function for a Menu
.
+StyleFn in iced::widget::overlay::menu - Rust
\ No newline at end of file
diff --git a/iced/widget/struct.Lazy.html b/iced/widget/struct.Lazy.html
index 3111788aa1..3c2e503ff7 100644
--- a/iced/widget/struct.Lazy.html
+++ b/iced/widget/struct.Lazy.html
@@ -6,12 +6,12 @@
view: impl Fn(&Dependency) -> View + 'a,
) -> Lazy<'a, Message, Theme, Renderer, Dependency, View>Creates a new Lazy
widget with the given data Dependency
and a
closure that can turn this data into a widget tree.
-Trait Implementations§
Trait Implementations§
Source§impl<'a, Message, Theme, Renderer, Dependency, View> From<Lazy<'a, Message, Theme, Renderer, Dependency, View>> for Element<'a, Message, Theme, Renderer>
Source§impl<'a, Message, Theme, Renderer, Dependency, View> Widget<Message, Theme, Renderer> for Lazy<'a, Message, Theme, Renderer, Dependency, View>where
View: Into<Element<'static, Message, Theme, Renderer>> + 'static,
diff --git a/iced/widget/theme/enum.Theme.html b/iced/widget/theme/enum.Theme.html
index c4001d503f..bbf74e6131 100644
--- a/iced/widget/theme/enum.Theme.html
+++ b/iced/widget/theme/enum.Theme.html
@@ -56,7 +56,7 @@
a custom generator of a palette::Extended
.
Sourcepub fn extended_palette(&self) -> &Extended
Returns the palette::Extended
of the Theme
.
-
Trait Implementations§
Source§impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>
The default class produced by the Catalog
.Source§fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style
The Style
of a class with the given status.Source§fn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.
Trait Implementations§
Source§impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>
The default class produced by the Catalog
.Source§fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style
The Style
of a class with the given status.Source§fn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.Source§impl Catalog for Theme
Source§impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme, Status) -> Style + 'a>
The default class produced by the Catalog
.Source§fn style(
&self,
class: &Box<dyn Fn(&Theme, Status) -> Style + '_>,
status: Status,
diff --git a/iced_renderer/fallback/enum.Renderer.html b/iced_renderer/fallback/enum.Renderer.html
index 679773801b..20261d78a4 100644
--- a/iced_renderer/fallback/enum.Renderer.html
+++ b/iced_renderer/fallback/enum.Renderer.html
@@ -43,9 +43,9 @@
A: Renderer,
B: Renderer,
Source§impl<A, B> Renderer for Renderer<A, B>where
- A: Renderer,
- 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>where
+ A: Renderer,
+ 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 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>where
A: Freeze,
diff --git a/iced_renderer/geometry/frame/trait.Backend.html b/iced_renderer/geometry/frame/trait.Backend.html
index b6bb80cdd0..e6fd391427 100644
--- a/iced_renderer/geometry/frame/trait.Backend.html
+++ b/iced_renderer/geometry/frame/trait.Backend.html
@@ -50,14 +50,14 @@
_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 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>(
+)
§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) -> <() 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,
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>)
§impl Backend for Frame
§type Geometry = Geometry
§fn width(&self) -> f32
§fn height(&self) -> f32
§fn size(&self) -> Size
§fn center(&self) -> Point
§fn fill(&mut self, path: &Path, fill: impl Into<Fill>)
§fn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
§fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
§fn stroke_rectangle<'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>)
§impl Backend for Frame
§type Geometry = Geometry
§fn width(&self) -> f32
§fn height(&self) -> f32
§fn size(&self) -> Size
§fn center(&self) -> Point
§fn fill(&mut self, path: &Path, fill: impl Into<Fill>)
§fn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
§fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
§fn stroke_rectangle<'a>(
&mut self,
top_left: Point,
size: Size,
stroke: impl Into<Stroke<'a>>,
-)
§fn fill_text(&mut self, text: impl Into<Text>)
§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 push_transform(&mut self)
§fn pop_transform(&mut self)
§fn draft(&mut self, clip_bounds: Rectangle) -> Frame
§fn paste(&mut self, frame: Frame)
§fn into_geometry(self) -> <Frame as Backend>::Geometry
§fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
§fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
Implementors§
\ No newline at end of file
+)§fn fill_text(&mut self, text: impl Into<Text>)
§fn push_transform(&mut self)
§fn pop_transform(&mut self)
§fn draft(&mut self, clip_bounds: Rectangle) -> Frame
§fn paste(&mut self, frame: Frame)
§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 into_geometry(self) -> Geometry
§fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
§fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
Implementors§
\ No newline at end of file
diff --git a/iced_renderer/geometry/trait.Renderer.html b/iced_renderer/geometry/trait.Renderer.html
index 1305a960e5..ef4c068292 100644
--- a/iced_renderer/geometry/trait.Renderer.html
+++ b/iced_renderer/geometry/trait.Renderer.html
@@ -10,6 +10,6 @@
pub fn default(theme: &Theme) -> Style
Expand description
The default style of the list of a Menu
.
pub struct Style {
+Style in iced::widget::overlay::menu - Rust pub struct Style {
pub background: Background,
pub border: Border,
pub text_color: Color,
@@ -10,8 +10,8 @@
§text_color: Color
The text Color
of the menu.
§selected_text_color: Color
The text Color
of a selected option in the menu.
§selected_background: Background
The background Color
of a selected option in the menu.
-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
+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>,
Dwp: WhitePoint<T>,
diff --git a/iced/widget/overlay/menu/trait.Catalog.html b/iced/widget/overlay/menu/trait.Catalog.html
index 458a17ea1a..ff0dfbc942 100644
--- a/iced/widget/overlay/menu/trait.Catalog.html
+++ b/iced/widget/overlay/menu/trait.Catalog.html
@@ -1,4 +1,4 @@
-Catalog in iced::widget::overlay::menu - Rust pub trait Catalog: Catalog {
+Catalog in iced::widget::overlay::menu - Rust pub trait Catalog: Catalog {
type Class<'a>;
// Required methods
@@ -8,8 +8,8 @@
// Provided method
fn default_scrollable<'a>() -> Self::Class<'a> { ... }
}
Expand description
The theme catalog of a Menu
.
-Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.
-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.
Implementors§
\ No newline at end of file
+
Required Associated Types§
Required Methods§
Provided Methods§
Sourcefn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.
+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.
Implementors§
\ No newline at end of file
diff --git a/iced/widget/overlay/menu/type.StyleFn.html b/iced/widget/overlay/menu/type.StyleFn.html
index 2db6a78b57..456d42a8eb 100644
--- a/iced/widget/overlay/menu/type.StyleFn.html
+++ b/iced/widget/overlay/menu/type.StyleFn.html
@@ -1,2 +1,2 @@
-StyleFn in iced::widget::overlay::menu - Rust pub type StyleFn<'a, Theme> = Box<dyn Fn(&Theme) -> Style + 'a>;
Expand description
A styling function for a Menu
.
+StyleFn in iced::widget::overlay::menu - Rust
\ No newline at end of file
diff --git a/iced/widget/struct.Lazy.html b/iced/widget/struct.Lazy.html
index 3111788aa1..3c2e503ff7 100644
--- a/iced/widget/struct.Lazy.html
+++ b/iced/widget/struct.Lazy.html
@@ -6,12 +6,12 @@
view: impl Fn(&Dependency) -> View + 'a,
) -> Lazy<'a, Message, Theme, Renderer, Dependency, View>Creates a new Lazy
widget with the given data Dependency
and a
closure that can turn this data into a widget tree.
-Trait Implementations§
Trait Implementations§
Source§impl<'a, Message, Theme, Renderer, Dependency, View> From<Lazy<'a, Message, Theme, Renderer, Dependency, View>> for Element<'a, Message, Theme, Renderer>
Source§impl<'a, Message, Theme, Renderer, Dependency, View> Widget<Message, Theme, Renderer> for Lazy<'a, Message, Theme, Renderer, Dependency, View>where
View: Into<Element<'static, Message, Theme, Renderer>> + 'static,
diff --git a/iced/widget/theme/enum.Theme.html b/iced/widget/theme/enum.Theme.html
index c4001d503f..bbf74e6131 100644
--- a/iced/widget/theme/enum.Theme.html
+++ b/iced/widget/theme/enum.Theme.html
@@ -56,7 +56,7 @@
a custom generator of a palette::Extended
.
Sourcepub fn extended_palette(&self) -> &Extended
Returns the palette::Extended
of the Theme
.
-
Trait Implementations§
Source§impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>
The default class produced by the Catalog
.Source§fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style
The Style
of a class with the given status.Source§fn default_scrollable<'a>() -> Self::Class<'a>
The default class for the scrollable of the Menu
.
Trait Implementations§
Source§impl Catalog for Theme
impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>
fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>
Catalog
.Source§fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style
fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style
Style
of a class with the given status.Source§fn default_scrollable<'a>() -> Self::Class<'a>
fn default_scrollable<'a>() -> Self::Class<'a>
Menu
.Source§impl Catalog for Theme
impl Catalog for Theme
Source§impl Catalog for Theme
impl Catalog for Theme
Source§fn default<'a>() -> Box<dyn Fn(&Theme, Status) -> Style + 'a>
fn default<'a>() -> Box<dyn Fn(&Theme, Status) -> Style + 'a>
Catalog
.Source§fn style(
&self,
class: &Box<dyn Fn(&Theme, Status) -> Style + '_>,
status: Status,
diff --git a/iced_renderer/fallback/enum.Renderer.html b/iced_renderer/fallback/enum.Renderer.html
index 679773801b..20261d78a4 100644
--- a/iced_renderer/fallback/enum.Renderer.html
+++ b/iced_renderer/fallback/enum.Renderer.html
@@ -43,9 +43,9 @@
A: Renderer,
B: Renderer,
fn style( &self, class: &Box<dyn Fn(&Theme, Status) -> Style + '_>, status: Status, diff --git a/iced_renderer/fallback/enum.Renderer.html b/iced_renderer/fallback/enum.Renderer.html index 679773801b..20261d78a4 100644 --- a/iced_renderer/fallback/enum.Renderer.html +++ b/iced_renderer/fallback/enum.Renderer.html @@ -43,9 +43,9 @@ A: Renderer, B: Renderer,
Source§impl<A, B> Renderer for Renderer<A, B>where
- A: Renderer,
- B: Renderer,
Available on crate feature wgpu
only.
impl<A, B> Renderer for Renderer<A, B>where
- A: Renderer,
- B: Renderer,
wgpu
only.Source§fn draw_primitive(&mut self, bounds: Rectangle, primitive: impl Primitive)
fn draw_primitive(&mut self, bounds: Rectangle, primitive: impl Primitive)
Source§impl<A, B> Renderer for Renderer<A, B>where
+ A: Renderer,
+ B: Renderer,
Available on crate feature wgpu
only.
impl<A, B> Renderer for Renderer<A, B>where
+ A: Renderer,
+ B: Renderer,
wgpu
only.Source§fn draw_primitive(&mut self, bounds: Rectangle, primitive: impl Primitive)
fn draw_primitive(&mut self, bounds: Rectangle, primitive: impl Primitive)
Source§impl<A, B> Renderer for Renderer<A, B>
Available on crate feature geometry
only.
impl<A, B> Renderer for Renderer<A, B>
geometry
only.Source§type Geometry = Geometry<<A as Renderer>::Geometry, <B as Renderer>::Geometry>
type Geometry = Geometry<<A as Renderer>::Geometry, <B as Renderer>::Geometry>
Source§type Frame = Frame<<A as Renderer>::Frame, <B as Renderer>::Frame>
type Frame = Frame<<A as Renderer>::Frame, <B as Renderer>::Frame>
Frame
this renderer supports.Source§fn new_frame(&self, size: Size) -> Self::Frame
fn new_frame(&self, size: Size) -> Self::Frame
Self::Frame
.Source§fn draw_geometry(&mut self, geometry: Self::Geometry)
fn draw_geometry(&mut self, geometry: Self::Geometry)
Self::Geometry
.Auto Trait Implementations§
impl<A, B> Freeze for Renderer<A, B>where
A: Freeze,
diff --git a/iced_renderer/geometry/frame/trait.Backend.html b/iced_renderer/geometry/frame/trait.Backend.html
index b6bb80cdd0..e6fd391427 100644
--- a/iced_renderer/geometry/frame/trait.Backend.html
+++ b/iced_renderer/geometry/frame/trait.Backend.html
@@ -50,14 +50,14 @@
_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 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>(
+)
§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) -> <() 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,
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>)
§impl Backend for Frame
§type Geometry = Geometry
§fn width(&self) -> f32
§fn height(&self) -> f32
§fn size(&self) -> Size
§fn center(&self) -> Point
§fn fill(&mut self, path: &Path, fill: impl Into<Fill>)
§fn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
§fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
§fn stroke_rectangle<'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>)
§impl Backend for Frame
§type Geometry = Geometry
§fn width(&self) -> f32
§fn height(&self) -> f32
§fn size(&self) -> Size
§fn center(&self) -> Point
§fn fill(&mut self, path: &Path, fill: impl Into<Fill>)
§fn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
§fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
§fn stroke_rectangle<'a>(
&mut self,
top_left: Point,
size: Size,
stroke: impl Into<Stroke<'a>>,
-)
§fn fill_text(&mut self, text: impl Into<Text>)
§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 push_transform(&mut self)
§fn pop_transform(&mut self)
§fn draft(&mut self, clip_bounds: Rectangle) -> Frame
§fn paste(&mut self, frame: Frame)
§fn into_geometry(self) -> <Frame as Backend>::Geometry
§fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
§fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
Implementors§
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) -> <() as Backend>::Geometry
Source§impl Backend for Frame
impl Backend for Frame
type Geometry = Geometry
fn width(&self) -> f32
fn height(&self) -> f32
fn size(&self) -> Size
fn center(&self) -> Point
fn fill(&mut self, path: &Path, fill: impl Into<Fill>)
fn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
fn stroke_rectangle<'a>( +)
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) -> <() as Backend>::Geometry
Source§impl Backend for Frame
impl Backend for Frame
type Geometry = Geometry
fn width(&self) -> f32
fn height(&self) -> f32
fn size(&self) -> Size
fn center(&self) -> Point
fn fill(&mut self, path: &Path, fill: impl Into<Fill>)
fn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
fn stroke_rectangle<'a>( &mut self, top_left: Point, size: Size, stroke: impl Into<Stroke<'a>>, -)
fn fill_text(&mut self, text: impl Into<Text>)
fn push_transform(&mut self)
fn pop_transform(&mut self)
fn draft(&mut self, clip_bounds: Rectangle) -> Frame
fn paste(&mut self, frame: Frame)
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 into_geometry(self) -> Geometry
fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
§impl Backend for Frame
impl Backend for Frame
type Geometry = Geometry
fn width(&self) -> f32
fn height(&self) -> f32
fn size(&self) -> Size
fn center(&self) -> Point
fn fill(&mut self, path: &Path, fill: impl Into<Fill>)
fn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
fn stroke_rectangle<'a>( +)
fn fill_text(&mut self, text: impl Into<Text>)
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 push_transform(&mut self)
fn pop_transform(&mut self)
fn draft(&mut self, clip_bounds: Rectangle) -> Frame
fn paste(&mut self, frame: Frame)
fn into_geometry(self) -> <Frame as Backend>::Geometry
fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
§impl Backend for Frame
impl Backend for Frame
type Geometry = Geometry
fn width(&self) -> f32
fn height(&self) -> f32
fn size(&self) -> Size
fn center(&self) -> Point
fn fill(&mut self, path: &Path, fill: impl Into<Fill>)
fn fill_rectangle(&mut self, top_left: Point, size: Size, fill: impl Into<Fill>)
fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>)
fn stroke_rectangle<'a>( &mut self, top_left: Point, size: Size, stroke: impl Into<Stroke<'a>>, -)
fn fill_text(&mut self, text: impl Into<Text>)
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 push_transform(&mut self)
fn pop_transform(&mut self)
fn draft(&mut self, clip_bounds: Rectangle) -> Frame
fn paste(&mut self, frame: Frame)
fn into_geometry(self) -> <Frame as Backend>::Geometry
fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
fn fill_text(&mut self, text: impl Into<Text>)
fn push_transform(&mut self)
fn pop_transform(&mut self)
fn draft(&mut self, clip_bounds: Rectangle) -> Frame
fn paste(&mut self, frame: Frame)
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 into_geometry(self) -> Geometry
fn draw_image(&mut self, bounds: Rectangle, image: impl Into<Image>)
fn draw_svg(&mut self, bounds: Rectangle, svg: impl Into<Svg>)
Implementors§
Required Methods§
fn new_frame(&self, size: Size) -> Self::Frame
fn new_frame(&self, size: Size) -> Self::Frame
Creates a new Self::Frame
.
fn draw_geometry(&mut self, geometry: Self::Geometry)
fn draw_geometry(&mut self, geometry: Self::Geometry)
Draws the given 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§
Implementors§
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.