diff --git a/iced/enum.Theme.html b/iced/enum.Theme.html index 0dd7e1054a..5fa5f6d8c1 100644 --- a/iced/enum.Theme.html +++ b/iced/enum.Theme.html @@ -56,7 +56,7 @@ a custom generator of a palette::Extended.

Source

pub fn palette(&self) -> Palette

Returns the Palette of the Theme.

Source

pub fn extended_palette(&self) -> &Extended

Returns the palette::Extended of the Theme.

-

Trait Implementations§

Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn code_block<'a>() -> <Theme as Catalog>::Class<'a>

The styling class of a Markdown code block.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn default_input<'a>() -> Self::Class<'a>

The default class for the text input of the ComboBox.
Source§

fn default_menu<'a>() -> Self::Class<'a>

The default class for the menu of the ComboBox.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
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§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> Box<dyn Fn(&Theme, Status) -> Style + 'a>

The default class produced by the Catalog.
Source§

fn style( +

Trait Implementations§

Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn code_block<'a>() -> <Theme as Catalog>::Class<'a>

The styling class of a Markdown code block.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn default_input<'a>() -> Self::Class<'a>

The default class for the text input of the ComboBox.
Source§

fn default_menu<'a>() -> Self::Class<'a>

The default class for the menu of the ComboBox.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
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§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
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/overlay/menu/fn.default.html b/iced/overlay/menu/fn.default.html index ba5df44bf3..bd04444eba 100644 --- a/iced/overlay/menu/fn.default.html +++ b/iced/overlay/menu/fn.default.html @@ -1,2 +1,2 @@ -default in iced::overlay::menu - Rust
iced::overlay::menu

Function default

Source
pub fn default(theme: &Theme) -> Style
Expand description

The default style of the list of a Menu.

+default in iced::overlay::menu - Rust
iced::overlay::menu

Function default

Source
pub fn default(theme: &Theme) -> Style
Expand description

The default style of the list of a Menu.

\ No newline at end of file diff --git a/iced/overlay/menu/struct.Style.html b/iced/overlay/menu/struct.Style.html index 1558dbce0f..0d29c2bbb3 100644 --- a/iced/overlay/menu/struct.Style.html +++ b/iced/overlay/menu/struct.Style.html @@ -1,4 +1,4 @@ -Style in iced::overlay::menu - Rust
iced::overlay::menu

Struct Style

Source
pub struct Style {
+Style in iced::overlay::menu - Rust
iced::overlay::menu

Struct Style

Source
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 Clone for Style

Source§

fn clone(&self) -> Style

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Style

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Style

Source§

fn eq(&self, other: &Style) -> 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, -and should not be overridden without very good reason.
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 S
where +

Trait Implementations§

Source§

impl Clone for Style

Source§

fn clone(&self) -> Style

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Style

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Style

Source§

fn eq(&self, other: &Style) -> 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, +and should not be overridden without very good reason.
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 S
where 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
iced::overlay::menu

Trait Catalog

Source
pub trait Catalog: Catalog {
+Catalog in iced::overlay::menu - Rust
iced::overlay::menu

Trait Catalog

Source
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§

Source

type Class<'a>

The item class of the Catalog.

-

Required Methods§

Source

fn default<'a>() -> Self::Class<'a>

The default class produced by the Catalog.

-
Source

fn style(&self, class: &Self::Class<'_>) -> Style

The Style of a class with the given status.

-

Provided Methods§

Source

fn 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§

Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

\ No newline at end of file +

Required Associated Types§

Source

type Class<'a>

The item class of the Catalog.

+

Required Methods§

Source

fn default<'a>() -> Self::Class<'a>

The default class produced by the Catalog.

+
Source

fn style(&self, class: &Self::Class<'_>) -> Style

The Style of a class with the given status.

+

Provided Methods§

Source

fn 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§

Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

\ 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
iced::overlay::menu

Type Alias StyleFn

Source
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
iced::overlay::menu

Type Alias StyleFn

Source
pub type StyleFn<'a, Theme> = Box<dyn Fn(&Theme) -> Style + 'a>;
Expand description

A styling function for a Menu.

Aliased Type§

struct StyleFn<'a, Theme>(/* private fields */);
\ 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.

Source

pub fn palette(&self) -> Palette

Returns the Palette of the Theme.

Source

pub fn extended_palette(&self) -> &Extended

Returns the palette::Extended of the Theme.

-

Trait Implementations§

Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn code_block<'a>() -> <Theme as Catalog>::Class<'a>

The styling class of a Markdown code block.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn default_input<'a>() -> Self::Class<'a>

The default class for the text input of the ComboBox.
Source§

fn default_menu<'a>() -> Self::Class<'a>

The default class for the menu of the ComboBox.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
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§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> Box<dyn Fn(&Theme, Status) -> Style + 'a>

The default class produced by the Catalog.
Source§

fn style( +

Trait Implementations§

Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn code_block<'a>() -> <Theme as Catalog>::Class<'a>

The styling class of a Markdown code block.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn default_input<'a>() -> Self::Class<'a>

The default class for the text input of the ComboBox.
Source§

fn default_menu<'a>() -> Self::Class<'a>

The default class for the menu of the ComboBox.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
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§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
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.

Source

pub fn palette(&self) -> Palette

Returns the Palette of the Theme.

Source

pub fn extended_palette(&self) -> &Extended

Returns the palette::Extended of the Theme.

-

Trait Implementations§

Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn code_block<'a>() -> <Theme as Catalog>::Class<'a>

The styling class of a Markdown code block.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn default_input<'a>() -> Self::Class<'a>

The default class for the text input of the ComboBox.
Source§

fn default_menu<'a>() -> Self::Class<'a>

The default class for the menu of the ComboBox.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
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§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> Box<dyn Fn(&Theme, Status) -> Style + 'a>

The default class produced by the Catalog.
Source§

fn style( +

Trait Implementations§

Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn code_block<'a>() -> <Theme as Catalog>::Class<'a>

The styling class of a Markdown code block.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn default_input<'a>() -> Self::Class<'a>

The default class for the text input of the ComboBox.
Source§

fn default_menu<'a>() -> Self::Class<'a>

The default class for the menu of the ComboBox.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
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§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
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/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
iced::widget::overlay::menu

Function default

Source
pub fn default(theme: &Theme) -> Style
Expand description

The default style of the list of a Menu.

+default in iced::widget::overlay::menu - Rust
iced::widget::overlay::menu

Function default

Source
pub fn default(theme: &Theme) -> Style
Expand description

The default style of the list of a Menu.

\ 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
iced::widget::overlay::menu

Struct Style

Source
pub struct Style {
+Style in iced::widget::overlay::menu - Rust
iced::widget::overlay::menu

Struct Style

Source
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 Clone for Style

Source§

fn clone(&self) -> Style

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Style

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Style

Source§

fn eq(&self, other: &Style) -> 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, -and should not be overridden without very good reason.
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 S
where +

Trait Implementations§

Source§

impl Clone for Style

Source§

fn clone(&self) -> Style

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Style

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

Formats the value using the given formatter. Read more
Source§

impl PartialEq for Style

Source§

fn eq(&self, other: &Style) -> 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, +and should not be overridden without very good reason.
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 S
where 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
iced::widget::overlay::menu

Trait Catalog

Source
pub trait Catalog: Catalog {
+Catalog in iced::widget::overlay::menu - Rust
iced::widget::overlay::menu

Trait Catalog

Source
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§

Source

type Class<'a>

The item class of the Catalog.

-

Required Methods§

Source

fn default<'a>() -> Self::Class<'a>

The default class produced by the Catalog.

-
Source

fn style(&self, class: &Self::Class<'_>) -> Style

The Style of a class with the given status.

-

Provided Methods§

Source

fn 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§

Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

\ No newline at end of file +

Required Associated Types§

Source

type Class<'a>

The item class of the Catalog.

+

Required Methods§

Source

fn default<'a>() -> Self::Class<'a>

The default class produced by the Catalog.

+
Source

fn style(&self, class: &Self::Class<'_>) -> Style

The Style of a class with the given status.

+

Provided Methods§

Source

fn 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§

Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

\ 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
iced::widget::overlay::menu

Type Alias StyleFn

Source
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
iced::widget::overlay::menu

Type Alias StyleFn

Source
pub type StyleFn<'a, Theme> = Box<dyn Fn(&Theme) -> Style + 'a>;
Expand description

A styling function for a Menu.

Aliased Type§

struct StyleFn<'a, Theme>(/* private fields */);
\ 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§

Source§

impl<'a, Message, Theme, Renderer, Dependency, View> From<Lazy<'a, Message, Theme, Renderer, Dependency, View>> for Element<'a, Message, Theme, Renderer>
where +

Trait Implementations§

Source§

impl<'a, Message, Theme, Renderer, Dependency, View> From<Lazy<'a, Message, Theme, Renderer, Dependency, View>> for Element<'a, Message, Theme, Renderer>
where View: Into<Element<'static, Message, Theme, Renderer>> + 'static, Renderer: Renderer + 'static, Message: 'static, Theme: 'static, - Dependency: Hash + 'a,

Source§

fn from( + Dependency: Hash + 'a,

Source§

fn from( lazy: Lazy<'a, Message, Theme, Renderer, Dependency, View>, ) -> Element<'a, Message, Theme, Renderer>

Converts to this type from the input type.
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.

Source

pub fn palette(&self) -> Palette

Returns the Palette of the Theme.

Source

pub fn extended_palette(&self) -> &Extended

Returns the palette::Extended of the Theme.

-

Trait Implementations§

Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn code_block<'a>() -> <Theme as Catalog>::Class<'a>

The styling class of a Markdown code block.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn default_input<'a>() -> Self::Class<'a>

The default class for the text input of the ComboBox.
Source§

fn default_menu<'a>() -> Self::Class<'a>

The default class for the menu of the ComboBox.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
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§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> Box<dyn Fn(&Theme, Status) -> Style + 'a>

The default class produced by the Catalog.
Source§

fn style( +

Trait Implementations§

Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>, status: Status) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn code_block<'a>() -> <Theme as Catalog>::Class<'a>

The styling class of a Markdown code block.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

fn default_input<'a>() -> Self::Class<'a>

The default class for the text input of the ComboBox.
Source§

fn default_menu<'a>() -> Self::Class<'a>

The default class for the menu of the ComboBox.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
Source§

fn default<'a>() -> <Theme as Catalog>::Class<'a>

The default class produced by the Catalog.
Source§

fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of the Catalog.
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§

type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

The item class of this Catalog.
Source§

fn default<'a>() -> Box<dyn Fn(&Theme) -> Style + 'a>

The default class produced by this Catalog.
Source§

fn style(&self, class: &Box<dyn Fn(&Theme) -> Style + '_>) -> Style

The Style of a class with the given status.
Source§

impl Catalog for Theme

Source§

type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

The item class of the Catalog.
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§

fn measure_svg(&self, handle: &Handle) -> Size<u32>

Returns the default dimensions of an SVG for the given [Handle].
Source§

fn draw_svg(&mut self, svg: Svg, bounds: Rectangle)

Draws an SVG with the given [Handle], an optional [Color] filter, and inside the provided bounds.
Source§

impl<A, B> Renderer for Renderer<A, B>
where A: Renderer, - B: Renderer,

Source§

fn draw_mesh(&mut self, mesh: Mesh)

Draws the given [Mesh].
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 + B: Renderer,

Source§

fn draw_mesh(&mut self, mesh: Mesh)

Draws the given [Mesh].
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 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 @@

type Frame: Backend<Geometry = Self::Geometry>

The kind of Frame this renderer supports.

Required Methods§

fn new_frame(&self, size: Size) -> Self::Frame

Creates a new Self::Frame.

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§

§

impl Renderer for ()

Available on debug-assertions enabled only.
§

type Geometry = ()

§

type Frame = ()

§

fn new_frame(&self, _size: Size) -> <() as Renderer>::Frame

§

fn draw_geometry(&mut self, _geometry: <() as Renderer>::Geometry)

Source§

impl Renderer for Renderer

Source§

type Geometry = Geometry

Source§

type Frame = Frame

Source§

fn new_frame(&self, size: Size) -> <Renderer as Renderer>::Frame

Source§

fn draw_geometry(&mut self, geometry: <Renderer as Renderer>::Geometry)

§

impl Renderer for Renderer

§

type Geometry = Geometry

§

type Frame = Frame

§

fn new_frame(&self, size: Size) -> <Renderer as Renderer>::Frame

§

fn draw_geometry(&mut self, geometry: <Renderer as Renderer>::Geometry)

Implementors§

Source§

impl<A, B> Renderer for iced_renderer::fallback::Renderer<A, B>
where +

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§

§

impl Renderer for ()

Available on debug-assertions enabled only.
§

type Geometry = ()

§

type Frame = ()

§

fn new_frame(&self, _size: Size) -> <() as Renderer>::Frame

§

fn draw_geometry(&mut self, _geometry: <() as Renderer>::Geometry)

Source§

impl Renderer for Renderer

Source§

type Geometry = Geometry

Source§

type Frame = Frame

Source§

fn new_frame(&self, size: Size) -> <Renderer as Renderer>::Frame

Source§

fn draw_geometry(&mut self, geometry: <Renderer as Renderer>::Geometry)

§

impl Renderer for Renderer

§

type Geometry = Geometry

§

type Frame = Frame

§

fn new_frame(&self, size: Size) -> <Renderer as Renderer>::Frame

§

fn draw_geometry(&mut self, geometry: <Renderer as Renderer>::Geometry)

Implementors§

Source§

impl<A, B> Renderer for iced_renderer::fallback::Renderer<A, B>
where A: Renderer, B: Renderer,

Source§

type Geometry = Geometry<<A as Renderer>::Geometry, <B as Renderer>::Geometry>

Source§

type Frame = Frame<<A as Renderer>::Frame, <B as Renderer>::Frame>

\ No newline at end of file diff --git a/iced_renderer/index.html b/iced_renderer/index.html index af2a28ae6f..b92a7bf908 100644 --- a/iced_renderer/index.html +++ b/iced_renderer/index.html @@ -1,2 +1,2 @@ iced_renderer - Rust

Crate iced_renderer

Source
Expand description

The official renderer for iced.

-

Re-exports§

  • pub use iced_wgpu as wgpu;
    wgpu
  • pub use iced_graphics as graphics;
  • pub use iced_graphics::core;

Modules§

  • Compose existing renderers and create type-safe fallback strategies.
  • geometrygeometry
    Build and draw geometry.

Type Aliases§

\ No newline at end of file +

Re-exports§

Modules§

Type Aliases§

\ No newline at end of file diff --git a/iced_renderer/type.Compositor.html b/iced_renderer/type.Compositor.html index ed480d9002..9e5d4180db 100644 --- a/iced_renderer/type.Compositor.html +++ b/iced_renderer/type.Compositor.html @@ -1,7 +1,7 @@ -Compositor in iced_renderer - Rust
iced_renderer

Type Alias Compositor

Source
pub type Compositor = Compositor<Compositor, Compositor>;
Expand description

The default graphics compositor for iced.

+Compositor in iced_renderer - Rust
iced_renderer

Type Alias Compositor

Source
pub type Compositor = Compositor<Compositor, Compositor>;
Expand description

The default graphics compositor for iced.

Aliased Type§

enum Compositor {
-    Primary(Compositor),
-    Secondary(Compositor),
-}

Variants§

§

Primary(Compositor)

The primary compositing option.

-
§

Secondary(Compositor)

The secondary (or fallback) compositing option.

+ Primary(Compositor), + Secondary(Compositor), +}

Variants§

§

Primary(Compositor)

The primary compositing option.

+
§

Secondary(Compositor)

The secondary (or fallback) compositing option.

\ No newline at end of file diff --git a/iced_renderer/type.Renderer.html b/iced_renderer/type.Renderer.html index 15cda2bdd0..2fe18a1686 100644 --- a/iced_renderer/type.Renderer.html +++ b/iced_renderer/type.Renderer.html @@ -1,7 +1,7 @@ -Renderer in iced_renderer - Rust
iced_renderer

Type Alias Renderer

Source
pub type Renderer = Renderer<Renderer, Renderer>;
Expand description

The default graphics renderer for iced.

+Renderer in iced_renderer - Rust
iced_renderer

Type Alias Renderer

Source
pub type Renderer = Renderer<Renderer, Renderer>;
Expand description

The default graphics renderer for iced.

Aliased Type§

enum Renderer {
-    Primary(Renderer),
-    Secondary(Renderer),
-}

Variants§

§

Primary(Renderer)

The primary rendering option.

-
§

Secondary(Renderer)

The secondary (or fallback) rendering option.

+ Primary(Renderer), + Secondary(Renderer), +}

Variants§

§

Primary(Renderer)

The primary rendering option.

+
§

Secondary(Renderer)

The secondary (or fallback) rendering option.

\ No newline at end of file diff --git a/iced_wgpu/geometry/enum.Geometry.html b/iced_wgpu/geometry/enum.Geometry.html index 91a3fe252d..201f980bbe 100644 --- a/iced_wgpu/geometry/enum.Geometry.html +++ b/iced_wgpu/geometry/enum.Geometry.html @@ -1,11 +1,11 @@ Geometry in iced_wgpu::geometry - Rust
iced_wgpu::geometry

Enum Geometry

Source
pub enum Geometry {
     Live {
-        meshes: Vec<Mesh>,
-        images: Vec<Image>,
-        text: Vec<Text>,
+        meshes: Vec<Mesh>,
+        images: Vec<Image>,
+        text: Vec<Text>,
     },
     Cached(Cache),
-}
Available on crate feature geometry only.

Variants§

§

Live

Fields

§meshes: Vec<Mesh>
§images: Vec<Image>
§text: Vec<Text>
§

Cached(Cache)

Trait Implementations§

Source§

impl Cached for Geometry

Source§

type Cache = Cache

The type of cache produced.
Source§

fn load(cache: &Self::Cache) -> Self

Loads the Cache into a proper instance.
Source§

fn cache(self, group: Group, previous: Option<Self::Cache>) -> Self::Cache

Caches this value, producing its corresponding Cache.
Source§

impl Debug for Geometry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where +}
Available on crate feature geometry only.

Variants§

§

Live

Fields

§meshes: Vec<Mesh>
§images: Vec<Image>
§text: Vec<Text>
§

Cached(Cache)

Trait Implementations§

Source§

impl Cached for Geometry

Source§

type Cache = Cache

The type of cache produced.
Source§

fn load(cache: &Self::Cache) -> Self

Loads the Cache into a proper instance.
Source§

fn cache(self, group: Group, previous: Option<Self::Cache>) -> Self::Cache

Caches this value, producing its corresponding Cache.
Source§

impl Debug for Geometry

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_wgpu/geometry/struct.Cache.html b/iced_wgpu/geometry/struct.Cache.html index 9a2097e077..95a02c4622 100644 --- a/iced_wgpu/geometry/struct.Cache.html +++ b/iced_wgpu/geometry/struct.Cache.html @@ -1,8 +1,8 @@ Cache in iced_wgpu::geometry - Rust
iced_wgpu::geometry

Struct Cache

Source
pub struct Cache {
     pub meshes: Option<Cache>,
-    pub images: Option<Arc<[Image]>>,
+    pub images: Option<Arc<[Image]>>,
     pub text: Option<Cache>,
-}
Available on crate feature geometry only.

Fields§

§meshes: Option<Cache>§images: Option<Arc<[Image]>>§text: Option<Cache>

Trait Implementations§

Source§

impl Clone for Cache

Source§

fn clone(&self) -> Cache

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Cache

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Cache

Source§

fn default() -> Cache

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Cache

§

impl RefUnwindSafe for Cache

§

impl !Send for Cache

§

impl !Sync for Cache

§

impl Unpin for Cache

§

impl UnwindSafe for Cache

Blanket Implementations§

Source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where +}
Available on crate feature geometry only.

Fields§

§meshes: Option<Cache>§images: Option<Arc<[Image]>>§text: Option<Cache>

Trait Implementations§

Source§

impl Clone for Cache

Source§

fn clone(&self) -> Cache

Returns a copy of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for Cache

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Default for Cache

Source§

fn default() -> Cache

Returns the “default value” for a type. Read more

Auto Trait Implementations§

§

impl Freeze for Cache

§

impl RefUnwindSafe for Cache

§

impl !Send for Cache

§

impl !Sync for Cache

§

impl Unpin for Cache

§

impl UnwindSafe for Cache

Blanket Implementations§

Source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_wgpu/geometry/struct.Frame.html b/iced_wgpu/geometry/struct.Frame.html index 220ec6b5fd..9dab4d9302 100644 --- a/iced_wgpu/geometry/struct.Frame.html +++ b/iced_wgpu/geometry/struct.Frame.html @@ -1,12 +1,12 @@ Frame in iced_wgpu::geometry - Rust
iced_wgpu::geometry

Struct Frame

Source
pub struct Frame { /* private fields */ }
Available on crate feature geometry only.
Expand description

A frame for drawing some geometry.

Implementations§

Source§

impl Frame

Source

pub fn new(size: Size) -> Frame

Creates a new Frame with the given [Size].

Source

pub fn with_clip(bounds: Rectangle) -> Frame

Creates a new Frame with the given clip bounds.

-

Trait Implementations§

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>( +

Trait Implementations§

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 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) -> 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>)

Auto Trait Implementations§

§

impl Freeze for Frame

§

impl RefUnwindSafe for Frame

§

impl Send for Frame

§

impl Sync for Frame

§

impl Unpin for Frame

§

impl UnwindSafe for Frame

Blanket Implementations§

Source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where + 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) -> 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>)

Auto Trait Implementations§

§

impl Freeze for Frame

§

impl RefUnwindSafe for Frame

§

impl Send for Frame

§

impl Sync for Frame

§

impl Unpin for Frame

§

impl UnwindSafe for Frame

Blanket Implementations§

Source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_wgpu/index.html b/iced_wgpu/index.html index a73b823e42..19767cc72b 100644 --- a/iced_wgpu/index.html +++ b/iced_wgpu/index.html @@ -11,4 +11,4 @@
  • Images and SVG, loaded from memory or the file system.
  • Meshes of triangles, useful to draw geometry freely.
  • -

    Re-exports§

    Modules§

    Structs§

    \ No newline at end of file +

    Re-exports§

    • pub use layer::Layer;
    • pub use primitive::Primitive;
    • pub use settings::Settings;
    • pub use geometry::Geometry;
      geometry
    • pub use iced_graphics as graphics;
    • pub use iced_graphics::core;
    • pub use wgpu;

    Modules§

    Structs§

    \ No newline at end of file diff --git a/iced_wgpu/layer/struct.Layer.html b/iced_wgpu/layer/struct.Layer.html index ef130129e4..7853cf8d37 100644 --- a/iced_wgpu/layer/struct.Layer.html +++ b/iced_wgpu/layer/struct.Layer.html @@ -3,24 +3,24 @@ pub quads: Batch, pub triangles: Vec<Item>, pub primitives: Batch, - pub images: Vec<Image>, + pub images: Vec<Image>, pub text: Vec<Item>, /* private fields */ -}

    Fields§

    §bounds: Rectangle§quads: Batch§triangles: Vec<Item>§primitives: Batch§images: Vec<Image>§text: Vec<Item>

    Implementations§

    Source§

    impl Layer

    Source

    pub fn draw_quad( +}

    Fields§

    §bounds: Rectangle§quads: Batch§triangles: Vec<Item>§primitives: Batch§images: Vec<Image>§text: Vec<Item>

    Implementations§

    Source§

    impl Layer

    Source

    pub fn draw_quad( &mut self, quad: Quad, background: Background, transformation: Transformation, )

    Source

    pub fn draw_paragraph( &mut self, - paragraph: &Paragraph, + paragraph: &Paragraph, position: Point, color: Color, clip_bounds: Rectangle, transformation: Transformation, )

    Source

    pub fn draw_editor( &mut self, - editor: &Editor, + editor: &Editor, position: Point, color: Color, clip_bounds: Rectangle, @@ -32,7 +32,7 @@ color: Color, clip_bounds: Rectangle, transformation: Transformation, -)

    Source

    pub fn draw_image(&mut self, image: Image, transformation: Transformation)

    Source

    pub fn draw_raster( +)

    Source

    pub fn draw_image(&mut self, image: Image, transformation: Transformation)

    Source

    pub fn draw_raster( &mut self, image: Image, bounds: Rectangle, @@ -42,20 +42,20 @@ svg: Svg, bounds: Rectangle, transformation: Transformation, -)

    Source

    pub fn draw_mesh(&mut self, mesh: Mesh, transformation: Transformation)

    Source

    pub fn draw_mesh_group( +)

    Source

    pub fn draw_mesh(&mut self, mesh: Mesh, transformation: Transformation)

    Source

    pub fn draw_mesh_group( &mut self, - meshes: Vec<Mesh>, + meshes: Vec<Mesh>, transformation: Transformation, )

    Source

    pub fn draw_mesh_cache(&mut self, cache: Cache, transformation: Transformation)

    Source

    pub fn draw_text_group( &mut self, - text: Vec<Text>, + text: Vec<Text>, transformation: Transformation, )

    Source

    pub fn draw_text_cache(&mut self, cache: Cache, transformation: Transformation)

    Source

    pub fn draw_primitive( &mut self, bounds: Rectangle, primitive: Box<dyn Primitive>, transformation: Transformation, -)

    Trait Implementations§

    Source§

    impl Debug for Layer

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for Layer

    Source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    Source§

    impl Layer for Layer

    Source§

    fn with_bounds(bounds: Rectangle) -> Self

    Creates a new Layer with the given bounds.
    Source§

    fn flush(&mut self)

    Flushes and settles any pending group of primitives in the Layer. Read more
    Source§

    fn resize(&mut self, bounds: Rectangle)

    Resizes the Layer to the given bounds.
    Source§

    fn reset(&mut self)

    Clears all the layers contents and resets its bounds.

    Auto Trait Implementations§

    §

    impl Freeze for Layer

    §

    impl !RefUnwindSafe for Layer

    §

    impl !Send for Layer

    §

    impl !Sync for Layer

    §

    impl Unpin for Layer

    §

    impl !UnwindSafe for Layer

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +)

    Trait Implementations§

    Source§

    impl Debug for Layer

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for Layer

    Source§

    fn default() -> Self

    Returns the “default value” for a type. Read more
    Source§

    impl Layer for Layer

    Source§

    fn with_bounds(bounds: Rectangle) -> Self

    Creates a new [Layer] with the given bounds.
    Source§

    fn flush(&mut self)

    Flushes and settles any pending group of primitives in the [Layer]. Read more
    Source§

    fn resize(&mut self, bounds: Rectangle)

    Resizes the [Layer] to the given bounds.
    Source§

    fn reset(&mut self)

    Clears all the layers contents and resets its bounds.

    Auto Trait Implementations§

    §

    impl Freeze for Layer

    §

    impl !RefUnwindSafe for Layer

    §

    impl !Send for Layer

    §

    impl !Sync for Layer

    §

    impl Unpin for Layer

    §

    impl !UnwindSafe for Layer

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_wgpu/layer/type.Stack.html b/iced_wgpu/layer/type.Stack.html index 291a4f2e89..3232671bf1 100644 --- a/iced_wgpu/layer/type.Stack.html +++ b/iced_wgpu/layer/type.Stack.html @@ -1 +1 @@ -Stack in iced_wgpu::layer - Rust
    iced_wgpu::layer

    Type Alias Stack

    Source
    pub type Stack = Stack<Layer>;

    Aliased Type§

    struct Stack { /* private fields */ }
    \ No newline at end of file +Stack in iced_wgpu::layer - Rust
    iced_wgpu::layer

    Type Alias Stack

    Source
    pub type Stack = Stack<Layer>;

    Aliased Type§

    struct Stack { /* private fields */ }
    \ No newline at end of file diff --git a/iced_wgpu/primitive/trait.Primitive.html b/iced_wgpu/primitive/trait.Primitive.html index b4b8651bde..8013a3ad0c 100644 --- a/iced_wgpu/primitive/trait.Primitive.html +++ b/iced_wgpu/primitive/trait.Primitive.html @@ -11,7 +11,7 @@ format: TextureFormat, storage: &mut Storage, bounds: &Rectangle, - viewport: &Viewport, + viewport: &Viewport, ); fn render( &self, @@ -28,7 +28,7 @@ format: TextureFormat, storage: &mut Storage, bounds: &Rectangle, - viewport: &Viewport, + viewport: &Viewport, )

    Processes the Primitive, allowing for GPU buffer allocation.

    Source

    fn render( &self, diff --git a/iced_wgpu/settings/struct.Settings.html b/iced_wgpu/settings/struct.Settings.html index e19e84a16a..011826e00b 100644 --- a/iced_wgpu/settings/struct.Settings.html +++ b/iced_wgpu/settings/struct.Settings.html @@ -3,16 +3,16 @@ pub backends: Backends, pub default_font: Font, pub default_text_size: Pixels, - pub antialiasing: Option<Antialiasing>, + pub antialiasing: Option<Antialiasing>, }
    Expand description

    The settings of a Renderer.

    Fields§

    §present_mode: PresentMode

    The present mode of the Renderer.

    §backends: Backends

    The graphics backends to use.

    §default_font: Font

    The default [Font] to use.

    §default_text_size: Pixels

    The default size of text.

    By default, it will be set to 16.0.

    -
    §antialiasing: Option<Antialiasing>

    The antialiasing strategy that will be used for triangle primitives.

    +
    §antialiasing: Option<Antialiasing>

    The antialiasing strategy that will be used for triangle primitives.

    By default, it is None.

    -

    Trait Implementations§

    Source§

    impl Clone for Settings

    Source§

    fn clone(&self) -> Settings

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Settings

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for Settings

    Source§

    fn default() -> Settings

    Returns the “default value” for a type. Read more
    Source§

    impl From<Settings> for Settings

    Source§

    fn from(settings: Settings) -> Self

    Converts to this type from the input type.
    Source§

    impl PartialEq for Settings

    Source§

    fn eq(&self, other: &Settings) -> 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, +

    Trait Implementations§

    Source§

    impl Clone for Settings

    Source§

    fn clone(&self) -> Settings

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Settings

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Default for Settings

    Source§

    fn default() -> Settings

    Returns the “default value” for a type. Read more
    Source§

    impl From<Settings> for Settings

    Source§

    fn from(settings: Settings) -> Self

    Converts to this type from the input type.
    Source§

    impl PartialEq for Settings

    Source§

    fn eq(&self, other: &Settings) -> 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, and should not be overridden without very good reason.
    Source§

    impl Copy for Settings

    Source§

    impl StructuralPartialEq for Settings

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, diff --git a/iced_wgpu/struct.Engine.html b/iced_wgpu/struct.Engine.html index 5af28859b5..b3b0f54547 100644 --- a/iced_wgpu/struct.Engine.html +++ b/iced_wgpu/struct.Engine.html @@ -3,7 +3,7 @@ device: &Device, queue: &Queue, format: TextureFormat, - antialiasing: Option<Antialiasing>, + antialiasing: Option<Antialiasing>, ) -> Self

    Source

    pub fn create_image_cache(&self, device: &Device) -> Cache

    Available on crate features image or svg only.
    Source

    pub fn submit( &mut self, queue: &Queue, diff --git a/iced_wgpu/struct.Renderer.html b/iced_wgpu/struct.Renderer.html index 096c01f9a9..e85a957ab0 100644 --- a/iced_wgpu/struct.Renderer.html +++ b/iced_wgpu/struct.Renderer.html @@ -13,13 +13,13 @@ clear_color: Option<Color>, format: TextureFormat, frame: &TextureView, - viewport: &Viewport, + viewport: &Viewport, overlay: &[T], -)

    Trait Implementations§

    Source§

    impl Default for Renderer

    Source§

    type Compositor = Compositor

    The compositor of the renderer.
    Source§

    impl Renderer for Renderer

    Source§

    fn start_layer(&mut self, bounds: Rectangle)

    Starts recording a new layer.
    Source§

    fn end_layer(&mut self)

    Ends recording a new layer. Read more
    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
    Source§

    fn fill_quad(&mut self, quad: Quad, background: impl Into<Background>)

    Fills a [Quad] with the provided [Background].
    Source§

    fn clear(&mut self)

    Clears all of the recorded primitives in the [Renderer].
    §

    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( +)

    Trait Implementations§

    Source§

    impl Default for Renderer

    Source§

    type Compositor = Compositor

    The compositor of the renderer.
    Source§

    impl Renderer for Renderer

    Source§

    fn start_layer(&mut self, bounds: Rectangle)

    Starts recording a new layer.
    Source§

    fn end_layer(&mut self)

    Ends recording a new layer. Read more
    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
    Source§

    fn fill_quad(&mut self, quad: Quad, background: impl Into<Background>)

    Fills a [Quad] with the provided [Background].
    Source§

    fn clear(&mut self)

    Clears all of the recorded primitives in the [Renderer].
    §

    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, f: impl FnOnce(&mut Self), -)

    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 Renderer for Renderer

    Source§

    const ICON_FONT: Font = _

    The icon font of the backend.
    Source§

    const CHECKMARK_ICON: char = '\u{f00c}'

    The char representing a ✔ icon in the ICON_FONT.
    Source§

    const ARROW_DOWN_ICON: char = '\u{e800}'

    The char representing a ▼ icon in the built-in ICON_FONT.
    Source§

    type Font = Font

    The font type used.
    Source§

    type Paragraph = Paragraph

    The [Paragraph] of this [Renderer].
    Source§

    type Editor = Editor

    The [Editor] of this [Renderer].
    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 Renderer for Renderer

    Source§

    const ICON_FONT: Font = _

    The icon font of the backend.
    Source§

    const CHECKMARK_ICON: char = '\u{f00c}'

    The char representing a ✔ icon in the ICON_FONT.
    Source§

    const ARROW_DOWN_ICON: char = '\u{e800}'

    The char representing a ▼ icon in the built-in ICON_FONT.
    Source§

    type Font = Font

    The font type used.
    Source§

    type Paragraph = Paragraph

    The [Paragraph] of this [Renderer].
    Source§

    type Editor = Editor

    The [Editor] of this [Renderer].
    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, @@ -40,7 +40,7 @@ color: Color, clip_bounds: Rectangle, )

    Draws the given [Text] at the given position and with the given -[Color].
    Source§

    impl Renderer for Renderer

    Available on crate feature image only.
    Source§

    type Handle = 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, bounds: Rectangle)

    Draws an [Image] inside the provided bounds.
    Source§

    impl Renderer for Renderer

    Available on crate feature svg only.
    Source§

    fn measure_svg(&self, handle: &Handle) -> Size<u32>

    Returns the default dimensions of an SVG for the given [Handle].
    Source§

    fn draw_svg(&mut self, svg: Svg, bounds: Rectangle)

    Draws an SVG with the given [Handle], an optional [Color] filter, and inside the provided bounds.
    Source§

    impl Renderer for Renderer

    Source§

    fn draw_mesh(&mut self, mesh: Mesh)

    Draws the given Mesh.
    Source§

    impl Renderer for Renderer

    Available on crate feature geometry only.
    Source§

    type Geometry = Geometry

    The kind of geometry this renderer can draw.
    Source§

    type Frame = 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.
    Source§

    impl Renderer for Renderer

    Source§

    fn draw_primitive(&mut self, bounds: Rectangle, primitive: impl Primitive)

    Draws a custom primitive.

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +[Color].

    Source§

    impl Renderer for Renderer

    Available on crate feature image only.
    Source§

    type Handle = 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, bounds: Rectangle)

    Draws an [Image] inside the provided bounds.
    Source§

    impl Renderer for Renderer

    Available on crate feature svg only.
    Source§

    fn measure_svg(&self, handle: &Handle) -> Size<u32>

    Returns the default dimensions of an SVG for the given [Handle].
    Source§

    fn draw_svg(&mut self, svg: Svg, bounds: Rectangle)

    Draws an SVG with the given [Handle], an optional [Color] filter, and inside the provided bounds.
    Source§

    impl Renderer for Renderer

    Source§

    fn draw_mesh(&mut self, mesh: Mesh)

    Draws the given [Mesh].
    Source§

    impl Renderer for Renderer

    Available on crate feature geometry only.
    Source§

    type Geometry = Geometry

    The kind of geometry this renderer can draw.
    Source§

    type Frame = 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].
    Source§

    impl Renderer for Renderer

    Source§

    fn draw_primitive(&mut self, bounds: Rectangle, primitive: impl Primitive)

    Draws a custom primitive.

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_wgpu/window/compositor/enum.Error.html b/iced_wgpu/window/compositor/enum.Error.html index 45abfd1b05..33833aaf0f 100644 --- a/iced_wgpu/window/compositor/enum.Error.html +++ b/iced_wgpu/window/compositor/enum.Error.html @@ -8,7 +8,7 @@
    §

    IncompatibleSurface

    The surface is not compatible.

    §

    NoAdapterFound(String)

    No adapter was found for the options requested.

    §

    RequestDeviceFailed(Vec<(Limits, RequestDeviceError)>)

    No device request succeeded.

    -

    Trait Implementations§

    Source§

    impl Clone for Error

    Source§

    fn clone(&self) -> Error

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for Error

    Source§

    fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Error for Error

    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl From<CreateSurfaceError> for Error

    Source§

    fn from(source: CreateSurfaceError) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Error> for Error

    Source§

    fn from(error: Error) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl Freeze for Error

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Trait Implementations§

    Source§

    impl Clone for Error

    Source§

    fn clone(&self) -> Error

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Error

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Display for Error

    Source§

    fn fmt(&self, __formatter: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl Error for Error

    Source§

    fn source(&self) -> Option<&(dyn Error + 'static)>

    Returns the lower-level source of this error, if any. Read more
    1.0.0 · Source§

    fn description(&self) -> &str

    👎Deprecated since 1.42.0: use the Display impl or to_string()
    1.0.0 · Source§

    fn cause(&self) -> Option<&dyn Error>

    👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
    Source§

    fn provide<'a>(&'a self, request: &mut Request<'a>)

    🔬This is a nightly-only experimental API. (error_generic_member_access)
    Provides type-based access to context intended for error reports. Read more
    Source§

    impl From<CreateSurfaceError> for Error

    Source§

    fn from(source: CreateSurfaceError) -> Self

    Converts to this type from the input type.
    Source§

    impl From<Error> for Error

    Source§

    fn from(error: Error) -> Self

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl Freeze for Error

    §

    impl !RefUnwindSafe for Error

    §

    impl Send for Error

    §

    impl Sync for Error

    §

    impl Unpin for Error

    §

    impl !UnwindSafe for Error

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_wgpu/window/compositor/fn.new.html b/iced_wgpu/window/compositor/fn.new.html index 4173fb2bd3..c75e3cdb88 100644 --- a/iced_wgpu/window/compositor/fn.new.html +++ b/iced_wgpu/window/compositor/fn.new.html @@ -1,4 +1,4 @@ -new in iced_wgpu::window::compositor - Rust
    iced_wgpu::window::compositor

    Function new

    Source
    pub async fn new<W: Window>(
    +new in iced_wgpu::window::compositor - Rust
    iced_wgpu::window::compositor

    Function new

    Source
    pub async fn new<W: Window>(
         settings: Settings,
         compatible_window: W,
     ) -> Result<Compositor, Error>
    Expand description

    Creates a Compositor with the given Settings and window.

    diff --git a/iced_wgpu/window/compositor/fn.present.html b/iced_wgpu/window/compositor/fn.present.html index 16afbb8f89..a24ab6b572 100644 --- a/iced_wgpu/window/compositor/fn.present.html +++ b/iced_wgpu/window/compositor/fn.present.html @@ -2,8 +2,8 @@ compositor: &mut Compositor, renderer: &mut Renderer, surface: &mut Surface<'static>, - viewport: &Viewport, + viewport: &Viewport, background_color: Color, overlay: &[T], -) -> Result<(), SurfaceError>
    Expand description

    Presents the given primitives with the given Compositor.

    +) -> Result<(), SurfaceError>
    Expand description

    Presents the given primitives with the given Compositor.

    \ No newline at end of file diff --git a/iced_wgpu/window/compositor/fn.screenshot.html b/iced_wgpu/window/compositor/fn.screenshot.html index d4bd325506..c28b97299c 100644 --- a/iced_wgpu/window/compositor/fn.screenshot.html +++ b/iced_wgpu/window/compositor/fn.screenshot.html @@ -1,7 +1,7 @@ screenshot in iced_wgpu::window::compositor - Rust
    iced_wgpu::window::compositor

    Function screenshot

    Source
    pub fn screenshot<T: AsRef<str>>(
         compositor: &mut Compositor,
         renderer: &mut Renderer,
    -    viewport: &Viewport,
    +    viewport: &Viewport,
         background_color: Color,
         overlay: &[T],
     ) -> Vec<u8> 
    Expand description

    Renders the current surface to an offscreen buffer.

    diff --git a/iced_wgpu/window/compositor/struct.Compositor.html b/iced_wgpu/window/compositor/struct.Compositor.html index 90f9349137..c1017005c7 100644 --- a/iced_wgpu/window/compositor/struct.Compositor.html +++ b/iced_wgpu/window/compositor/struct.Compositor.html @@ -1,42 +1,42 @@ Compositor in iced_wgpu::window::compositor - Rust
    iced_wgpu::window::compositor

    Struct Compositor

    Source
    pub struct Compositor { /* private fields */ }
    Expand description

    A window graphics backend for iced powered by wgpu.

    -

    Implementations§

    Source§

    impl Compositor

    Source

    pub async fn request<W: Window>( +

    Implementations§

    Source§

    impl Compositor

    Source

    pub async fn request<W: Window>( settings: Settings, compatible_window: Option<W>, ) -> Result<Self, Error>

    Requests a new Compositor with the given Settings.

    Returns None if no compatible graphics adapter could be found.

    -

    Trait Implementations§

    Source§

    impl Compositor for Compositor

    Source§

    type Renderer = Renderer

    The iced renderer of the backend.
    Source§

    type Surface = Surface<'static>

    The surface of the backend.
    Source§

    async fn with_backend<W: Window>( - settings: Settings, +

    Trait Implementations§

    Source§

    impl Compositor for Compositor

    Source§

    type Renderer = Renderer

    The iced renderer of the backend.
    Source§

    type Surface = Surface<'static>

    The surface of the backend.
    Source§

    async fn with_backend<W: Window>( + settings: Settings, compatible_window: W, backend: Option<&str>, -) -> Result<Self, Error>

    Creates a new Compositor with a backend preference. Read more
    Source§

    fn create_renderer(&self) -> Self::Renderer

    Creates a Self::Renderer for the Compositor.
    Source§

    fn create_surface<W: Window>( +) -> Result<Self, Error>

    Creates a new [Compositor] with a backend preference. Read more
    Source§

    fn create_renderer(&self) -> Self::Renderer

    Creates a [Self::Renderer] for the [Compositor].
    Source§

    fn create_surface<W: Window>( &mut self, window: W, width: u32, height: u32, -) -> Self::Surface

    Crates a new Surface for the given window.
    Source§

    fn configure_surface( +) -> Self::Surface

    Crates a new Surface for the given window.
    Source§

    fn configure_surface( &mut self, - surface: &mut Self::Surface, + surface: &mut Self::Surface, width: u32, height: u32, -)

    Configures a new Surface with the given dimensions.
    Source§

    fn fetch_information(&self) -> Information

    Returns Information used by this Compositor.
    Source§

    fn present<T: AsRef<str>>( +)

    Configures a new Surface with the given dimensions.
    Source§

    fn fetch_information(&self) -> Information

    Returns [Information] used by this [Compositor].
    Source§

    fn present<T: AsRef<str>>( &mut self, - renderer: &mut Self::Renderer, - surface: &mut Self::Surface, - viewport: &Viewport, + renderer: &mut Self::Renderer, + surface: &mut Self::Surface, + viewport: &Viewport, background_color: Color, overlay: &[T], -) -> Result<(), SurfaceError>

    Presents the Renderer primitives to the next frame of the given Surface.
    Source§

    fn screenshot<T: AsRef<str>>( +) -> Result<(), SurfaceError>

    Presents the Renderer primitives to the next frame of the given Surface.
    Source§

    fn screenshot<T: AsRef<str>>( &mut self, - renderer: &mut Self::Renderer, - viewport: &Viewport, + renderer: &mut Self::Renderer, + viewport: &Viewport, 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.
    Source§

    fn new<W>( - settings: Settings, +) -> 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.
    §

    fn new<W>( + settings: Settings, compatible_window: W, -) -> impl Future<Output = Result<Self, Error>>
    where - W: Window + Clone,

    Creates a new Compositor.
    Source§

    fn load_font(&mut self, font: Cow<'static, [u8]>)

    Loads a font from its bytes.

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +) -> impl Future<Output = Result<Self, Error>>
    where + W: Window + Clone,

    Creates a new [Compositor].
    §

    fn load_font(&mut self, font: Cow<'static, [u8]>)

    Loads a font from its bytes.

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/enum.Gradient.html b/iced_widget/canvas/enum.Gradient.html index be6295211d..e400cf29ea 100644 --- a/iced_widget/canvas/enum.Gradient.html +++ b/iced_widget/canvas/enum.Gradient.html @@ -1,12 +1,12 @@ -Gradient in iced_widget::canvas - Rust
    iced_widget::canvas

    Enum Gradient

    Source
    pub enum Gradient {
    +Gradient in iced_widget::canvas - Rust
    iced_widget::canvas

    Enum Gradient

    pub enum Gradient {
         Linear(Linear),
     }
    Available on crate feature canvas 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].

    Variants§

    §

    Linear(Linear)

    A linear gradient interpolates colors along a direction from its start to its end point.

    -

    Implementations§

    Source§

    impl Gradient

    Source

    pub fn pack(&self) -> Packed

    Packs the Gradient for use in shader code.

    -

    Trait Implementations§

    Source§

    impl Clone for Gradient

    Source§

    fn clone(&self) -> Gradient

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Gradient

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl From<Gradient> for Fill

    Source§

    fn from(gradient: Gradient) -> Fill

    Converts to this type from the input type.
    Source§

    impl From<Gradient> for Style

    Source§

    fn from(gradient: Gradient) -> Style

    Converts to this type from the input type.
    Source§

    impl From<Linear> for Gradient

    Source§

    fn from(gradient: Linear) -> Gradient

    Converts to this type from the input type.
    Source§

    impl PartialEq for Gradient

    Source§

    fn eq(&self, other: &Gradient) -> 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, -and should not be overridden without very good reason.
    Source§

    impl Copy for Gradient

    Source§

    impl StructuralPartialEq for Gradient

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Implementations§

    §

    impl Gradient

    pub fn pack(&self) -> Packed

    Packs the Gradient for use in shader code.

    +

    Trait Implementations§

    §

    impl Clone for Gradient

    §

    fn clone(&self) -> Gradient

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Gradient

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<Gradient> for Fill

    §

    fn from(gradient: Gradient) -> Fill

    Converts to this type from the input type.
    §

    impl From<Gradient> for Style

    §

    fn from(gradient: Gradient) -> Style

    Converts to this type from the input type.
    §

    impl From<Linear> for Gradient

    §

    fn from(gradient: Linear) -> Gradient

    Converts to this type from the input type.
    §

    impl PartialEq for Gradient

    §

    fn eq(&self, other: &Gradient) -> 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, +and should not be overridden without very good reason.
    §

    impl Copy for Gradient

    §

    impl StructuralPartialEq for Gradient

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/enum.LineCap.html b/iced_widget/canvas/enum.LineCap.html index dd07594f35..4cf92d1b90 100644 --- a/iced_widget/canvas/enum.LineCap.html +++ b/iced_widget/canvas/enum.LineCap.html @@ -1,4 +1,4 @@ -LineCap in iced_widget::canvas - Rust
    iced_widget::canvas

    Enum LineCap

    Source
    pub enum LineCap {
    +LineCap in iced_widget::canvas - Rust
    iced_widget::canvas

    Enum LineCap

    pub enum LineCap {
         Butt,
         Square,
         Round,
    @@ -8,7 +8,7 @@
     extended by a square.

    §

    Round

    At the end of each sub-path, the shape representing the stroke will be extended by a semicircle.

    -

    Trait Implementations§

    Source§

    impl Clone for LineCap

    Source§

    fn clone(&self) -> LineCap

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for LineCap

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Default for LineCap

    Source§

    fn default() -> LineCap

    Returns the “default value” for a type. Read more
    Source§

    impl Copy for LineCap

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Trait Implementations§

    §

    impl Clone for LineCap

    §

    fn clone(&self) -> LineCap

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for LineCap

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for LineCap

    §

    fn default() -> LineCap

    Returns the “default value” for a type. Read more
    §

    impl Copy for LineCap

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/enum.LineJoin.html b/iced_widget/canvas/enum.LineJoin.html index 85ae9be435..16480d4293 100644 --- a/iced_widget/canvas/enum.LineJoin.html +++ b/iced_widget/canvas/enum.LineJoin.html @@ -1,4 +1,4 @@ -LineJoin in iced_widget::canvas - Rust
    iced_widget::canvas

    Enum LineJoin

    Source
    pub enum LineJoin {
    +LineJoin in iced_widget::canvas - Rust
    iced_widget::canvas

    Enum LineJoin

    pub enum LineJoin {
         Miter,
         Round,
         Bevel,
    @@ -7,7 +7,7 @@
     

    Variants§

    §

    Miter

    A sharp corner.

    §

    Round

    A round corner.

    §

    Bevel

    A bevelled corner.

    -

    Trait Implementations§

    Source§

    impl Clone for LineJoin

    Source§

    fn clone(&self) -> LineJoin

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for LineJoin

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Default for LineJoin

    Source§

    fn default() -> LineJoin

    Returns the “default value” for a type. Read more
    Source§

    impl Copy for LineJoin

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Trait Implementations§

    §

    impl Clone for LineJoin

    §

    fn clone(&self) -> LineJoin

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for LineJoin

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for LineJoin

    §

    fn default() -> LineJoin

    Returns the “default value” for a type. Read more
    §

    impl Copy for LineJoin

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/enum.Style.html b/iced_widget/canvas/enum.Style.html index f4832ea0a5..c05df4b8f4 100644 --- a/iced_widget/canvas/enum.Style.html +++ b/iced_widget/canvas/enum.Style.html @@ -1,11 +1,11 @@ -Style in iced_widget::canvas - Rust
    iced_widget::canvas

    Enum Style

    Source
    pub enum Style {
    +Style in iced_widget::canvas - Rust
    iced_widget::canvas

    Enum Style

    pub enum Style {
         Solid(Color),
         Gradient(Gradient),
     }
    Available on crate feature canvas only.
    Expand description

    The coloring style of some drawing.

    Variants§

    §

    Solid(Color)

    A solid [Color].

    §

    Gradient(Gradient)

    A Gradient color.

    -

    Trait Implementations§

    Source§

    impl Clone for Style

    Source§

    fn clone(&self) -> Style

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Style

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl From<Color> for Style

    Source§

    fn from(color: Color) -> Style

    Converts to this type from the input type.
    Source§

    impl From<Gradient> for Style

    Source§

    fn from(gradient: Gradient) -> Style

    Converts to this type from the input type.
    Source§

    impl PartialEq for Style

    Source§

    fn eq(&self, other: &Style) -> 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, -and should not be overridden without very good reason.
    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 S
    where +

    Trait Implementations§

    §

    impl Clone for Style

    §

    fn clone(&self) -> Style

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Style

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<Color> for Style

    §

    fn from(color: Color) -> Style

    Converts to this type from the input type.
    §

    impl From<Gradient> for Style

    §

    fn from(gradient: Gradient) -> Style

    Converts to this type from the input type.
    §

    impl PartialEq for Style

    §

    fn eq(&self, other: &Style) -> 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, +and should not be overridden without very good reason.
    §

    impl Copy for Style

    §

    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 S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/fill/enum.Rule.html b/iced_widget/canvas/fill/enum.Rule.html index c63d123c55..7eec189031 100644 --- a/iced_widget/canvas/fill/enum.Rule.html +++ b/iced_widget/canvas/fill/enum.Rule.html @@ -1,11 +1,11 @@ -Rule in iced_widget::canvas::fill - Rust
    iced_widget::canvas::fill

    Enum Rule

    Source
    pub enum Rule {
    +Rule in iced_widget::canvas::fill - Rust
    iced_widget::canvas::fill

    Enum Rule

    pub enum Rule {
         NonZero,
         EvenOdd,
     }
    Available on crate feature canvas only.
    Expand description

    The fill rule defines how to determine what is inside and what is outside of a shape.

    See the SVG specification.

    -

    Variants§

    §

    NonZero

    §

    EvenOdd

    Trait Implementations§

    Source§

    impl Clone for Rule

    Source§

    fn clone(&self) -> Rule

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Rule

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for Rule

    Source§

    fn eq(&self, other: &Rule) -> 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, -and should not be overridden without very good reason.
    Source§

    impl Copy for Rule

    Source§

    impl Eq for Rule

    Source§

    impl StructuralPartialEq for Rule

    Auto Trait Implementations§

    §

    impl Freeze for Rule

    §

    impl RefUnwindSafe for Rule

    §

    impl Send for Rule

    §

    impl Sync for Rule

    §

    impl Unpin for Rule

    §

    impl UnwindSafe for Rule

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Variants§

    §

    NonZero

    §

    EvenOdd

    Trait Implementations§

    §

    impl Clone for Rule

    §

    fn clone(&self) -> Rule

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Rule

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl PartialEq for Rule

    §

    fn eq(&self, other: &Rule) -> 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, +and should not be overridden without very good reason.
    §

    impl Copy for Rule

    §

    impl Eq for Rule

    §

    impl StructuralPartialEq for Rule

    Auto Trait Implementations§

    §

    impl Freeze for Rule

    §

    impl RefUnwindSafe for Rule

    §

    impl Send for Rule

    §

    impl Sync for Rule

    §

    impl Unpin for Rule

    §

    impl UnwindSafe for Rule

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/fill/enum.Style.html b/iced_widget/canvas/fill/enum.Style.html index 98d9ce33bb..f8dd7035f9 100644 --- a/iced_widget/canvas/fill/enum.Style.html +++ b/iced_widget/canvas/fill/enum.Style.html @@ -1,11 +1,11 @@ -Style in iced_widget::canvas::fill - Rust
    iced_widget::canvas::fill

    Enum Style

    Source
    pub enum Style {
    +Style in iced_widget::canvas::fill - Rust
    iced_widget::canvas::fill

    Enum Style

    pub enum Style {
         Solid(Color),
         Gradient(Gradient),
     }
    Available on crate feature canvas only.
    Expand description

    The coloring style of some drawing.

    Variants§

    §

    Solid(Color)

    A solid [Color].

    §

    Gradient(Gradient)

    A Gradient color.

    -

    Trait Implementations§

    Source§

    impl Clone for Style

    Source§

    fn clone(&self) -> Style

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Style

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl From<Color> for Style

    Source§

    fn from(color: Color) -> Style

    Converts to this type from the input type.
    Source§

    impl From<Gradient> for Style

    Source§

    fn from(gradient: Gradient) -> Style

    Converts to this type from the input type.
    Source§

    impl PartialEq for Style

    Source§

    fn eq(&self, other: &Style) -> 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, -and should not be overridden without very good reason.
    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 S
    where +

    Trait Implementations§

    §

    impl Clone for Style

    §

    fn clone(&self) -> Style

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Style

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<Color> for Style

    §

    fn from(color: Color) -> Style

    Converts to this type from the input type.
    §

    impl From<Gradient> for Style

    §

    fn from(gradient: Gradient) -> Style

    Converts to this type from the input type.
    §

    impl PartialEq for Style

    §

    fn eq(&self, other: &Style) -> 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, +and should not be overridden without very good reason.
    §

    impl Copy for Style

    §

    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 S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/fill/index.html b/iced_widget/canvas/fill/index.html index 965c6d173b..1c14f35dfe 100644 --- a/iced_widget/canvas/fill/index.html +++ b/iced_widget/canvas/fill/index.html @@ -1,3 +1,3 @@ -iced_widget::canvas::fill - Rust
    iced_widget::canvas

    Module fill

    Source
    Available on crate feature canvas only.
    Expand description

    Fill Geometry with a certain style.

    +iced_widget::canvas::fill - Rust
    iced_widget::canvas

    Module fill

    Available on crate feature canvas only.
    Expand description

    Fill Geometry with a certain style.

    Structs§

    • The style used to fill geometry.

    Enums§

    • The fill rule defines how to determine what is inside and what is outside of a shape.
    • The coloring style of some drawing.
    \ No newline at end of file diff --git a/iced_widget/canvas/fill/struct.Fill.html b/iced_widget/canvas/fill/struct.Fill.html index 0553930e4a..2331c0907e 100644 --- a/iced_widget/canvas/fill/struct.Fill.html +++ b/iced_widget/canvas/fill/struct.Fill.html @@ -1,4 +1,4 @@ -Fill in iced_widget::canvas::fill - Rust
    iced_widget::canvas::fill

    Struct Fill

    Source
    pub struct Fill {
    +Fill in iced_widget::canvas::fill - Rust
    iced_widget::canvas::fill

    Struct Fill

    pub struct Fill {
         pub style: Style,
         pub rule: Rule,
     }
    Available on crate feature canvas only.
    Expand description

    The style used to fill geometry.

    @@ -8,7 +8,7 @@ outside of a shape.

    See the SVG specification for more details.

    By default, it is set to NonZero.

    -

    Trait Implementations§

    Source§

    impl Clone for Fill

    Source§

    fn clone(&self) -> Fill

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Fill

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Default for Fill

    Source§

    fn default() -> Fill

    Returns the “default value” for a type. Read more
    Source§

    impl From<Color> for Fill

    Source§

    fn from(color: Color) -> Fill

    Converts to this type from the input type.
    Source§

    impl From<Gradient> for Fill

    Source§

    fn from(gradient: Gradient) -> Fill

    Converts to this type from the input type.
    Source§

    impl From<Linear> for Fill

    Source§

    fn from(gradient: Linear) -> Fill

    Converts to this type from the input type.
    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 S
    where +

    Trait Implementations§

    §

    impl Clone for Fill

    §

    fn clone(&self) -> Fill

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Fill

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Fill

    §

    fn default() -> Fill

    Returns the “default value” for a type. Read more
    §

    impl From<Color> for Fill

    §

    fn from(color: Color) -> Fill

    Converts to this type from the input type.
    §

    impl From<Gradient> for Fill

    §

    fn from(gradient: Gradient) -> Fill

    Converts to this type from the input type.
    §

    impl From<Linear> for Fill

    §

    fn from(gradient: Linear) -> Fill

    Converts to this type from the input type.
    §

    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 S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/gradient/enum.Gradient.html b/iced_widget/canvas/gradient/enum.Gradient.html index d3b338d25e..3e78ff98f5 100644 --- a/iced_widget/canvas/gradient/enum.Gradient.html +++ b/iced_widget/canvas/gradient/enum.Gradient.html @@ -1,12 +1,12 @@ -Gradient in iced_widget::canvas::gradient - Rust
    iced_widget::canvas::gradient

    Enum Gradient

    Source
    pub enum Gradient {
    +Gradient in iced_widget::canvas::gradient - Rust
    iced_widget::canvas::gradient

    Enum Gradient

    pub enum Gradient {
         Linear(Linear),
     }
    Available on crate feature canvas 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].

    Variants§

    §

    Linear(Linear)

    A linear gradient interpolates colors along a direction from its start to its end point.

    -

    Implementations§

    Source§

    impl Gradient

    Source

    pub fn pack(&self) -> Packed

    Packs the Gradient for use in shader code.

    -

    Trait Implementations§

    Source§

    impl Clone for Gradient

    Source§

    fn clone(&self) -> Gradient

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Gradient

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl From<Gradient> for Fill

    Source§

    fn from(gradient: Gradient) -> Fill

    Converts to this type from the input type.
    Source§

    impl From<Gradient> for Style

    Source§

    fn from(gradient: Gradient) -> Style

    Converts to this type from the input type.
    Source§

    impl From<Linear> for Gradient

    Source§

    fn from(gradient: Linear) -> Gradient

    Converts to this type from the input type.
    Source§

    impl PartialEq for Gradient

    Source§

    fn eq(&self, other: &Gradient) -> 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, -and should not be overridden without very good reason.
    Source§

    impl Copy for Gradient

    Source§

    impl StructuralPartialEq for Gradient

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Implementations§

    §

    impl Gradient

    pub fn pack(&self) -> Packed

    Packs the Gradient for use in shader code.

    +

    Trait Implementations§

    §

    impl Clone for Gradient

    §

    fn clone(&self) -> Gradient

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Gradient

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<Gradient> for Fill

    §

    fn from(gradient: Gradient) -> Fill

    Converts to this type from the input type.
    §

    impl From<Gradient> for Style

    §

    fn from(gradient: Gradient) -> Style

    Converts to this type from the input type.
    §

    impl From<Linear> for Gradient

    §

    fn from(gradient: Linear) -> Gradient

    Converts to this type from the input type.
    §

    impl PartialEq for Gradient

    §

    fn eq(&self, other: &Gradient) -> 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, +and should not be overridden without very good reason.
    §

    impl Copy for Gradient

    §

    impl StructuralPartialEq for Gradient

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/gradient/fn.pack.html b/iced_widget/canvas/gradient/fn.pack.html index 437cc23a43..5a587ea02a 100644 --- a/iced_widget/canvas/gradient/fn.pack.html +++ b/iced_widget/canvas/gradient/fn.pack.html @@ -1,2 +1,2 @@ -pack in iced_widget::canvas::gradient - Rust
    iced_widget::canvas::gradient

    Function pack

    Source
    pub fn pack(gradient: &Gradient, bounds: Rectangle) -> Packed
    Available on crate feature canvas only.
    Expand description

    Creates a new Packed gradient for use in shader code.

    +pack in iced_widget::canvas::gradient - Rust
    iced_widget::canvas::gradient

    Function pack

    pub fn pack(gradient: &Gradient, bounds: Rectangle) -> Packed
    Available on crate feature canvas only.
    Expand description

    Creates a new Packed gradient for use in shader code.

    \ No newline at end of file diff --git a/iced_widget/canvas/gradient/index.html b/iced_widget/canvas/gradient/index.html index 1f197201e7..ee6f654aec 100644 --- a/iced_widget/canvas/gradient/index.html +++ b/iced_widget/canvas/gradient/index.html @@ -1,3 +1,3 @@ -iced_widget::canvas::gradient - Rust
    iced_widget::canvas

    Module gradient

    Source
    Available on crate feature canvas only.
    Expand description

    A gradient that can be used as a fill for some geometry.

    +iced_widget::canvas::gradient - Rust
    iced_widget::canvas

    Module gradient

    Available on crate feature canvas only.
    Expand description

    A gradient that can be used as a fill for some geometry.

    For a gradient that you can use as a background variant for a widget, see Gradient.

    Structs§

    Enums§

    • A fill which linearly interpolates colors along a direction.

    Functions§

    • Creates a new Packed gradient for use in shader code.
    \ No newline at end of file diff --git a/iced_widget/canvas/gradient/struct.Linear.html b/iced_widget/canvas/gradient/struct.Linear.html index 17a142ff20..1f67fadbaa 100644 --- a/iced_widget/canvas/gradient/struct.Linear.html +++ b/iced_widget/canvas/gradient/struct.Linear.html @@ -1,4 +1,4 @@ -Linear in iced_widget::canvas::gradient - Rust
    iced_widget::canvas::gradient

    Struct Linear

    Source
    pub struct Linear {
    +Linear in iced_widget::canvas::gradient - Rust
    iced_widget::canvas::gradient

    Struct Linear

    pub struct Linear {
         pub start: Point,
         pub end: Point,
         pub stops: [Option<ColorStop>; 8],
    @@ -6,15 +6,15 @@
     

    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

    Source

    pub fn new(start: Point, end: Point) -> Linear

    Creates a new Linear builder.

    -
    Source

    pub fn add_stop(self, offset: f32, color: Color) -> Linear

    Adds a new [ColorStop], defined by an offset and a color, to the gradient.

    +

    Implementations§

    §

    impl Linear

    pub fn new(start: Point, end: Point) -> Linear

    Creates a new Linear builder.

    +

    pub 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.

    -
    Source

    pub fn add_stops(self, stops: impl IntoIterator<Item = ColorStop>) -> Linear

    Adds multiple [ColorStop]s to the gradient.

    +

    pub 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.

    -
    Source

    pub fn pack(&self) -> Packed

    Packs the Gradient for use in shader code.

    -

    Trait Implementations§

    Source§

    impl Clone for Linear

    Source§

    fn clone(&self) -> Linear

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Linear

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl From<Linear> for Fill

    Source§

    fn from(gradient: Linear) -> Fill

    Converts to this type from the input type.
    Source§

    impl From<Linear> for Gradient

    Source§

    fn from(gradient: Linear) -> Gradient

    Converts to this type from the input type.
    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, -and should not be overridden without very good reason.
    Source§

    impl Copy for Linear

    Source§

    impl StructuralPartialEq for Linear

    Auto Trait Implementations§

    §

    impl Freeze for Linear

    §

    impl RefUnwindSafe for Linear

    §

    impl Send for Linear

    §

    impl Sync for Linear

    §

    impl Unpin for Linear

    §

    impl UnwindSafe for Linear

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    pub fn pack(&self) -> Packed

    Packs the Gradient for use in shader code.

    +

    Trait Implementations§

    §

    impl Clone for Linear

    §

    fn clone(&self) -> Linear

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Linear

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<Linear> for Fill

    §

    fn from(gradient: Linear) -> Fill

    Converts to this type from the input type.
    §

    impl From<Linear> for Gradient

    §

    fn from(gradient: Linear) -> Gradient

    Converts to this type from the input type.
    §

    impl PartialEq for Linear

    §

    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, +and should not be overridden without very good reason.
    §

    impl Copy for Linear

    §

    impl StructuralPartialEq for Linear

    Auto Trait Implementations§

    §

    impl Freeze for Linear

    §

    impl RefUnwindSafe for Linear

    §

    impl Send for Linear

    §

    impl Sync for Linear

    §

    impl Unpin for Linear

    §

    impl UnwindSafe for Linear

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/gradient/struct.Packed.html b/iced_widget/canvas/gradient/struct.Packed.html index a2e33695d0..236942aa6e 100644 --- a/iced_widget/canvas/gradient/struct.Packed.html +++ b/iced_widget/canvas/gradient/struct.Packed.html @@ -1,6 +1,6 @@ -Packed in iced_widget::canvas::gradient - Rust
    iced_widget::canvas::gradient

    Struct Packed

    Source
    #[repr(C)]
    pub struct Packed { /* private fields */ }
    Available on crate feature canvas only.
    Expand description

    Packed Gradient data for use in shader code.

    -

    Trait Implementations§

    Source§

    impl Clone for Packed

    Source§

    fn clone(&self) -> Packed

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Packed

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl PartialEq for Packed

    Source§

    fn eq(&self, other: &Packed) -> 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, -and should not be overridden without very good reason.
    Source§

    impl Zeroable for Packed

    §

    fn zeroed() -> Self

    Source§

    impl Copy for Packed

    Source§

    impl Pod for Packed

    Source§

    impl StructuralPartialEq for Packed

    Auto Trait Implementations§

    §

    impl Freeze for Packed

    §

    impl RefUnwindSafe for Packed

    §

    impl Send for Packed

    §

    impl Sync for Packed

    §

    impl Unpin for Packed

    §

    impl UnwindSafe for Packed

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +Packed in iced_widget::canvas::gradient - Rust
    iced_widget::canvas::gradient

    Struct Packed

    #[repr(C)]
    pub struct Packed { /* private fields */ }
    Available on crate feature canvas only.
    Expand description

    Packed Gradient data for use in shader code.

    +

    Trait Implementations§

    §

    impl Clone for Packed

    §

    fn clone(&self) -> Packed

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Packed

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl PartialEq for Packed

    §

    fn eq(&self, other: &Packed) -> 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, +and should not be overridden without very good reason.
    §

    impl Zeroable for Packed

    §

    fn zeroed() -> Self

    §

    impl Copy for Packed

    §

    impl Pod for Packed

    §

    impl StructuralPartialEq for Packed

    Auto Trait Implementations§

    §

    impl Freeze for Packed

    §

    impl RefUnwindSafe for Packed

    §

    impl Send for Packed

    §

    impl Sync for Packed

    §

    impl Unpin for Packed

    §

    impl UnwindSafe for Packed

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/index.html b/iced_widget/canvas/index.html index 34c7e2743b..28c6bebce7 100644 --- a/iced_widget/canvas/index.html +++ b/iced_widget/canvas/index.html @@ -41,5 +41,5 @@

    fn view<'a, Message: 'a>(_state: &'a State) -> Element<'a, Message> { canvas(Circle { radius: 50.0 }).into() }

    -

    Re-exports§

    Modules§

    • Fill Geometry with a certain style.
    • A gradient that can be used as a fill for some geometry.
    • Build different kinds of 2D shapes.
    • Create lines from a Path and assigns them various attributes/styles.

    Structs§

    • A widget capable of drawing 2D graphics.
    • The style used to fill geometry.
    • A cache group.
    • A raster image that can be drawn.
    • The dash pattern used when stroking the line.
    • An immutable set of points that may or may not be connected.
    • The style of a stroke.
    • A bunch of text that can be drawn to a canvas

    Enums§

    • A user interface event.
    • A fill which linearly interpolates colors along a direction.
    • The shape used at the end of open subpaths when they are stroked.
    • The shape used at the corners of paths or basic shapes when they are +

    Re-exports§

    Modules§

    • Fill Geometry with a certain style.
    • A gradient that can be used as a fill for some geometry.
    • Build different kinds of 2D shapes.
    • Create lines from a Path and assigns them various attributes/styles.

    Structs§

    • A widget capable of drawing 2D graphics.
    • The style used to fill geometry.
    • A cache group.
    • A raster image that can be drawn.
    • The dash pattern used when stroking the line.
    • An immutable set of points that may or may not be connected.
    • The style of a stroke.
    • A bunch of text that can be drawn to a canvas

    Enums§

    • A user interface event.
    • A fill which linearly interpolates colors along a direction.
    • The shape used at the end of open subpaths when they are stroked.
    • The shape used at the corners of paths or basic shapes when they are stroked.
    • The coloring style of some drawing.

    Traits§

    Type Aliases§

    • A simple cache that stores generated Geometry to avoid recomputation.
    • The frame supported by a renderer.
    • The geometry supported by a renderer.
    \ No newline at end of file diff --git a/iced_widget/canvas/path/arc/index.html b/iced_widget/canvas/path/arc/index.html index cd15c4a960..3c96517da5 100644 --- a/iced_widget/canvas/path/arc/index.html +++ b/iced_widget/canvas/path/arc/index.html @@ -1,2 +1,2 @@ -iced_widget::canvas::path::arc - Rust
    iced_widget::canvas::path

    Module arc

    Source
    Available on crate feature canvas only.
    Expand description

    Build and draw curves.

    +iced_widget::canvas::path::arc - Rust
    iced_widget::canvas::path

    Module arc

    Available on crate feature canvas only.
    Expand description

    Build and draw curves.

    Structs§

    \ No newline at end of file diff --git a/iced_widget/canvas/path/arc/struct.Arc.html b/iced_widget/canvas/path/arc/struct.Arc.html index 328da66621..b3390bc72a 100644 --- a/iced_widget/canvas/path/arc/struct.Arc.html +++ b/iced_widget/canvas/path/arc/struct.Arc.html @@ -1,4 +1,4 @@ -Arc in iced_widget::canvas::path::arc - Rust
    iced_widget::canvas::path::arc

    Struct Arc

    Source
    pub struct Arc {
    +Arc in iced_widget::canvas::path::arc - Rust
    iced_widget::canvas::path::arc

    Struct Arc

    pub struct Arc {
         pub center: Point,
         pub radius: f32,
         pub start_angle: Radians,
    @@ -8,7 +8,7 @@
     
    §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.

    -

    Trait Implementations§

    Source§

    impl Clone for Arc

    Source§

    fn clone(&self) -> Arc

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Arc

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    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 S
    where +

    Trait Implementations§

    §

    impl Clone for Arc

    §

    fn clone(&self) -> Arc

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Arc

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<Arc> for Elliptical

    §

    fn from(arc: Arc) -> Elliptical

    Converts to this type from the input type.
    §

    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 S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/path/arc/struct.Elliptical.html b/iced_widget/canvas/path/arc/struct.Elliptical.html index c1e5be9d2c..0d5f5f3301 100644 --- a/iced_widget/canvas/path/arc/struct.Elliptical.html +++ b/iced_widget/canvas/path/arc/struct.Elliptical.html @@ -1,4 +1,4 @@ -Elliptical in iced_widget::canvas::path::arc - Rust
    iced_widget::canvas::path::arc

    Struct Elliptical

    Source
    pub struct Elliptical {
    +Elliptical in iced_widget::canvas::path::arc - Rust
    iced_widget::canvas::path::arc

    Struct Elliptical

    pub struct Elliptical {
         pub center: Point,
         pub radii: Vector,
         pub rotation: Radians,
    @@ -10,7 +10,7 @@
     
    §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 more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Elliptical

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    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§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Trait Implementations§

    §

    impl Clone for Elliptical

    §

    fn clone(&self) -> Elliptical

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Elliptical

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<Arc> for Elliptical

    §

    fn from(arc: Arc) -> Elliptical

    Converts to this type from the input type.
    §

    impl Copy for Elliptical

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/path/index.html b/iced_widget/canvas/path/index.html index aff0edff92..b618279678 100644 --- a/iced_widget/canvas/path/index.html +++ b/iced_widget/canvas/path/index.html @@ -1,2 +1,2 @@ -iced_widget::canvas::path - Rust
    iced_widget::canvas

    Module path

    Source
    Available on crate feature canvas only.
    Expand description

    Build different kinds of 2D shapes.

    +iced_widget::canvas::path - Rust
    iced_widget::canvas

    Module path

    Available on crate feature canvas only.
    Expand description

    Build different kinds of 2D shapes.

    Modules§

    • Build and draw curves.
    • Data structures and traits to work with paths (vector graphics).

    Structs§

    • A segment of a differentiable curve.
    • A Path builder.
    • An immutable set of points that may or may not be connected.
    \ No newline at end of file diff --git a/iced_widget/canvas/path/struct.Arc.html b/iced_widget/canvas/path/struct.Arc.html index 8b868de831..af7e5fbf10 100644 --- a/iced_widget/canvas/path/struct.Arc.html +++ b/iced_widget/canvas/path/struct.Arc.html @@ -1,4 +1,4 @@ -Arc in iced_widget::canvas::path - Rust
    iced_widget::canvas::path

    Struct Arc

    Source
    pub struct Arc {
    +Arc in iced_widget::canvas::path - Rust
    iced_widget::canvas::path

    Struct Arc

    pub struct Arc {
         pub center: Point,
         pub radius: f32,
         pub start_angle: Radians,
    @@ -8,7 +8,7 @@
     
    §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.

    -

    Trait Implementations§

    Source§

    impl Clone for Arc

    Source§

    fn clone(&self) -> Arc

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Arc

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    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 S
    where +

    Trait Implementations§

    §

    impl Clone for Arc

    §

    fn clone(&self) -> Arc

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Arc

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<Arc> for Elliptical

    §

    fn from(arc: Arc) -> Elliptical

    Converts to this type from the input type.
    §

    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 S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/path/struct.Builder.html b/iced_widget/canvas/path/struct.Builder.html index f854469f1f..6984eb49e4 100644 --- a/iced_widget/canvas/path/struct.Builder.html +++ b/iced_widget/canvas/path/struct.Builder.html @@ -1,12 +1,12 @@ -Builder in iced_widget::canvas::path - Rust
    iced_widget::canvas::path

    Struct Builder

    Source
    pub struct Builder { /* private fields */ }
    Available on crate feature canvas only.
    Expand description

    A Path builder.

    +Builder in iced_widget::canvas::path - Rust
    iced_widget::canvas::path

    Struct Builder

    pub struct Builder { /* private fields */ }
    Available on crate feature canvas only.
    Expand description

    A Path builder.

    Once a Path is built, it can no longer be mutated.

    -

    Implementations§

    Source§

    impl Builder

    Source

    pub fn new() -> Builder

    Creates a new Builder.

    -
    Source

    pub fn move_to(&mut self, point: Point)

    Moves the starting point of a new sub-path to the given Point.

    -
    Source

    pub fn line_to(&mut self, point: Point)

    Connects the last point in the Path to the given Point with a +

    Implementations§

    §

    impl Builder

    pub fn new() -> Builder

    Creates a new Builder.

    +

    pub fn move_to(&mut self, point: Point)

    Moves the starting point of a new sub-path to the given Point.

    +

    pub fn line_to(&mut self, point: Point)

    Connects the last point in the Path to the given Point with a straight line.

    -
    Source

    pub fn arc(&mut self, arc: Arc)

    Adds an Arc to the Path from start_angle to end_angle in +

    pub fn arc(&mut self, arc: Arc)

    Adds an Arc to the Path from start_angle to end_angle in a clockwise direction.

    -
    Source

    pub fn arc_to(&mut self, a: Point, b: Point, radius: f32)

    Adds a circular arc to the Path with the given control points and +

    pub 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 @@ -16,21 +16,21 @@ circular arc smoothing out the corner at a.

    See the HTML5 specification of arcTo for more details and examples.

    -
    Source

    pub fn ellipse(&mut self, arc: Elliptical)

    Adds an ellipse to the Path using a clockwise direction.

    -
    Source

    pub 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 +

    pub fn ellipse(&mut self, arc: Elliptical)

    Adds an ellipse to the Path using a clockwise direction.

    +

    pub 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.

    -
    Source

    pub fn quadratic_curve_to(&mut self, control: Point, to: Point)

    Adds a quadratic Bézier curve to the Path given its control point +

    pub 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.

    -
    Source

    pub fn rectangle(&mut self, top_left: Point, size: Size)

    Adds a rectangle to the Path given its top-left corner coordinate +

    pub fn rectangle(&mut self, top_left: Point, size: Size)

    Adds a rectangle to the Path given its top-left corner coordinate and its Size.

    -
    Source

    pub fn rounded_rectangle(&mut self, top_left: Point, size: Size, radius: Radius)

    Adds a rounded rectangle to the Path given its top-left +

    pub 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].

    -
    Source

    pub fn circle(&mut self, center: Point, radius: f32)

    Adds a circle to the Path given its center coordinate and its +

    pub fn circle(&mut self, center: Point, radius: f32)

    Adds a circle to the Path given its center coordinate and its radius.

    -
    Source

    pub fn close(&mut self)

    Closes the current sub-path in the Path with a straight line to +

    pub fn close(&mut self)

    Closes the current sub-path in the Path with a straight line to the starting point.

    -
    Source

    pub fn build(self) -> Path

    Builds the Path of this Builder.

    -

    Trait Implementations§

    Source§

    impl Default for Builder

    Source§

    fn default() -> Builder

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    pub fn build(self) -> Path

    Builds the Path of this Builder.

    +

    Trait Implementations§

    §

    impl Default for Builder

    §

    fn default() -> Builder

    Returns the “default value” for a type. Read more

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/path/struct.Path.html b/iced_widget/canvas/path/struct.Path.html index 41beaaf7ab..a52322c7ed 100644 --- a/iced_widget/canvas/path/struct.Path.html +++ b/iced_widget/canvas/path/struct.Path.html @@ -1,21 +1,21 @@ -Path in iced_widget::canvas::path - Rust
    iced_widget::canvas::path

    Struct Path

    Source
    pub struct Path { /* private fields */ }
    Available on crate feature canvas only.
    Expand description

    An immutable set of points that may or may not be connected.

    +Path in iced_widget::canvas::path - Rust
    iced_widget::canvas::path

    Struct Path

    pub struct Path { /* private fields */ }
    Available on crate feature canvas only.
    Expand description

    An immutable set of points that may or may not be connected.

    A single Path can represent different kinds of 2D shapes!

    -

    Implementations§

    Source§

    impl Path

    Source

    pub fn new(f: impl FnOnce(&mut Builder)) -> Path

    Creates a new Path with the provided closure.

    +

    Implementations§

    §

    impl Path

    pub fn new(f: impl FnOnce(&mut Builder)) -> Path

    Creates a new Path with the provided closure.

    Use the Builder to configure your Path.

    -
    Source

    pub fn line(from: Point, to: Point) -> Path

    Creates a new Path representing a line segment given its starting +

    pub fn line(from: Point, to: Point) -> Path

    Creates a new Path representing a line segment given its starting and end points.

    -
    Source

    pub fn rectangle(top_left: Point, size: Size) -> Path

    Creates a new Path representing a rectangle given its top-left +

    pub fn rectangle(top_left: Point, size: Size) -> Path

    Creates a new Path representing a rectangle given its top-left corner coordinate and its Size.

    -
    Source

    pub fn rounded_rectangle(top_left: Point, size: Size, radius: Radius) -> Path

    Creates a new Path representing a rounded rectangle given its top-left +

    pub 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].

    -
    Source

    pub fn circle(center: Point, radius: f32) -> Path

    Creates a new Path representing a circle given its center +

    pub fn circle(center: Point, radius: f32) -> Path

    Creates a new Path representing a circle given its center coordinate and its radius.

    -
    Source

    pub fn raw(&self) -> &Path

    Returns the internal lyon_path::Path.

    -
    Source

    pub fn transform( +

    pub fn raw(&self) -> &Path

    Returns the internal lyon_path::Path.

    +

    pub fn transform( &self, transform: &Transform2D<f32, UnknownUnit, UnknownUnit>, ) -> Path

    Returns the current Path with the given transform applied to it.

    -

    Trait Implementations§

    Source§

    impl Clone for Path

    Source§

    fn clone(&self) -> Path

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Path

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Path

    §

    impl RefUnwindSafe for Path

    §

    impl Send for Path

    §

    impl Sync for Path

    §

    impl Unpin for Path

    §

    impl UnwindSafe for Path

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Trait Implementations§

    §

    impl Clone for Path

    §

    fn clone(&self) -> Path

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Path

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Path

    §

    impl RefUnwindSafe for Path

    §

    impl Send for Path

    §

    impl Sync for Path

    §

    impl Unpin for Path

    §

    impl UnwindSafe for Path

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/stroke/enum.LineCap.html b/iced_widget/canvas/stroke/enum.LineCap.html index 1a38c3447e..12fd47b25e 100644 --- a/iced_widget/canvas/stroke/enum.LineCap.html +++ b/iced_widget/canvas/stroke/enum.LineCap.html @@ -1,4 +1,4 @@ -LineCap in iced_widget::canvas::stroke - Rust
    iced_widget::canvas::stroke

    Enum LineCap

    Source
    pub enum LineCap {
    +LineCap in iced_widget::canvas::stroke - Rust
    iced_widget::canvas::stroke

    Enum LineCap

    pub enum LineCap {
         Butt,
         Square,
         Round,
    @@ -8,7 +8,7 @@
     extended by a square.

    §

    Round

    At the end of each sub-path, the shape representing the stroke will be extended by a semicircle.

    -

    Trait Implementations§

    Source§

    impl Clone for LineCap

    Source§

    fn clone(&self) -> LineCap

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for LineCap

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Default for LineCap

    Source§

    fn default() -> LineCap

    Returns the “default value” for a type. Read more
    Source§

    impl Copy for LineCap

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Trait Implementations§

    §

    impl Clone for LineCap

    §

    fn clone(&self) -> LineCap

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for LineCap

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for LineCap

    §

    fn default() -> LineCap

    Returns the “default value” for a type. Read more
    §

    impl Copy for LineCap

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/stroke/enum.LineJoin.html b/iced_widget/canvas/stroke/enum.LineJoin.html index d549760387..dac45bd7ff 100644 --- a/iced_widget/canvas/stroke/enum.LineJoin.html +++ b/iced_widget/canvas/stroke/enum.LineJoin.html @@ -1,4 +1,4 @@ -LineJoin in iced_widget::canvas::stroke - Rust
    iced_widget::canvas::stroke

    Enum LineJoin

    Source
    pub enum LineJoin {
    +LineJoin in iced_widget::canvas::stroke - Rust
    iced_widget::canvas::stroke

    Enum LineJoin

    pub enum LineJoin {
         Miter,
         Round,
         Bevel,
    @@ -7,7 +7,7 @@
     

    Variants§

    §

    Miter

    A sharp corner.

    §

    Round

    A round corner.

    §

    Bevel

    A bevelled corner.

    -

    Trait Implementations§

    Source§

    impl Clone for LineJoin

    Source§

    fn clone(&self) -> LineJoin

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for LineJoin

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Default for LineJoin

    Source§

    fn default() -> LineJoin

    Returns the “default value” for a type. Read more
    Source§

    impl Copy for LineJoin

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Trait Implementations§

    §

    impl Clone for LineJoin

    §

    fn clone(&self) -> LineJoin

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for LineJoin

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for LineJoin

    §

    fn default() -> LineJoin

    Returns the “default value” for a type. Read more
    §

    impl Copy for LineJoin

    Auto Trait Implementations§

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/stroke/enum.Style.html b/iced_widget/canvas/stroke/enum.Style.html index c288f6be53..0e1858a7f5 100644 --- a/iced_widget/canvas/stroke/enum.Style.html +++ b/iced_widget/canvas/stroke/enum.Style.html @@ -1,11 +1,11 @@ -Style in iced_widget::canvas::stroke - Rust
    iced_widget::canvas::stroke

    Enum Style

    Source
    pub enum Style {
    +Style in iced_widget::canvas::stroke - Rust
    iced_widget::canvas::stroke

    Enum Style

    pub enum Style {
         Solid(Color),
         Gradient(Gradient),
     }
    Available on crate feature canvas only.
    Expand description

    The coloring style of some drawing.

    Variants§

    §

    Solid(Color)

    A solid [Color].

    §

    Gradient(Gradient)

    A Gradient color.

    -

    Trait Implementations§

    Source§

    impl Clone for Style

    Source§

    fn clone(&self) -> Style

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Style

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl From<Color> for Style

    Source§

    fn from(color: Color) -> Style

    Converts to this type from the input type.
    Source§

    impl From<Gradient> for Style

    Source§

    fn from(gradient: Gradient) -> Style

    Converts to this type from the input type.
    Source§

    impl PartialEq for Style

    Source§

    fn eq(&self, other: &Style) -> 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, -and should not be overridden without very good reason.
    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 S
    where +

    Trait Implementations§

    §

    impl Clone for Style

    §

    fn clone(&self) -> Style

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Style

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl From<Color> for Style

    §

    fn from(color: Color) -> Style

    Converts to this type from the input type.
    §

    impl From<Gradient> for Style

    §

    fn from(gradient: Gradient) -> Style

    Converts to this type from the input type.
    §

    impl PartialEq for Style

    §

    fn eq(&self, other: &Style) -> 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, +and should not be overridden without very good reason.
    §

    impl Copy for Style

    §

    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 S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/stroke/index.html b/iced_widget/canvas/stroke/index.html index 603ad15e98..9b92157ad2 100644 --- a/iced_widget/canvas/stroke/index.html +++ b/iced_widget/canvas/stroke/index.html @@ -1,3 +1,3 @@ -iced_widget::canvas::stroke - Rust
    iced_widget::canvas

    Module stroke

    Source
    Available on crate feature canvas only.
    Expand description

    Create lines from a Path and assigns them various attributes/styles.

    +iced_widget::canvas::stroke - Rust
    iced_widget::canvas

    Module stroke

    Available on crate feature canvas only.
    Expand description

    Create lines from a Path and assigns them various attributes/styles.

    Structs§

    • The dash pattern used when stroking the line.
    • The style of a stroke.

    Enums§

    • The shape used at the end of open subpaths when they are stroked.
    • The shape used at the corners of paths or basic shapes when they are stroked.
    • The coloring style of some drawing.
    \ No newline at end of file diff --git a/iced_widget/canvas/stroke/struct.LineDash.html b/iced_widget/canvas/stroke/struct.LineDash.html index 7737b6e043..9d64985f35 100644 --- a/iced_widget/canvas/stroke/struct.LineDash.html +++ b/iced_widget/canvas/stroke/struct.LineDash.html @@ -1,10 +1,10 @@ -LineDash in iced_widget::canvas::stroke - Rust
    iced_widget::canvas::stroke

    Struct LineDash

    Source
    pub struct LineDash<'a> {
    +LineDash in iced_widget::canvas::stroke - Rust
    iced_widget::canvas::stroke

    Struct LineDash

    pub struct LineDash<'a> {
         pub segments: &'a [f32],
         pub offset: usize,
     }
    Available on crate feature canvas only.
    Expand description

    The dash pattern used when stroking the line.

    Fields§

    §segments: &'a [f32]

    The alternating lengths of lines and gaps which describe the pattern.

    §offset: usize

    The offset of LineDash::segments to start the pattern.

    -

    Trait Implementations§

    Source§

    impl<'a> Clone for LineDash<'a>

    Source§

    fn clone(&self) -> LineDash<'a>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl<'a> Debug for LineDash<'a>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl<'a> Default for LineDash<'a>

    Source§

    fn default() -> LineDash<'a>

    Returns the “default value” for a type. Read more
    Source§

    impl<'a> Copy for LineDash<'a>

    Auto Trait Implementations§

    §

    impl<'a> Freeze for LineDash<'a>

    §

    impl<'a> RefUnwindSafe for LineDash<'a>

    §

    impl<'a> Send for LineDash<'a>

    §

    impl<'a> Sync for LineDash<'a>

    §

    impl<'a> Unpin for LineDash<'a>

    §

    impl<'a> UnwindSafe for LineDash<'a>

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Trait Implementations§

    §

    impl<'a> Clone for LineDash<'a>

    §

    fn clone(&self) -> LineDash<'a>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<'a> Debug for LineDash<'a>

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<'a> Default for LineDash<'a>

    §

    fn default() -> LineDash<'a>

    Returns the “default value” for a type. Read more
    §

    impl<'a> Copy for LineDash<'a>

    Auto Trait Implementations§

    §

    impl<'a> Freeze for LineDash<'a>

    §

    impl<'a> RefUnwindSafe for LineDash<'a>

    §

    impl<'a> Send for LineDash<'a>

    §

    impl<'a> Sync for LineDash<'a>

    §

    impl<'a> Unpin for LineDash<'a>

    §

    impl<'a> UnwindSafe for LineDash<'a>

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/stroke/struct.Stroke.html b/iced_widget/canvas/stroke/struct.Stroke.html index da656f319d..b36dbd36e6 100644 --- a/iced_widget/canvas/stroke/struct.Stroke.html +++ b/iced_widget/canvas/stroke/struct.Stroke.html @@ -1,4 +1,4 @@ -Stroke in iced_widget::canvas::stroke - Rust
    iced_widget::canvas::stroke

    Struct Stroke

    Source
    pub struct Stroke<'a> {
    +Stroke in iced_widget::canvas::stroke - Rust
    iced_widget::canvas::stroke

    Struct Stroke

    pub struct Stroke<'a> {
         pub style: Style,
         pub width: f32,
         pub line_cap: LineCap,
    @@ -12,11 +12,11 @@
     
    §line_join: LineJoin

    The shape to be used at the corners of paths or basic shapes when they are stroked.

    §line_dash: LineDash<'a>

    The dash pattern used when stroking the line.

    -

    Implementations§

    Source§

    impl Stroke<'_>

    Source

    pub fn with_color(self, color: Color) -> Stroke<'_>

    Sets the color of the Stroke.

    -
    Source

    pub fn with_width(self, width: f32) -> Stroke<'_>

    Sets the width of the Stroke.

    -
    Source

    pub fn with_line_cap(self, line_cap: LineCap) -> Stroke<'_>

    Sets the LineCap of the Stroke.

    -
    Source

    pub fn with_line_join(self, line_join: LineJoin) -> Stroke<'_>

    Sets the LineJoin of the Stroke.

    -

    Trait Implementations§

    Source§

    impl<'a> Clone for Stroke<'a>

    Source§

    fn clone(&self) -> Stroke<'a>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl<'a> Debug for Stroke<'a>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Default for Stroke<'_>

    Source§

    fn default() -> Stroke<'_>

    Returns the “default value” for a type. Read more
    Source§

    impl<'a> Copy for Stroke<'a>

    Auto Trait Implementations§

    §

    impl<'a> Freeze for Stroke<'a>

    §

    impl<'a> RefUnwindSafe for Stroke<'a>

    §

    impl<'a> Send for Stroke<'a>

    §

    impl<'a> Sync for Stroke<'a>

    §

    impl<'a> Unpin for Stroke<'a>

    §

    impl<'a> UnwindSafe for Stroke<'a>

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Implementations§

    §

    impl Stroke<'_>

    pub fn with_color(self, color: Color) -> Stroke<'_>

    Sets the color of the Stroke.

    +

    pub fn with_width(self, width: f32) -> Stroke<'_>

    Sets the width of the Stroke.

    +

    pub fn with_line_cap(self, line_cap: LineCap) -> Stroke<'_>

    Sets the LineCap of the Stroke.

    +

    pub fn with_line_join(self, line_join: LineJoin) -> Stroke<'_>

    Sets the LineJoin of the Stroke.

    +

    Trait Implementations§

    §

    impl<'a> Clone for Stroke<'a>

    §

    fn clone(&self) -> Stroke<'a>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<'a> Debug for Stroke<'a>

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Stroke<'_>

    §

    fn default() -> Stroke<'_>

    Returns the “default value” for a type. Read more
    §

    impl<'a> Copy for Stroke<'a>

    Auto Trait Implementations§

    §

    impl<'a> Freeze for Stroke<'a>

    §

    impl<'a> RefUnwindSafe for Stroke<'a>

    §

    impl<'a> Send for Stroke<'a>

    §

    impl<'a> Sync for Stroke<'a>

    §

    impl<'a> Unpin for Stroke<'a>

    §

    impl<'a> UnwindSafe for Stroke<'a>

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/struct.Canvas.html b/iced_widget/canvas/struct.Canvas.html index fb6a5fead1..e9cbda6d99 100644 --- a/iced_widget/canvas/struct.Canvas.html +++ b/iced_widget/canvas/struct.Canvas.html @@ -1,5 +1,5 @@ Canvas in iced_widget::canvas - Rust
    iced_widget::canvas

    Struct Canvas

    Source
    pub struct Canvas<P, Message, Theme = Theme, Renderer = Renderer>
    where - Renderer: Renderer, + Renderer: Renderer, P: Program<Message, Theme, Renderer>,
    { /* private fields */ }
    Available on crate feature canvas only.
    Expand description

    A widget capable of drawing 2D graphics.

    §Example: Drawing a Simple Circle

    use iced::mouse;
    @@ -45,19 +45,19 @@ 

    Implementations§

    Source§

    impl<P, Message, Theme, Renderer> Canvas<P, Message, Theme, Renderer>
    where P: Program<Message, Theme, Renderer>, - Renderer: Renderer,

    Source

    pub fn new(program: P) -> Self

    Creates a new Canvas.

    + Renderer: Renderer,

    Source

    pub fn new(program: P) -> Self

    Creates a new Canvas.

    Source

    pub fn width(self, width: impl Into<Length>) -> Self

    Sets the width of the Canvas.

    Source

    pub fn height(self, height: impl Into<Length>) -> Self

    Sets the height of the Canvas.

    Trait Implementations§

    Source§

    impl<P, Message: Debug, Theme: Debug, Renderer> Debug for Canvas<P, Message, Theme, Renderer>
    where - Renderer: Renderer + Debug, + Renderer: Renderer + Debug, P: Program<Message, Theme, Renderer> + Debug,

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    Source§

    impl<'a, P, Message, Theme, Renderer> From<Canvas<P, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
    where Message: 'a, Theme: 'a, - Renderer: 'a + Renderer, + Renderer: 'a + Renderer, P: 'a + Program<Message, Theme, Renderer>,

    Source§

    fn from( canvas: Canvas<P, Message, Theme, Renderer>, ) -> Element<'a, Message, Theme, Renderer>

    Converts to this type from the input type.
    Source§

    impl<P, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Canvas<P, Message, Theme, Renderer>
    where - Renderer: Renderer, + Renderer: Renderer, P: Program<Message, Theme, Renderer>,

    Source§

    fn tag(&self) -> Tag

    Returns the Tag of the [Widget].
    Source§

    fn state(&self) -> State

    Returns the State of the [Widget].
    Source§

    fn size(&self) -> Size<Length>

    Returns the [Size] of the [Widget] in lengths.
    Source§

    fn layout( &self, _tree: &mut Tree, diff --git a/iced_widget/canvas/struct.Fill.html b/iced_widget/canvas/struct.Fill.html index 447d999fd3..6de6c8d444 100644 --- a/iced_widget/canvas/struct.Fill.html +++ b/iced_widget/canvas/struct.Fill.html @@ -1,4 +1,4 @@ -Fill in iced_widget::canvas - Rust
    iced_widget::canvas

    Struct Fill

    Source
    pub struct Fill {
    +Fill in iced_widget::canvas - Rust
    iced_widget::canvas

    Struct Fill

    pub struct Fill {
         pub style: Style,
         pub rule: Rule,
     }
    Available on crate feature canvas only.
    Expand description

    The style used to fill geometry.

    @@ -8,7 +8,7 @@ outside of a shape.

    See the SVG specification for more details.

    By default, it is set to NonZero.

    -

    Trait Implementations§

    Source§

    impl Clone for Fill

    Source§

    fn clone(&self) -> Fill

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Fill

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Default for Fill

    Source§

    fn default() -> Fill

    Returns the “default value” for a type. Read more
    Source§

    impl From<Color> for Fill

    Source§

    fn from(color: Color) -> Fill

    Converts to this type from the input type.
    Source§

    impl From<Gradient> for Fill

    Source§

    fn from(gradient: Gradient) -> Fill

    Converts to this type from the input type.
    Source§

    impl From<Linear> for Fill

    Source§

    fn from(gradient: Linear) -> Fill

    Converts to this type from the input type.
    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 S
    where +

    Trait Implementations§

    §

    impl Clone for Fill

    §

    fn clone(&self) -> Fill

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Fill

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Fill

    §

    fn default() -> Fill

    Returns the “default value” for a type. Read more
    §

    impl From<Color> for Fill

    §

    fn from(color: Color) -> Fill

    Converts to this type from the input type.
    §

    impl From<Gradient> for Fill

    §

    fn from(gradient: Gradient) -> Fill

    Converts to this type from the input type.
    §

    impl From<Linear> for Fill

    §

    fn from(gradient: Linear) -> Fill

    Converts to this type from the input type.
    §

    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 S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/struct.Group.html b/iced_widget/canvas/struct.Group.html index d362eae7ef..0033e68bbb 100644 --- a/iced_widget/canvas/struct.Group.html +++ b/iced_widget/canvas/struct.Group.html @@ -1,26 +1,26 @@ -Group in iced_widget::canvas - Rust
    iced_widget::canvas

    Struct Group

    Source
    pub struct Group { /* private fields */ }
    Available on crate feature canvas only.
    Expand description

    A cache group.

    +Group in iced_widget::canvas - Rust
    iced_widget::canvas

    Struct Group

    pub struct Group { /* private fields */ }
    Available on crate feature canvas only.
    Expand description

    A cache group.

    Caches that share the same group generally change together.

    A cache group can be used to implement certain performance optimizations during rendering, like batching or sharing atlases.

    -

    Implementations§

    Source§

    impl Group

    Source

    pub fn unique() -> Group

    Generates a new unique cache Group.

    -
    Source

    pub fn is_singleton(self) -> bool

    Returns true if the Group can only ever have a -single Cache in it.

    +

    Implementations§

    §

    impl Group

    pub fn unique() -> Group

    Generates a new unique cache Group.

    +

    pub fn is_singleton(self) -> bool

    Returns true if the Group can only ever have a +single [Cache] in it.

    This is the default kind of Group assigned when using -Cache::new.

    +[Cache::new].

    Knowing that a Group will never be shared may be useful for rendering backends to perform additional optimizations.

    -

    Trait Implementations§

    Source§

    impl Clone for Group

    Source§

    fn clone(&self) -> Group

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Group

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Hash for Group

    Source§

    fn hash<__H>(&self, state: &mut __H)
    where +

    Trait Implementations§

    §

    impl Clone for Group

    §

    fn clone(&self) -> Group

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Group

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Hash for Group

    §

    fn hash<__H>(&self, state: &mut __H)
    where __H: Hasher,

    Feeds this value into the given Hasher. Read more
    1.3.0 · Source§

    fn hash_slice<H>(data: &[Self], state: &mut H)
    where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    Source§

    impl Ord for Group

    Source§

    fn cmp(&self, other: &Group) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where + Self: Sized,

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl Ord for Group

    §

    fn cmp(&self, other: &Group) -> Ordering

    This method returns an Ordering between self and other. Read more
    1.21.0 · Source§

    fn max(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0 · Source§

    fn min(self, other: Self) -> Self
    where Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0 · Source§

    fn clamp(self, min: Self, max: Self) -> Self
    where - Self: Sized,

    Restrict a value to a certain interval. Read more
    Source§

    impl PartialEq for Group

    Source§

    fn eq(&self, other: &Group) -> 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, -and should not be overridden without very good reason.
    Source§

    impl PartialOrd for Group

    Source§

    fn partial_cmp(&self, other: &Group) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the + Self: Sized,

    Restrict a value to a certain interval. Read more
    §

    impl PartialEq for Group

    §

    fn eq(&self, other: &Group) -> 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, +and should not be overridden without very good reason.
    §

    impl PartialOrd for Group

    §

    fn partial_cmp(&self, other: &Group) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0 · Source§

    fn lt(&self, other: &Rhs) -> bool

    Tests less than (for self and other) and is used by the < operator. Read more
    1.0.0 · Source§

    fn le(&self, other: &Rhs) -> bool

    Tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0 · Source§

    fn gt(&self, other: &Rhs) -> bool

    Tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0 · Source§

    fn ge(&self, other: &Rhs) -> bool

    Tests greater than or equal to (for self and other) and is used by -the >= operator. Read more
    Source§

    impl Copy for Group

    Source§

    impl Eq for Group

    Source§

    impl StructuralPartialEq for Group

    Auto Trait Implementations§

    §

    impl Freeze for Group

    §

    impl RefUnwindSafe for Group

    §

    impl Send for Group

    §

    impl Sync for Group

    §

    impl Unpin for Group

    §

    impl UnwindSafe for Group

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +the >= operator. Read more

    §

    impl Copy for Group

    §

    impl Eq for Group

    §

    impl StructuralPartialEq for Group

    Auto Trait Implementations§

    §

    impl Freeze for Group

    §

    impl RefUnwindSafe for Group

    §

    impl Send for Group

    §

    impl Sync for Group

    §

    impl Unpin for Group

    §

    impl UnwindSafe for Group

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/struct.LineDash.html b/iced_widget/canvas/struct.LineDash.html index 816ff18b65..224daecf39 100644 --- a/iced_widget/canvas/struct.LineDash.html +++ b/iced_widget/canvas/struct.LineDash.html @@ -1,10 +1,10 @@ -LineDash in iced_widget::canvas - Rust
    iced_widget::canvas

    Struct LineDash

    Source
    pub struct LineDash<'a> {
    +LineDash in iced_widget::canvas - Rust
    iced_widget::canvas

    Struct LineDash

    pub struct LineDash<'a> {
         pub segments: &'a [f32],
         pub offset: usize,
     }
    Available on crate feature canvas only.
    Expand description

    The dash pattern used when stroking the line.

    Fields§

    §segments: &'a [f32]

    The alternating lengths of lines and gaps which describe the pattern.

    §offset: usize

    The offset of LineDash::segments to start the pattern.

    -

    Trait Implementations§

    Source§

    impl<'a> Clone for LineDash<'a>

    Source§

    fn clone(&self) -> LineDash<'a>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl<'a> Debug for LineDash<'a>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl<'a> Default for LineDash<'a>

    Source§

    fn default() -> LineDash<'a>

    Returns the “default value” for a type. Read more
    Source§

    impl<'a> Copy for LineDash<'a>

    Auto Trait Implementations§

    §

    impl<'a> Freeze for LineDash<'a>

    §

    impl<'a> RefUnwindSafe for LineDash<'a>

    §

    impl<'a> Send for LineDash<'a>

    §

    impl<'a> Sync for LineDash<'a>

    §

    impl<'a> Unpin for LineDash<'a>

    §

    impl<'a> UnwindSafe for LineDash<'a>

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Trait Implementations§

    §

    impl<'a> Clone for LineDash<'a>

    §

    fn clone(&self) -> LineDash<'a>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<'a> Debug for LineDash<'a>

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl<'a> Default for LineDash<'a>

    §

    fn default() -> LineDash<'a>

    Returns the “default value” for a type. Read more
    §

    impl<'a> Copy for LineDash<'a>

    Auto Trait Implementations§

    §

    impl<'a> Freeze for LineDash<'a>

    §

    impl<'a> RefUnwindSafe for LineDash<'a>

    §

    impl<'a> Send for LineDash<'a>

    §

    impl<'a> Sync for LineDash<'a>

    §

    impl<'a> Unpin for LineDash<'a>

    §

    impl<'a> UnwindSafe for LineDash<'a>

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/struct.Path.html b/iced_widget/canvas/struct.Path.html index 1beb3e8864..ac03ab2554 100644 --- a/iced_widget/canvas/struct.Path.html +++ b/iced_widget/canvas/struct.Path.html @@ -1,21 +1,21 @@ -Path in iced_widget::canvas - Rust
    iced_widget::canvas

    Struct Path

    Source
    pub struct Path { /* private fields */ }
    Available on crate feature canvas only.
    Expand description

    An immutable set of points that may or may not be connected.

    +Path in iced_widget::canvas - Rust
    iced_widget::canvas

    Struct Path

    pub struct Path { /* private fields */ }
    Available on crate feature canvas only.
    Expand description

    An immutable set of points that may or may not be connected.

    A single Path can represent different kinds of 2D shapes!

    -

    Implementations§

    Source§

    impl Path

    Source

    pub fn new(f: impl FnOnce(&mut Builder)) -> Path

    Creates a new Path with the provided closure.

    +

    Implementations§

    §

    impl Path

    pub fn new(f: impl FnOnce(&mut Builder)) -> Path

    Creates a new Path with the provided closure.

    Use the Builder to configure your Path.

    -
    Source

    pub fn line(from: Point, to: Point) -> Path

    Creates a new Path representing a line segment given its starting +

    pub fn line(from: Point, to: Point) -> Path

    Creates a new Path representing a line segment given its starting and end points.

    -
    Source

    pub fn rectangle(top_left: Point, size: Size) -> Path

    Creates a new Path representing a rectangle given its top-left +

    pub fn rectangle(top_left: Point, size: Size) -> Path

    Creates a new Path representing a rectangle given its top-left corner coordinate and its Size.

    -
    Source

    pub fn rounded_rectangle(top_left: Point, size: Size, radius: Radius) -> Path

    Creates a new Path representing a rounded rectangle given its top-left +

    pub 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].

    -
    Source

    pub fn circle(center: Point, radius: f32) -> Path

    Creates a new Path representing a circle given its center +

    pub fn circle(center: Point, radius: f32) -> Path

    Creates a new Path representing a circle given its center coordinate and its radius.

    -
    Source

    pub fn raw(&self) -> &Path

    Returns the internal lyon_path::Path.

    -
    Source

    pub fn transform( +

    pub fn raw(&self) -> &Path

    Returns the internal lyon_path::Path.

    +

    pub fn transform( &self, transform: &Transform2D<f32, UnknownUnit, UnknownUnit>, ) -> Path

    Returns the current Path with the given transform applied to it.

    -

    Trait Implementations§

    Source§

    impl Clone for Path

    Source§

    fn clone(&self) -> Path

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Path

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Path

    §

    impl RefUnwindSafe for Path

    §

    impl Send for Path

    §

    impl Sync for Path

    §

    impl Unpin for Path

    §

    impl UnwindSafe for Path

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Trait Implementations§

    §

    impl Clone for Path

    §

    fn clone(&self) -> Path

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Path

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl Freeze for Path

    §

    impl RefUnwindSafe for Path

    §

    impl Send for Path

    §

    impl Sync for Path

    §

    impl Unpin for Path

    §

    impl UnwindSafe for Path

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/struct.Stroke.html b/iced_widget/canvas/struct.Stroke.html index 5288211723..5faaef109a 100644 --- a/iced_widget/canvas/struct.Stroke.html +++ b/iced_widget/canvas/struct.Stroke.html @@ -1,4 +1,4 @@ -Stroke in iced_widget::canvas - Rust
    iced_widget::canvas

    Struct Stroke

    Source
    pub struct Stroke<'a> {
    +Stroke in iced_widget::canvas - Rust
    iced_widget::canvas

    Struct Stroke

    pub struct Stroke<'a> {
         pub style: Style,
         pub width: f32,
         pub line_cap: LineCap,
    @@ -12,11 +12,11 @@
     
    §line_join: LineJoin

    The shape to be used at the corners of paths or basic shapes when they are stroked.

    §line_dash: LineDash<'a>

    The dash pattern used when stroking the line.

    -

    Implementations§

    Source§

    impl Stroke<'_>

    Source

    pub fn with_color(self, color: Color) -> Stroke<'_>

    Sets the color of the Stroke.

    -
    Source

    pub fn with_width(self, width: f32) -> Stroke<'_>

    Sets the width of the Stroke.

    -
    Source

    pub fn with_line_cap(self, line_cap: LineCap) -> Stroke<'_>

    Sets the LineCap of the Stroke.

    -
    Source

    pub fn with_line_join(self, line_join: LineJoin) -> Stroke<'_>

    Sets the LineJoin of the Stroke.

    -

    Trait Implementations§

    Source§

    impl<'a> Clone for Stroke<'a>

    Source§

    fn clone(&self) -> Stroke<'a>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl<'a> Debug for Stroke<'a>

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Default for Stroke<'_>

    Source§

    fn default() -> Stroke<'_>

    Returns the “default value” for a type. Read more
    Source§

    impl<'a> Copy for Stroke<'a>

    Auto Trait Implementations§

    §

    impl<'a> Freeze for Stroke<'a>

    §

    impl<'a> RefUnwindSafe for Stroke<'a>

    §

    impl<'a> Send for Stroke<'a>

    §

    impl<'a> Sync for Stroke<'a>

    §

    impl<'a> Unpin for Stroke<'a>

    §

    impl<'a> UnwindSafe for Stroke<'a>

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Implementations§

    §

    impl Stroke<'_>

    pub fn with_color(self, color: Color) -> Stroke<'_>

    Sets the color of the Stroke.

    +

    pub fn with_width(self, width: f32) -> Stroke<'_>

    Sets the width of the Stroke.

    +

    pub fn with_line_cap(self, line_cap: LineCap) -> Stroke<'_>

    Sets the LineCap of the Stroke.

    +

    pub fn with_line_join(self, line_join: LineJoin) -> Stroke<'_>

    Sets the LineJoin of the Stroke.

    +

    Trait Implementations§

    §

    impl<'a> Clone for Stroke<'a>

    §

    fn clone(&self) -> Stroke<'a>

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl<'a> Debug for Stroke<'a>

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Stroke<'_>

    §

    fn default() -> Stroke<'_>

    Returns the “default value” for a type. Read more
    §

    impl<'a> Copy for Stroke<'a>

    Auto Trait Implementations§

    §

    impl<'a> Freeze for Stroke<'a>

    §

    impl<'a> RefUnwindSafe for Stroke<'a>

    §

    impl<'a> Send for Stroke<'a>

    §

    impl<'a> Sync for Stroke<'a>

    §

    impl<'a> Unpin for Stroke<'a>

    §

    impl<'a> UnwindSafe for Stroke<'a>

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/struct.Text.html b/iced_widget/canvas/struct.Text.html index 86c7e4ae07..c11d78e008 100644 --- a/iced_widget/canvas/struct.Text.html +++ b/iced_widget/canvas/struct.Text.html @@ -1,4 +1,4 @@ -Text in iced_widget::canvas - Rust
    iced_widget::canvas

    Struct Text

    Source
    pub struct Text {
    +Text in iced_widget::canvas - Rust
    iced_widget::canvas

    Struct Text

    pub struct Text {
         pub content: String,
         pub position: Point,
         pub color: Color,
    @@ -25,9 +25,9 @@
     
    §horizontal_alignment: Horizontal

    The horizontal alignment of the text

    §vertical_alignment: Vertical

    The vertical alignment of the text

    §shaping: Shaping

    The shaping strategy of the text.

    -

    Implementations§

    Source§

    impl Text

    Source

    pub fn draw_with(&self, f: impl FnMut(Path, Color))

    Computes the Paths of the Text and draws them using +

    Implementations§

    §

    impl Text

    pub fn draw_with(&self, f: impl FnMut(Path, Color))

    Computes the Paths of the Text and draws them using the given closure.

    -

    Trait Implementations§

    Source§

    impl Clone for Text

    Source§

    fn clone(&self) -> Text

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    Source§

    impl Debug for Text

    Source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    Source§

    impl Default for Text

    Source§

    fn default() -> Text

    Returns the “default value” for a type. Read more
    Source§

    impl From<&str> for Text

    Source§

    fn from(content: &str) -> Text

    Converts to this type from the input type.
    Source§

    impl From<String> for Text

    Source§

    fn from(content: String) -> Text

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl Freeze for Text

    §

    impl RefUnwindSafe for Text

    §

    impl Send for Text

    §

    impl Sync for Text

    §

    impl Unpin for Text

    §

    impl UnwindSafe for Text

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where +

    Trait Implementations§

    §

    impl Clone for Text

    §

    fn clone(&self) -> Text

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Text

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Text

    §

    fn default() -> Text

    Returns the “default value” for a type. Read more
    §

    impl From<&str> for Text

    §

    fn from(content: &str) -> Text

    Converts to this type from the input type.
    §

    impl From<String> for Text

    §

    fn from(content: String) -> Text

    Converts to this type from the input type.

    Auto Trait Implementations§

    §

    impl Freeze for Text

    §

    impl RefUnwindSafe for Text

    §

    impl Send for Text

    §

    impl Sync for Text

    §

    impl Unpin for Text

    §

    impl UnwindSafe for Text

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/canvas/trait.Program.html b/iced_widget/canvas/trait.Program.html index 38ed47e0ae..85a5f3cf91 100644 --- a/iced_widget/canvas/trait.Program.html +++ b/iced_widget/canvas/trait.Program.html @@ -1,5 +1,5 @@ Program in iced_widget::canvas - Rust
    iced_widget::canvas

    Trait Program

    Source
    pub trait Program<Message, Theme = Theme, Renderer = Renderer>
    where - Renderer: Renderer,
    { + Renderer: Renderer,
    { type State: Default + 'static; // Required method @@ -62,7 +62,7 @@

    The interaction returned will be in effect even if the cursor position is out of bounds of the program’s Canvas.

    Implementations on Foreign Types§

    Source§

    impl<Message, Theme, Renderer, T> Program<Message, Theme, Renderer> for &T
    where - Renderer: Renderer, + Renderer: Renderer, T: Program<Message, Theme, Renderer>,

    Source§

    type State = <T as Program<Message, Theme, Renderer>>::State

    Source§

    fn update( &self, state: &mut Self::State, diff --git a/iced_widget/canvas/type.Cache.html b/iced_widget/canvas/type.Cache.html index bf14236e10..6908e99163 100644 --- a/iced_widget/canvas/type.Cache.html +++ b/iced_widget/canvas/type.Cache.html @@ -1,4 +1,4 @@ -Cache in iced_widget::canvas - Rust
    iced_widget::canvas

    Type Alias Cache

    Source
    pub type Cache<Renderer = Renderer> = Cache<Renderer>;
    Available on crate feature canvas only.
    Expand description

    A simple cache that stores generated Geometry to avoid recomputation.

    +Cache in iced_widget::canvas - Rust
    iced_widget::canvas

    Type Alias Cache

    Source
    pub type Cache<Renderer = Renderer> = Cache<Renderer>;
    Available on crate feature canvas only.
    Expand description

    A simple cache that stores generated Geometry to avoid recomputation.

    A Cache will not redraw its geometry unless the dimensions of its layer change or it is explicitly cleared.

    Aliased Type§

    struct Cache<Renderer = Renderer> { /* private fields */ }
    \ No newline at end of file diff --git a/iced_widget/canvas/type.Frame.html b/iced_widget/canvas/type.Frame.html index 7d2386a09b..b782db3bd5 100644 --- a/iced_widget/canvas/type.Frame.html +++ b/iced_widget/canvas/type.Frame.html @@ -1,2 +1,2 @@ -Frame in iced_widget::canvas - Rust
    iced_widget::canvas

    Type Alias Frame

    Source
    pub type Frame<Renderer = Renderer> = Frame<Renderer>;
    Available on crate feature canvas only.
    Expand description

    The frame supported by a renderer.

    +Frame in iced_widget::canvas - Rust
    iced_widget::canvas

    Type Alias Frame

    Source
    pub type Frame<Renderer = Renderer> = Frame<Renderer>;
    Available on crate feature canvas only.
    Expand description

    The frame supported by a renderer.

    Aliased Type§

    struct Frame<Renderer = Renderer> { /* private fields */ }
    \ No newline at end of file diff --git a/iced_widget/canvas/type.Geometry.html b/iced_widget/canvas/type.Geometry.html index 947f723db7..3b61ee9a15 100644 --- a/iced_widget/canvas/type.Geometry.html +++ b/iced_widget/canvas/type.Geometry.html @@ -1,2 +1,2 @@ -Geometry in iced_widget::canvas - Rust
    iced_widget::canvas

    Type Alias Geometry

    Source
    pub type Geometry<Renderer = Renderer> = <Renderer as Renderer>::Geometry;
    Available on crate feature canvas only.
    Expand description

    The geometry supported by a renderer.

    +Geometry in iced_widget::canvas - Rust
    iced_widget::canvas

    Type Alias Geometry

    Source
    pub type Geometry<Renderer = Renderer> = <Renderer as Renderer>::Geometry;
    Available on crate feature canvas only.
    Expand description

    The geometry supported by a renderer.

    \ No newline at end of file diff --git a/iced_widget/enum.Theme.html b/iced_widget/enum.Theme.html index 8abcae6236..633a32eed4 100644 --- a/iced_widget/enum.Theme.html +++ b/iced_widget/enum.Theme.html @@ -56,7 +56,7 @@ a custom generator of a palette::Extended.

    pub fn palette(&self) -> Palette

    Returns the Palette of the Theme.

    pub fn extended_palette(&self) -> &Extended

    Returns the palette::Extended of the Theme.

    -

    Trait Implementations§

    §

    impl Catalog for Theme

    §

    type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

    The item class of this Catalog.
    §

    fn default<'a>() -> <Theme as Catalog>::Class<'a>

    The default class produced by this Catalog.
    §

    fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Available on crate feature svg only.
    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Available on crate feature qr_code only.
    Source§

    type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Available on crate feature markdown only.
    Source§

    fn code_block<'a>() -> <Self as Catalog>::Class<'a>

    The styling class of a Markdown code block.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    fn default_input<'a>() -> <Self as Catalog>::Class<'a>

    The default class for the text input of the ComboBox.
    Source§

    fn default_menu<'a>() -> <Self as Catalog>::Class<'a>

    The default class for the menu of the ComboBox.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> StyleFn<'a, Self>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &StyleFn<'_, Self>) -> Style

    The Style of a class with the given status.
    Source§

    fn default_scrollable<'a>() -> <Self as Catalog>::Class<'a>

    The default class for the scrollable of the Menu.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

    The item class of this Catalog.
    Source§

    fn default<'a>() -> StyleFn<'a, Self>

    The default class produced by this Catalog.
    Source§

    fn style(&self, class: &StyleFn<'_, Self>) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> StyleFn<'a, Self>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &StyleFn<'_, Self>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    fn default_menu<'a>() -> <Self as Catalog>::Class<'a>

    The default class for the menu of the PickList.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    §

    impl Clone for Theme

    §

    fn clone(&self) -> Theme

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Theme

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Theme

    §

    fn default() -> Theme

    Returns the “default value” for a type. Read more
    §

    impl Display for Theme

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl PartialEq for Theme

    §

    fn eq(&self, other: &Theme) -> 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, +

    Trait Implementations§

    §

    impl Catalog for Theme

    §

    type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

    The item class of this Catalog.
    §

    fn default<'a>() -> <Theme as Catalog>::Class<'a>

    The default class produced by this Catalog.
    §

    fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Available on crate feature svg only.
    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Available on crate feature qr_code only.
    Source§

    type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Available on crate feature markdown only.
    Source§

    fn code_block<'a>() -> <Self as Catalog>::Class<'a>

    The styling class of a Markdown code block.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    fn default_input<'a>() -> <Self as Catalog>::Class<'a>

    The default class for the text input of the ComboBox.
    Source§

    fn default_menu<'a>() -> <Self as Catalog>::Class<'a>

    The default class for the menu of the ComboBox.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> StyleFn<'a, Self>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &StyleFn<'_, Self>) -> Style

    The Style of a class with the given status.
    Source§

    fn default_scrollable<'a>() -> <Self as Catalog>::Class<'a>

    The default class for the scrollable of the Menu.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

    The item class of this Catalog.
    Source§

    fn default<'a>() -> StyleFn<'a, Self>

    The default class produced by this Catalog.
    Source§

    fn style(&self, class: &StyleFn<'_, Self>) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> StyleFn<'a, Self>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &StyleFn<'_, Self>, status: Status) -> Style

    The Style of a class with the given status.
    Source§

    fn default_menu<'a>() -> <Self as Catalog>::Class<'a>

    The default class for the menu of the PickList.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>) -> Style

    The Style of a class with the given status.
    Source§

    impl Catalog for Theme

    Source§

    type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

    The item class of the Catalog.
    Source§

    fn default<'a>() -> Self::Class<'a>

    The default class produced by the Catalog.
    Source§

    fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

    The Style of a class with the given status.
    §

    impl Clone for Theme

    §

    fn clone(&self) -> Theme

    Returns a copy of the value. Read more
    1.0.0 · Source§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    §

    impl Debug for Theme

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl Default for Theme

    §

    fn default() -> Theme

    Returns the “default value” for a type. Read more
    §

    impl Display for Theme

    §

    fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

    Formats the value using the given formatter. Read more
    §

    impl PartialEq for Theme

    §

    fn eq(&self, other: &Theme) -> 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, and should not be overridden without very good reason.
    §

    impl StructuralPartialEq for Theme

    Auto Trait Implementations§

    §

    impl Freeze for Theme

    §

    impl RefUnwindSafe for Theme

    §

    impl Send for Theme

    §

    impl Sync for Theme

    §

    impl Unpin for Theme

    §

    impl UnwindSafe for Theme

    Blanket Implementations§

    Source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
    where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, diff --git a/iced_widget/fn.canvas.html b/iced_widget/fn.canvas.html index 23b52f2557..730cb24c2c 100644 --- a/iced_widget/fn.canvas.html +++ b/iced_widget/fn.canvas.html @@ -1,7 +1,7 @@ canvas in iced_widget - Rust
    iced_widget

    Function canvas

    Source
    pub fn canvas<P, Message, Theme, Renderer>(
         program: P,
     ) -> Canvas<P, Message, Theme, Renderer>
    where - Renderer: Renderer, + Renderer: Renderer, P: Program<Message, Theme, Renderer>,
    Available on crate feature canvas only.
    Expand description

    Creates a new Canvas.

    Canvases can be leveraged to draw interactive 2D graphics.

    §Example: Drawing a Simple Circle

    diff --git a/iced_widget/index.html b/iced_widget/index.html index df5046a63f..2753343acb 100644 --- a/iced_widget/index.html +++ b/iced_widget/index.html @@ -1,5 +1,5 @@ iced_widget - Rust

    Crate iced_widget

    Source
    Expand description

    Use the built-in widgets or create your own.

    -

    Re-exports§

    Modules§

    • Buttons allow your users to perform actions by pressing them.
    • canvascanvas
      Canvases can be leveraged to draw interactive 2D graphics.
    • Checkboxes can be used to let users make binary choices.
    • Combo boxes display a dropdown list of searchable and selectable options.
    • Containers let you align a widget inside their boundaries.
    • imageimage
      Images display raster graphics in different formats (PNG, JPG, etc.).
    • Keyed widgets can provide hints to ensure continuity.
    • markdownmarkdown
      Markdown widgets can parse and display Markdown.
    • Display interactive elements on top of other widgets.
    • Pane grids let your users split regions of your application and organize layout dynamically.
    • Pick lists display a dropdown list of selectable options.
    • Progress bars visualize the progression of an extended computer operation, such as a download, file transfer, or installation.
    • qr_codeqr_code
      QR codes display information in a type of two-dimensional matrix barcode.
    • Radio buttons let users choose a single option from a bunch of options.
    • Rules divide space horizontally or vertically.
    • Scrollables let users navigate an endless amount of content with a scrollbar.
    • shaderwgpu
      A custom shader widget for wgpu applications.
    • Sliders let users set a value by moving an indicator.
    • svgsvg
      Svg widgets display vector graphics in your application.
    • Draw and interact with text.
    • Text editors display a multi-line text input for text editing.
    • Text inputs display fields that can be filled with text.
    • Use the built-in theme and styles.
    • Togglers let users make binary choices by toggling a switch.
    • Tooltips display a hint of information over some element when hovered.
    • Sliders let users set a value by moving an indicator.

    Macros§

    • Creates a [Column] with the given children.
    • Creates a keyed Column with the given children.
    • Creates some Rich text with the given spans.
    • Creates a [Row] with the given children.
    • Creates a Stack with the given children.
    • Creates a new Text widget with the provided content.

    Structs§

    • A runtime action that can be performed by some widgets.
    • Lazylazy
      A widget that only rebuilds its contents when necessary.
    • A widget that is aware of its dimensions.

    Enums§

    Traits§

    • ComponentDeprecatedlazy
      A reusable, custom widget that uses The Elm Architecture.

    Functions§

    Re-exports§

    Modules§

    • Buttons allow your users to perform actions by pressing them.
    • canvascanvas
      Canvases can be leveraged to draw interactive 2D graphics.
    • Checkboxes can be used to let users make binary choices.
    • Combo boxes display a dropdown list of searchable and selectable options.
    • Containers let you align a widget inside their boundaries.
    • imageimage
      Images display raster graphics in different formats (PNG, JPG, etc.).
    • Keyed widgets can provide hints to ensure continuity.
    • markdownmarkdown
      Markdown widgets can parse and display Markdown.
    • Display interactive elements on top of other widgets.
    • Pane grids let your users split regions of your application and organize layout dynamically.
    • Pick lists display a dropdown list of selectable options.
    • Progress bars visualize the progression of an extended computer operation, such as a download, file transfer, or installation.
    • qr_codeqr_code
      QR codes display information in a type of two-dimensional matrix barcode.
    • Radio buttons let users choose a single option from a bunch of options.
    • Rules divide space horizontally or vertically.
    • Scrollables let users navigate an endless amount of content with a scrollbar.
    • shaderwgpu
      A custom shader widget for wgpu applications.
    • Sliders let users set a value by moving an indicator.
    • svgsvg
      Svg widgets display vector graphics in your application.
    • Draw and interact with text.
    • Text editors display a multi-line text input for text editing.
    • Text inputs display fields that can be filled with text.
    • Use the built-in theme and styles.
    • Togglers let users make binary choices by toggling a switch.
    • Tooltips display a hint of information over some element when hovered.
    • Sliders let users set a value by moving an indicator.

    Macros§

    • Creates a [Column] with the given children.
    • Creates a keyed Column with the given children.
    • Creates some Rich text with the given spans.
    • Creates a [Row] with the given children.
    • Creates a Stack with the given children.
    • Creates a new Text widget with the provided content.

    Structs§

    • A runtime action that can be performed by some widgets.
    • Lazylazy
      A widget that only rebuilds its contents when necessary.
    • A widget that is aware of its dimensions.

    Enums§

    Traits§

    • ComponentDeprecatedlazy
      A reusable, custom widget that uses The Elm Architecture.

    Functions§

    • Creates a new Button with the provided content.
    • canvascanvas
      Creates a new Canvas.
    • Creates a new Container that fills all the available space and centers its contents inside.
    • Creates a new Checkbox.
    • Creates a new [Column] with the given children.
    • Creates a new ComboBox.
    • componentDeprecatedlazy
      Turns an implementor of Component into an [Element] that can be embedded in any application.
    • Creates a new Container with the provided content.
    • Focuses the next focusable widget.
    • Focuses the previous focusable widget.
    • Creates a horizontal Rule with the given height.
    • Creates a new [Space] widget that fills the available horizontal space.
    • Displays a widget on top of another one, only when the base widget is hovered.
    • icedsvg
      Creates an [Element] that displays the iced logo with the given text_size.
    • imageimage
      Creates a new Image.
    • Creates a new keyed::Column from an iterator of elements.
    • lazylazy
      Creates a new Lazy widget with the given data Dependency and a diff --git a/iced_widget/overlay/menu/fn.default.html b/iced_widget/overlay/menu/fn.default.html index 9aee178ba0..cc77726dd4 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
      iced_widget::overlay::menu

      Function default

      Source
      pub fn default(theme: &Theme) -> Style
      Expand description

      The default style of the list of a Menu.

      +default in iced_widget::overlay::menu - Rust
      iced_widget::overlay::menu

      Function default

      Source
      pub fn default(theme: &Theme) -> Style
      Expand description

      The default style of the list of a Menu.

      \ No newline at end of file diff --git a/iced_widget/overlay/menu/index.html b/iced_widget/overlay/menu/index.html index 506efd853c..5f8225aff1 100644 --- a/iced_widget/overlay/menu/index.html +++ b/iced_widget/overlay/menu/index.html @@ -1,2 +1,2 @@ -iced_widget::overlay::menu - Rust
      iced_widget::overlay

      Module menu

      Source
      Expand description

      Build and show dropdown menus.

      +iced_widget::overlay::menu - Rust
      iced_widget::overlay

      Module menu

      Source
      Expand description

      Build and show dropdown menus.

      Structs§

      Traits§

      Functions§

      Type Aliases§

      \ 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 a81aab88db..2b8144985d 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
      iced_widget::overlay::menu

      Struct Style

      Source
      pub struct Style {
      +Style in iced_widget::overlay::menu - Rust
      iced_widget::overlay::menu

      Struct Style

      Source
      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 Clone for Style

      Source§

      fn clone(&self) -> Style

      Returns a copy of the value. Read more
      1.0.0 · Source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      Source§

      impl Debug for Style

      Source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      Source§

      impl PartialEq for Style

      Source§

      fn eq(&self, other: &Style) -> 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, -and should not be overridden without very good reason.
      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 S
      where +

      Trait Implementations§

      Source§

      impl Clone for Style

      Source§

      fn clone(&self) -> Style

      Returns a copy of the value. Read more
      1.0.0 · Source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      Source§

      impl Debug for Style

      Source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result

      Formats the value using the given formatter. Read more
      Source§

      impl PartialEq for Style

      Source§

      fn eq(&self, other: &Style) -> 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, +and should not be overridden without very good reason.
      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 S
      where 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 138c650a5a..c880210484 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
      iced_widget::overlay::menu

      Trait Catalog

      Source
      pub trait Catalog: Catalog {
      +Catalog in iced_widget::overlay::menu - Rust
      iced_widget::overlay::menu

      Trait Catalog

      Source
      pub trait Catalog: Catalog {
           type Class<'a>;
       
           // Required methods
      @@ -8,8 +8,8 @@
           // Provided method
           fn default_scrollable<'a>() -> <Self as Catalog>::Class<'a> { ... }
       }
      Expand description

      The theme catalog of a Menu.

      -

      Required Associated Types§

      Source

      type Class<'a>

      The item class of the Catalog.

      -

      Required Methods§

      Source

      fn default<'a>() -> <Self as Catalog>::Class<'a>

      The default class produced by the Catalog.

      -
      Source

      fn style(&self, class: &<Self as Catalog>::Class<'_>) -> Style

      The Style of a class with the given status.

      -

      Provided Methods§

      Source

      fn default_scrollable<'a>() -> <Self as Catalog>::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§

      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      \ No newline at end of file +

      Required Associated Types§

      Source

      type Class<'a>

      The item class of the Catalog.

      +

      Required Methods§

      Source

      fn default<'a>() -> <Self as Catalog>::Class<'a>

      The default class produced by the Catalog.

      +
      Source

      fn style(&self, class: &<Self as Catalog>::Class<'_>) -> Style

      The Style of a class with the given status.

      +

      Provided Methods§

      Source

      fn default_scrollable<'a>() -> <Self as Catalog>::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§

      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      \ 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 4c37b7583d..fb0e23bf65 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
      iced_widget::overlay::menu

      Type Alias StyleFn

      Source
      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
      iced_widget::overlay::menu

      Type Alias StyleFn

      Source
      pub type StyleFn<'a, Theme> = Box<dyn Fn(&Theme) -> Style + 'a>;
      Expand description

      A styling function for a Menu.

      Aliased Type§

      struct StyleFn<'a, Theme>(/* private fields */);
      \ No newline at end of file diff --git a/iced_widget/shader/struct.Viewport.html b/iced_widget/shader/struct.Viewport.html index 46f6bd0f62..2d9864408e 100644 --- a/iced_widget/shader/struct.Viewport.html +++ b/iced_widget/shader/struct.Viewport.html @@ -1,13 +1,13 @@ -Viewport in iced_widget::shader - Rust
      iced_widget::shader

      Struct Viewport

      Source
      pub struct Viewport { /* private fields */ }
      Available on crate feature wgpu only.
      Expand description

      A viewing region for displaying computer graphics.

      -

      Implementations§

      Source§

      impl Viewport

      Source

      pub fn with_physical_size(size: Size<u32>, scale_factor: f64) -> Viewport

      Creates a new Viewport with the given physical dimensions and scale +Viewport in iced_widget::shader - Rust

      iced_widget::shader

      Struct Viewport

      pub struct Viewport { /* private fields */ }
      Available on crate feature wgpu only.
      Expand description

      A viewing region for displaying computer graphics.

      +

      Implementations§

      §

      impl Viewport

      pub fn with_physical_size(size: Size<u32>, scale_factor: f64) -> Viewport

      Creates a new Viewport with the given physical dimensions and scale factor.

      -
      Source

      pub fn physical_size(&self) -> Size<u32>

      Returns the physical size of the Viewport.

      -
      Source

      pub fn physical_width(&self) -> u32

      Returns the physical width of the Viewport.

      -
      Source

      pub fn physical_height(&self) -> u32

      Returns the physical height of the Viewport.

      -
      Source

      pub fn logical_size(&self) -> Size

      Returns the logical size of the Viewport.

      -
      Source

      pub fn scale_factor(&self) -> f64

      Returns the scale factor of the Viewport.

      -
      Source

      pub fn projection(&self) -> Transformation

      Returns the projection transformation of the Viewport.

      -

      Trait Implementations§

      Source§

      impl Clone for Viewport

      Source§

      fn clone(&self) -> Viewport

      Returns a copy of the value. Read more
      1.0.0 · Source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      Source§

      impl Debug for Viewport

      Source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

      Formats the value using the given formatter. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      Source§

      impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
      where +

      pub fn physical_size(&self) -> Size<u32>

      Returns the physical size of the Viewport.

      +

      pub fn physical_width(&self) -> u32

      Returns the physical width of the Viewport.

      +

      pub fn physical_height(&self) -> u32

      Returns the physical height of the Viewport.

      +

      pub fn logical_size(&self) -> Size

      Returns the logical size of the Viewport.

      +

      pub fn scale_factor(&self) -> f64

      Returns the scale factor of the Viewport.

      +

      pub fn projection(&self) -> Transformation

      Returns the projection transformation of the Viewport.

      +

      Trait Implementations§

      §

      impl Clone for Viewport

      §

      fn clone(&self) -> Viewport

      Returns a copy of the value. Read more
      1.0.0 · Source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      §

      impl Debug for Viewport

      §

      fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

      Formats the value using the given formatter. Read more

      Auto Trait Implementations§

      Blanket Implementations§

      Source§

      impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
      where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced_widget/struct.Lazy.html b/iced_widget/struct.Lazy.html index ff4156b17d..07c2031f95 100644 --- a/iced_widget/struct.Lazy.html +++ b/iced_widget/struct.Lazy.html @@ -6,12 +6,12 @@ view: impl Fn(&Dependency) -> View + 'a, ) -> Self

      Creates a new Lazy widget with the given data Dependency and a closure that can turn this data into a widget tree.

      -

      Trait Implementations§

      Source§

      impl<'a, Message, Theme, Renderer, Dependency, View> From<Lazy<'a, Message, Theme, Renderer, Dependency, View>> for Element<'a, Message, Theme, Renderer>
      where +

      Trait Implementations§

      Source§

      impl<'a, Message, Theme, Renderer, Dependency, View> From<Lazy<'a, Message, Theme, Renderer, Dependency, View>> for Element<'a, Message, Theme, Renderer>
      where View: Into<Element<'static, Message, Theme, Renderer>> + 'static, Renderer: Renderer + 'static, Message: 'static, Theme: 'static, - Dependency: Hash + 'a,

      Source§

      fn from(lazy: Lazy<'a, Message, Theme, Renderer, Dependency, View>) -> Self

      Converts to this type from the input type.
      Source§

      impl<'a, Message, Theme, Renderer, Dependency, View> Widget<Message, Theme, Renderer> for Lazy<'a, Message, Theme, Renderer, Dependency, View>
      where + Dependency: Hash + 'a,

      Source§

      fn from(lazy: Lazy<'a, Message, Theme, Renderer, Dependency, View>) -> Self

      Converts to this type from the input type.
      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, Dependency: Hash + 'a, Message: 'static, diff --git a/iced_widget/theme/enum.Theme.html b/iced_widget/theme/enum.Theme.html index ba66a712d8..43f84b855a 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.

      pub fn palette(&self) -> Palette

      Returns the Palette of the Theme.

      pub fn extended_palette(&self) -> &Extended

      Returns the palette::Extended of the Theme.

      -

      Trait Implementations§

      §

      impl Catalog for Theme

      §

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      The item class of this Catalog.
      §

      fn default<'a>() -> <Theme as Catalog>::Class<'a>

      The default class produced by this Catalog.
      §

      fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Available on crate feature svg only.
      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Available on crate feature qr_code only.
      Source§

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Available on crate feature markdown only.
      Source§

      fn code_block<'a>() -> <Self as Catalog>::Class<'a>

      The styling class of a Markdown code block.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      fn default_input<'a>() -> <Self as Catalog>::Class<'a>

      The default class for the text input of the ComboBox.
      Source§

      fn default_menu<'a>() -> <Self as Catalog>::Class<'a>

      The default class for the menu of the ComboBox.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> StyleFn<'a, Self>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &StyleFn<'_, Self>) -> Style

      The Style of a class with the given status.
      Source§

      fn default_scrollable<'a>() -> <Self as Catalog>::Class<'a>

      The default class for the scrollable of the Menu.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      The item class of this Catalog.
      Source§

      fn default<'a>() -> StyleFn<'a, Self>

      The default class produced by this Catalog.
      Source§

      fn style(&self, class: &StyleFn<'_, Self>) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> StyleFn<'a, Self>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &StyleFn<'_, Self>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      fn default_menu<'a>() -> <Self as Catalog>::Class<'a>

      The default class for the menu of the PickList.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      §

      impl Clone for Theme

      §

      fn clone(&self) -> Theme

      Returns a copy of the value. Read more
      1.0.0 · Source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      §

      impl Debug for Theme

      §

      fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

      Formats the value using the given formatter. Read more
      §

      impl Default for Theme

      §

      fn default() -> Theme

      Returns the “default value” for a type. Read more
      §

      impl Display for Theme

      §

      fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

      Formats the value using the given formatter. Read more
      §

      impl PartialEq for Theme

      §

      fn eq(&self, other: &Theme) -> 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, +

      Trait Implementations§

      §

      impl Catalog for Theme

      §

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      The item class of this Catalog.
      §

      fn default<'a>() -> <Theme as Catalog>::Class<'a>

      The default class produced by this Catalog.
      §

      fn style(&self, class: &<Theme as Catalog>::Class<'_>) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Available on crate feature svg only.
      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Available on crate feature qr_code only.
      Source§

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Available on crate feature markdown only.
      Source§

      fn code_block<'a>() -> <Self as Catalog>::Class<'a>

      The styling class of a Markdown code block.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      fn default_input<'a>() -> <Self as Catalog>::Class<'a>

      The default class for the text input of the ComboBox.
      Source§

      fn default_menu<'a>() -> <Self as Catalog>::Class<'a>

      The default class for the menu of the ComboBox.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> StyleFn<'a, Self>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &StyleFn<'_, Self>) -> Style

      The Style of a class with the given status.
      Source§

      fn default_scrollable<'a>() -> <Self as Catalog>::Class<'a>

      The default class for the scrollable of the Menu.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      The item class of this Catalog.
      Source§

      fn default<'a>() -> StyleFn<'a, Self>

      The default class produced by this Catalog.
      Source§

      fn style(&self, class: &StyleFn<'_, Self>) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> StyleFn<'a, Self>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &StyleFn<'_, Self>, status: Status) -> Style

      The Style of a class with the given status.
      Source§

      fn default_menu<'a>() -> <Self as Catalog>::Class<'a>

      The default class for the menu of the PickList.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>) -> Style

      The Style of a class with the given status.
      Source§

      impl Catalog for Theme

      Source§

      type Class<'a> = Box<dyn Fn(&Theme, Status) -> Style + 'a>

      The item class of the Catalog.
      Source§

      fn default<'a>() -> Self::Class<'a>

      The default class produced by the Catalog.
      Source§

      fn style(&self, class: &Self::Class<'_>, status: Status) -> Style

      The Style of a class with the given status.
      §

      impl Clone for Theme

      §

      fn clone(&self) -> Theme

      Returns a copy of the value. Read more
      1.0.0 · Source§

      fn clone_from(&mut self, source: &Self)

      Performs copy-assignment from source. Read more
      §

      impl Debug for Theme

      §

      fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

      Formats the value using the given formatter. Read more
      §

      impl Default for Theme

      §

      fn default() -> Theme

      Returns the “default value” for a type. Read more
      §

      impl Display for Theme

      §

      fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

      Formats the value using the given formatter. Read more
      §

      impl PartialEq for Theme

      §

      fn eq(&self, other: &Theme) -> 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, and should not be overridden without very good reason.
      §

      impl StructuralPartialEq for Theme

      Auto Trait Implementations§

      §

      impl Freeze for Theme

      §

      impl RefUnwindSafe for Theme

      §

      impl Send for Theme

      §

      impl Sync for Theme

      §

      impl Unpin for Theme

      §

      impl UnwindSafe for Theme

      Blanket Implementations§

      Source§

      impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for S
      where T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, diff --git a/iced_widget/tooltip/index.html b/iced_widget/tooltip/index.html index 933034aae6..3a759ab85f 100644 --- a/iced_widget/tooltip/index.html +++ b/iced_widget/tooltip/index.html @@ -1,4 +1,4 @@ -iced_widget::tooltip - Rust
      iced_widget

      Module tooltip

      Source
      Expand description

      Tooltips display a hint of information over some element when hovered.

      +iced_widget::tooltip - Rust
      iced_widget

      Module tooltip

      Source
      Expand description

      Tooltips display a hint of information over some element when hovered.

      §Example

      use iced::widget::{container, tooltip};
       
      diff --git a/src/iced_widget/lazy.rs.html b/src/iced_widget/lazy.rs.html
      index 09b047c2dc..fffa9cc7ac 100644
      --- a/src/iced_widget/lazy.rs.html
      +++ b/src/iced_widget/lazy.rs.html
      @@ -427,9 +427,7 @@
       426
       427
       428
      -429
      -430
      -431
      #![allow(clippy::await_holding_refcell_ref, clippy::type_complexity)]
      +429
      #![allow(clippy::await_holding_refcell_ref, clippy::type_complexity)]
       pub(crate) mod helpers;
       
       pub mod component;
      @@ -752,9 +750,7 @@
           Option<Inner<'a, Message, Theme, Renderer>>,
       );
       
      -impl<Message, Theme, Renderer> Drop
      -    for Overlay<'_, Message, Theme, Renderer>
      -{
      +impl<Message, Theme, Renderer> Drop for Overlay<'_, Message, Theme, Renderer> {
           fn drop(&mut self) {
               let heads = self.0.take().unwrap().into_heads();
               (*heads.cell.borrow_mut()) = Some(heads.element);
      diff --git a/src/iced_widget/lazy/responsive.rs.html b/src/iced_widget/lazy/responsive.rs.html
      index d0f2adcd0d..cff2f65486 100644
      --- a/src/iced_widget/lazy/responsive.rs.html
      +++ b/src/iced_widget/lazy/responsive.rs.html
      @@ -461,10 +461,7 @@
       460
       461
       462
      -463
      -464
      -465
      -466
      use crate::core::layout::{self, Layout};
      +463
      use crate::core::layout::{self, Layout};
       use crate::core::mouse;
       use crate::core::overlay;
       use crate::core::renderer;
      @@ -824,9 +821,7 @@
           ),
       }
       
      -impl<Message, Theme, Renderer>
      -    Overlay<'_, '_, Message, Theme, Renderer>
      -{
      +impl<Message, Theme, Renderer> Overlay<'_, '_, Message, Theme, Renderer> {
           fn with_overlay_maybe<T>(
               &self,
               f: impl FnOnce(&mut Nested<'_, Message, Theme, Renderer>) -> T,
      @@ -846,8 +841,7 @@
           }
       }
       
      -impl<Message, Theme, Renderer>
      -    overlay::Overlay<Message, Theme, Renderer>
      +impl<Message, Theme, Renderer> overlay::Overlay<Message, Theme, Renderer>
           for Overlay<'_, '_, Message, Theme, Renderer>
       where
           Renderer: core::Renderer,
      diff --git a/src/iced_widget/overlay/menu.rs.html b/src/iced_widget/overlay/menu.rs.html
      index 8ca783c3b2..9f6564324b 100644
      --- a/src/iced_widget/overlay/menu.rs.html
      +++ b/src/iced_widget/overlay/menu.rs.html
      @@ -647,8 +647,7 @@
       646
       647
       648
      -649
      -650
      //! Build and show dropdown menus.
      +649
      //! Build and show dropdown menus.
       use crate::core::alignment;
       use crate::core::border::{self, Border};
       use crate::core::layout::{self, Layout};
      @@ -877,8 +876,7 @@
           }
       }
       
      -impl<Message, Theme, Renderer>
      -    crate::core::Overlay<Message, Theme, Renderer>
      +impl<Message, Theme, Renderer> crate::core::Overlay<Message, Theme, Renderer>
           for Overlay<'_, '_, Message, Theme, Renderer>
       where
           Theme: Catalog,
      diff --git a/src/iced_widget/tooltip.rs.html b/src/iced_widget/tooltip.rs.html
      index 0dfd9918d3..279281b3b4 100644
      --- a/src/iced_widget/tooltip.rs.html
      +++ b/src/iced_widget/tooltip.rs.html
      @@ -509,8 +509,7 @@
       508
       509
       510
      -511
      -512

      //! Tooltips display a hint of information over some element when hovered.
      +511
      //! Tooltips display a hint of information over some element when hovered.
       //!
       //! # Example
       //! ```no_run
      @@ -881,8 +880,7 @@
           class: &'b Theme::Class<'a>,
       }
       
      -impl<Message, Theme, Renderer>
      -    overlay::Overlay<Message, Theme, Renderer>
      +impl<Message, Theme, Renderer> overlay::Overlay<Message, Theme, Renderer>
           for Overlay<'_, '_, Message, Theme, Renderer>
       where
           Theme: container::Catalog,
      diff --git a/trait.impl/core/convert/trait.From.js b/trait.impl/core/convert/trait.From.js
      index c471bdedce..9112eacef1 100644
      --- a/trait.impl/core/convert/trait.From.js
      +++ b/trait.impl/core/convert/trait.From.js
      @@ -1,9 +1,9 @@
       (function() {
      -    var implementors = Object.fromEntries([["iced",[["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Settings> for Settings"],["impl From<ImageError> for Error"]]],["iced_core",[["impl From<&Handle> for Handle"],["impl From<&Handle> for Image"],["impl From<&Handle> for Svg"],["impl From<Alignment> for Horizontal"],["impl From<Alignment> for Vertical"],["impl From<Horizontal> for Alignment"],["impl From<Vertical> for Alignment"],["impl From<Gradient> for Background"],["impl From<f32> for Length"],["impl From<f32> for Rotation"],["impl From<f32> for LineHeight"],["impl From<f32> for Radius"],["impl From<f32> for Padding"],["impl From<f32> for Degrees"],["impl From<f32> for Pixels"],["impl From<f32> for Radians"],["impl From<i32> for Radius"],["impl From<u16> for Length"],["impl From<u16> for Radius"],["impl From<u16> for Padding"],["impl From<u16> for Pixels"],["impl From<u8> for Radius"],["impl From<u8> for Degrees"],["impl From<u8> for Radians"],["impl From<Alpha<Rgb, f32>> for Color"],["impl From<Rgb> for Color"],["impl From<Radius> for [f32; 4]"],["impl From<Linear> for Background"],["impl From<Linear> for Gradient"],["impl From<Padding> for Size"],["impl From<Color> for Background"],["impl From<Color> for Srgb"],["impl From<Color> for Srgba"],["impl From<Degrees> for f32"],["impl From<Degrees> for f64"],["impl From<Degrees> for Radians"],["impl From<Pixels> for Length"],["impl From<Pixels> for LineHeight"],["impl From<Pixels> for f32"],["impl From<Radians> for Rotation"],["impl From<Radians> for f32"],["impl From<Radians> for f64"],["impl From<Rectangle<u32>> for Rectangle<f32>"],["impl From<Transformation> for Mat4"],["impl From<Transformation> for [f32; 16]"],["impl From<[f32; 2]> for Padding"],["impl From<[f32; 3]> for Color"],["impl From<[f32; 4]> for Color"],["impl From<[u16; 2]> for Padding"],["impl<'a, Link, Font> From<&'a str> for Span<'a, Link, Font>"],["impl<'a, Message, Theme, Renderer> From<&'a str> for Element<'a, Message, Theme, Renderer>
      where\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<Group<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: 'a,\n Renderer: 'a + Renderer,
      "],["impl<'a, Message, Theme, Renderer> From<Text<'a, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Theme, Renderer> From<&'a str> for Text<'a, Theme, Renderer>
      where\n Theme: Catalog + 'a,\n Renderer: Renderer,
      "],["impl<T> From<[T; 2]> for Point<T>
      where\n T: Num,
      "],["impl<T> From<[T; 2]> for Size<T>"],["impl<T> From<[T; 2]> for Vector<T>"],["impl<T> From<(T, T)> for Point<T>
      where\n T: Num,
      "],["impl<T> From<(T, T)> for Size<T>"],["impl<T> From<Point<T>> for [T; 2]"],["impl<T> From<Size<T>> for [T; 2]"],["impl<T> From<Size<T>> for Vector<T>"],["impl<T> From<Vector<T>> for [T; 2]
      where\n T: Copy,
      "],["impl<T> From<Vector<T>> for Size<T>"],["impl<T> From<T> for Handle
      where\n T: Into<PathBuf>,
      "],["impl<T> From<T> for Handle
      where\n T: Into<PathBuf>,
      "]]],["iced_graphics",[["impl From<&str> for Text"],["impl From<Gradient> for Style"],["impl From<Gradient> for Fill"],["impl From<String> for Text"],["impl From<Arc> for Elliptical"],["impl From<Linear> for Gradient"],["impl From<Linear> for Fill"],["impl From<Color> for Style"],["impl From<Color> for Fill"]]],["iced_runtime",[["impl From<Screenshot> for Bytes"],["impl<T> From<()> for Task<T>"]]],["iced_tiny_skia",[["impl From<Settings> for Settings"]]],["iced_wgpu",[["impl From<Error> for Error"],["impl From<Settings> for Settings"],["impl From<CreateSurfaceError> for Error"]]],["iced_widget",[["impl From<&'static str> for Id"],["impl From<ErrorCorrection> for EcLevel"],["impl From<Version> for Version"],["impl From<String> for Id"],["impl From<Id> for Id"],["impl From<Id> for Id"],["impl From<Id> for Id"],["impl From<Color> for Style"],["impl From<Gradient> for Style"],["impl From<Linear> for Style"],["impl From<QrError> for Error"],["impl<'a, Highlighter, Message, Theme, Renderer> From<TextEditor<'a, Highlighter, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Highlighter: Highlighter,\n Message: 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer,
      "],["impl<'a, Key, Message, Theme, Renderer> From<Column<'a, Key, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Key: Copy + PartialEq + 'static,\n Message: 'a,\n Theme: 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Link, Theme, Renderer> From<Rich<'a, Link, Theme, Renderer>> for Element<'a, Link, Theme, Renderer>
      where\n Link: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme> From<QRCode<'a, Theme>> for Element<'a, Message, Theme, Renderer>
      where\n Theme: Catalog + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<Button<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<Checkbox<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: 'a + Catalog,\n Renderer: 'a + Renderer,
      "],["impl<'a, Message, Theme, Renderer> From<Container<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<PaneGrid<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<ProgressBar<'a, Theme>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: 'a + Catalog,\n Renderer: 'a + Renderer,
      "],["impl<'a, Message, Theme, Renderer> From<Radio<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a + Clone,\n Theme: 'a + Catalog,\n Renderer: 'a + Renderer,
      "],["impl<'a, Message, Theme, Renderer> From<Rule<'a, Theme>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: 'a + Catalog,\n Renderer: 'a + Renderer,
      "],["impl<'a, Message, Theme, Renderer> From<Scrollable<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: 'a + Catalog,\n Renderer: 'a + Renderer,
      "],["impl<'a, Message, Theme, Renderer> From<Responsive<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<Svg<'a, Theme>> for Element<'a, Message, Theme, Renderer>
      where\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<TextInput<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<Toggler<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<Tooltip<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<Element<'a, Message, Theme, Renderer>> for Controls<'a, Message, Theme, Renderer>
      where\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<'a, Message, Theme, Renderer, Dependency, View> From<Lazy<'a, Message, Theme, Renderer, Dependency, View>> for Element<'a, Message, Theme, Renderer>
      where\n View: Into<Element<'static, Message, Theme, Renderer>> + 'static,\n Renderer: Renderer + 'static,\n Message: 'static,\n Theme: 'static,\n Dependency: Hash + 'a,
      "],["impl<'a, Message, Theme, Renderer, Handle> From<Image<Handle>> for Element<'a, Message, Theme, Renderer>
      where\n Renderer: Renderer<Handle = Handle>,\n Handle: Clone + 'a,
      "],["impl<'a, Message, Theme, Renderer, Handle> From<Viewer<Handle>> for Element<'a, Message, Theme, Renderer>
      where\n Renderer: 'a + Renderer<Handle = Handle>,\n Message: 'a,\n Handle: Clone + 'a,
      "],["impl<'a, Message, Theme, Renderer, P> From<Shader<Message, P>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Renderer: Renderer,\n P: Program<Message> + 'a,
      "],["impl<'a, P, Message, Theme, Renderer> From<Canvas<P, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: 'a,\n Renderer: 'a + Renderer,\n P: 'a + Program<Message, Theme, Renderer>,
      "],["impl<'a, T, L, V, Message, Theme, Renderer> From<PickList<'a, T, L, V, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n T: Clone + ToString + PartialEq + 'a,\n L: Borrow<[T]> + 'a,\n V: Borrow<T> + 'a,\n Message: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, T, Message, Theme, Renderer> From<ComboBox<'a, T, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n T: Display + Clone + 'static,\n Message: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, T, Message, Theme, Renderer> From<Slider<'a, T, Message, Theme>> for Element<'a, Message, Theme, Renderer>
      where\n T: Copy + Into<f64> + FromPrimitive + 'a,\n Message: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, T, Message, Theme, Renderer> From<VerticalSlider<'a, T, Message, Theme>> for Element<'a, Message, Theme, Renderer>
      where\n T: Copy + Into<f64> + FromPrimitive + 'a,\n Message: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, T, Message, Theme, Renderer> From<T> for Content<'a, Message, Theme, Renderer>
      where\n T: Into<Element<'a, Message, Theme, Renderer>>,\n Theme: Catalog + 'a,\n Renderer: Renderer,
      "],["impl<Theme> From<Style> for StyleFn<'_, Theme>"],["impl<Theme> From<Style> for StyleFn<'_, Theme>"]]],["iced_winit",[["impl From<Error> for Error"]]]]); + var implementors = Object.fromEntries([["iced",[["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Error> for Error"],["impl From<Settings> for Settings"],["impl From<ImageError> for Error"]]],["iced_core",[["impl From<&Handle> for Handle"],["impl From<&Handle> for Image"],["impl From<&Handle> for Svg"],["impl From<Alignment> for Horizontal"],["impl From<Alignment> for Vertical"],["impl From<Horizontal> for Alignment"],["impl From<Vertical> for Alignment"],["impl From<Gradient> for Background"],["impl From<f32> for Length"],["impl From<f32> for Rotation"],["impl From<f32> for LineHeight"],["impl From<f32> for Radius"],["impl From<f32> for Padding"],["impl From<f32> for Degrees"],["impl From<f32> for Pixels"],["impl From<f32> for Radians"],["impl From<i32> for Radius"],["impl From<u16> for Length"],["impl From<u16> for Radius"],["impl From<u16> for Padding"],["impl From<u16> for Pixels"],["impl From<u8> for Radius"],["impl From<u8> for Degrees"],["impl From<u8> for Radians"],["impl From<Alpha<Rgb, f32>> for Color"],["impl From<Rgb> for Color"],["impl From<Radius> for [f32; 4]"],["impl From<Linear> for Background"],["impl From<Linear> for Gradient"],["impl From<Padding> for Size"],["impl From<Color> for Background"],["impl From<Color> for Srgb"],["impl From<Color> for Srgba"],["impl From<Degrees> for f32"],["impl From<Degrees> for f64"],["impl From<Degrees> for Radians"],["impl From<Pixels> for Length"],["impl From<Pixels> for LineHeight"],["impl From<Pixels> for f32"],["impl From<Radians> for Rotation"],["impl From<Radians> for f32"],["impl From<Radians> for f64"],["impl From<Rectangle<u32>> for Rectangle<f32>"],["impl From<Transformation> for Mat4"],["impl From<Transformation> for [f32; 16]"],["impl From<[f32; 2]> for Padding"],["impl From<[f32; 3]> for Color"],["impl From<[f32; 4]> for Color"],["impl From<[u16; 2]> for Padding"],["impl<'a, Link, Font> From<&'a str> for Span<'a, Link, Font>"],["impl<'a, Message, Theme, Renderer> From<&'a str> for Element<'a, Message, Theme, Renderer>
      where\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<Group<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: 'a,\n Renderer: 'a + Renderer,
      "],["impl<'a, Message, Theme, Renderer> From<Text<'a, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Theme, Renderer> From<&'a str> for Text<'a, Theme, Renderer>
      where\n Theme: Catalog + 'a,\n Renderer: Renderer,
      "],["impl<T> From<[T; 2]> for Point<T>
      where\n T: Num,
      "],["impl<T> From<[T; 2]> for Size<T>"],["impl<T> From<[T; 2]> for Vector<T>"],["impl<T> From<(T, T)> for Point<T>
      where\n T: Num,
      "],["impl<T> From<(T, T)> for Size<T>"],["impl<T> From<Point<T>> for [T; 2]"],["impl<T> From<Size<T>> for [T; 2]"],["impl<T> From<Size<T>> for Vector<T>"],["impl<T> From<Vector<T>> for [T; 2]
      where\n T: Copy,
      "],["impl<T> From<Vector<T>> for Size<T>"],["impl<T> From<T> for Handle
      where\n T: Into<PathBuf>,
      "],["impl<T> From<T> for Handle
      where\n T: Into<PathBuf>,
      "]]],["iced_graphics",[["impl From<&str> for Text"],["impl From<Gradient> for Style"],["impl From<Gradient> for Fill"],["impl From<String> for Text"],["impl From<Arc> for Elliptical"],["impl From<Linear> for Gradient"],["impl From<Linear> for Fill"],["impl From<Color> for Style"],["impl From<Color> for Fill"]]],["iced_runtime",[["impl From<Screenshot> for Bytes"],["impl<T> From<()> for Task<T>"]]],["iced_tiny_skia",[["impl From<Settings> for Settings"]]],["iced_wgpu",[["impl From<Error> for Error"],["impl From<CreateSurfaceError> for Error"],["impl From<Settings> for Settings"]]],["iced_widget",[["impl From<&'static str> for Id"],["impl From<ErrorCorrection> for EcLevel"],["impl From<Version> for Version"],["impl From<String> for Id"],["impl From<Id> for Id"],["impl From<Id> for Id"],["impl From<Id> for Id"],["impl From<Color> for Style"],["impl From<Gradient> for Style"],["impl From<Linear> for Style"],["impl From<QrError> for Error"],["impl<'a, Highlighter, Message, Theme, Renderer> From<TextEditor<'a, Highlighter, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Highlighter: Highlighter,\n Message: 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer,
      "],["impl<'a, Key, Message, Theme, Renderer> From<Column<'a, Key, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Key: Copy + PartialEq + 'static,\n Message: 'a,\n Theme: 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Link, Theme, Renderer> From<Rich<'a, Link, Theme, Renderer>> for Element<'a, Link, Theme, Renderer>
      where\n Link: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme> From<QRCode<'a, Theme>> for Element<'a, Message, Theme, Renderer>
      where\n Theme: Catalog + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<Button<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<Checkbox<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: 'a + Catalog,\n Renderer: 'a + Renderer,
      "],["impl<'a, Message, Theme, Renderer> From<Container<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<PaneGrid<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<ProgressBar<'a, Theme>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: 'a + Catalog,\n Renderer: 'a + Renderer,
      "],["impl<'a, Message, Theme, Renderer> From<Radio<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a + Clone,\n Theme: 'a + Catalog,\n Renderer: 'a + Renderer,
      "],["impl<'a, Message, Theme, Renderer> From<Rule<'a, Theme>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: 'a + Catalog,\n Renderer: 'a + Renderer,
      "],["impl<'a, Message, Theme, Renderer> From<Scrollable<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: 'a + Catalog,\n Renderer: 'a + Renderer,
      "],["impl<'a, Message, Theme, Renderer> From<Responsive<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<Svg<'a, Theme>> for Element<'a, Message, Theme, Renderer>
      where\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<TextInput<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<Toggler<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<Tooltip<'a, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, Message, Theme, Renderer> From<Element<'a, Message, Theme, Renderer>> for Controls<'a, Message, Theme, Renderer>
      where\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<'a, Message, Theme, Renderer, Dependency, View> From<Lazy<'a, Message, Theme, Renderer, Dependency, View>> for Element<'a, Message, Theme, Renderer>
      where\n View: Into<Element<'static, Message, Theme, Renderer>> + 'static,\n Renderer: Renderer + 'static,\n Message: 'static,\n Theme: 'static,\n Dependency: Hash + 'a,
      "],["impl<'a, Message, Theme, Renderer, Handle> From<Image<Handle>> for Element<'a, Message, Theme, Renderer>
      where\n Renderer: Renderer<Handle = Handle>,\n Handle: Clone + 'a,
      "],["impl<'a, Message, Theme, Renderer, Handle> From<Viewer<Handle>> for Element<'a, Message, Theme, Renderer>
      where\n Renderer: 'a + Renderer<Handle = Handle>,\n Message: 'a,\n Handle: Clone + 'a,
      "],["impl<'a, Message, Theme, Renderer, P> From<Shader<Message, P>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Renderer: Renderer,\n P: Program<Message> + 'a,
      "],["impl<'a, P, Message, Theme, Renderer> From<Canvas<P, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n Message: 'a,\n Theme: 'a,\n Renderer: 'a + Renderer,\n P: 'a + Program<Message, Theme, Renderer>,
      "],["impl<'a, T, L, V, Message, Theme, Renderer> From<PickList<'a, T, L, V, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n T: Clone + ToString + PartialEq + 'a,\n L: Borrow<[T]> + 'a,\n V: Borrow<T> + 'a,\n Message: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, T, Message, Theme, Renderer> From<ComboBox<'a, T, Message, Theme, Renderer>> for Element<'a, Message, Theme, Renderer>
      where\n T: Display + Clone + 'static,\n Message: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, T, Message, Theme, Renderer> From<Slider<'a, T, Message, Theme>> for Element<'a, Message, Theme, Renderer>
      where\n T: Copy + Into<f64> + FromPrimitive + 'a,\n Message: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, T, Message, Theme, Renderer> From<VerticalSlider<'a, T, Message, Theme>> for Element<'a, Message, Theme, Renderer>
      where\n T: Copy + Into<f64> + FromPrimitive + 'a,\n Message: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<'a, T, Message, Theme, Renderer> From<T> for Content<'a, Message, Theme, Renderer>
      where\n T: Into<Element<'a, Message, Theme, Renderer>>,\n Theme: Catalog + 'a,\n Renderer: Renderer,
      "],["impl<Theme> From<Style> for StyleFn<'_, Theme>"],["impl<Theme> From<Style> for StyleFn<'_, Theme>"]]],["iced_winit",[["impl From<Error> for Error"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[1843,28436,3545,727,306,1151,26005,276]} \ No newline at end of file +//{"start":57,"fragment_lengths":[1843,28436,3545,727,306,913,25880,276]} \ No newline at end of file diff --git a/trait.impl/core/fmt/trait.Debug.js b/trait.impl/core/fmt/trait.Debug.js index feb7652188..2c09b2a36f 100644 --- a/trait.impl/core/fmt/trait.Debug.js +++ b/trait.impl/core/fmt/trait.Debug.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iced",[["impl Debug for Error"],["impl Debug for Error"],["impl Debug for Settings"],["impl<P: Debug + Program> Debug for Application<P>"],["impl<P: Debug + Program> Debug for Daemon<P>"]]],["iced_core",[["impl Debug for Alignment"],["impl Debug for Horizontal"],["impl Debug for Vertical"],["impl Debug for Kind"],["impl Debug for Background"],["impl Debug for ContentFit"],["impl Debug for Length"],["impl Debug for Rotation"],["impl Debug for Event"],["impl Debug for Status"],["impl Debug for Family"],["impl Debug for Stretch"],["impl Debug for Style"],["impl Debug for Weight"],["impl Debug for Gradient"],["impl Debug for FilterMethod"],["impl Debug for Handle"],["impl Debug for Event"],["impl Debug for Location"],["impl Debug for Code"],["impl Debug for Named"],["impl Debug for NativeCode"],["impl Debug for Physical"],["impl Debug for Axis"],["impl Debug for Kind"],["impl Debug for Button"],["impl Debug for Cursor"],["impl Debug for Event"],["impl Debug for Interaction"],["impl Debug for ScrollDelta"],["impl Debug for Data"],["impl Debug for Action"],["impl Debug for Cursor"],["impl Debug for Direction"],["impl Debug for Edit"],["impl Debug for Motion"],["impl Debug for Difference"],["impl Debug for Hit"],["impl Debug for LineHeight"],["impl Debug for Shaping"],["impl Debug for Wrapping"],["impl Debug for Theme"],["impl Debug for Event"],["impl Debug for State"],["impl Debug for Event"],["impl Debug for Level"],["impl Debug for Mode"],["impl Debug for Position"],["impl Debug for RedrawRequest"],["impl Debug for UserAttention"],["impl Debug for Error"],["impl Debug for Border"],["impl Debug for Radius"],["impl Debug for Null"],["impl Debug for Font"],["impl Debug for ColorStop"],["impl Debug for Linear"],["impl Debug for Id"],["impl Debug for Modifiers"],["impl Debug for Limits"],["impl Debug for Node"],["impl Debug for Click"],["impl Debug for Padding"],["impl Debug for Quad"],["impl Debug for Style"],["impl Debug for Color"],["impl Debug for Degrees"],["impl Debug for Pixels"],["impl Debug for Radians"],["impl Debug for Shadow"],["impl Debug for Transformation"],["impl Debug for Handle"],["impl Debug for PlainText"],["impl Debug for Highlight"],["impl Debug for Background"],["impl Debug for Danger"],["impl Debug for Extended"],["impl Debug for Pair"],["impl Debug for Palette"],["impl Debug for Primary"],["impl Debug for Secondary"],["impl Debug for Success"],["impl Debug for Custom"],["impl Debug for Finger"],["impl Debug for Count"],["impl Debug for AbsoluteOffset"],["impl Debug for RelativeOffset"],["impl Debug for Id"],["impl Debug for Style"],["impl Debug for Tag"],["impl Debug for Tree"],["impl Debug for Icon"],["impl Debug for PlatformSpecific"],["impl Debug for Settings"],["impl Debug for Id"],["impl<'a> Debug for Layout<'a>"],["impl<'a, Link: Debug, Font: Debug> Debug for Span<'a, Link, Font>"],["impl<'a, Message: Debug> Debug for Shell<'a, Message>"],["impl<C: Debug> Debug for Key<C>"],["impl<Content: Debug, Font: Debug> Debug for Text<Content, Font>"],["impl<Font: Debug> Debug for Format<Font>"],["impl<H: Debug> Debug for Image<H>"],["impl<H: Debug> Debug for Svg<H>"],["impl<P: Debug + Paragraph> Debug for Plain<P>"],["impl<P: Debug + Paragraph> Debug for State<P>"],["impl<T> Debug for Outcome<T>
      where\n T: Debug,
      "],["impl<T: Debug> Debug for Point<T>"],["impl<T: Debug> Debug for Rectangle<T>"],["impl<T: Debug> Debug for Size<T>"],["impl<T: Debug> Debug for Vector<T>"]]],["iced_futures",[["impl Debug for Event"],["impl Debug for MacOS"],["impl Debug for PlatformSpecific"],["impl Debug for Executor"],["impl Debug for Executor"],["impl Debug for Executor"],["impl Debug for Tracker"],["impl<Executor: Debug, Sender: Debug, Message: Debug> Debug for Runtime<Executor, Sender, Message>"],["impl<T> Debug for Subscription<T>"]]],["iced_graphics",[["impl Debug for SurfaceError"],["impl Debug for Antialiasing"],["impl Debug for Error"],["impl Debug for Reason"],["impl Debug for Style"],["impl Debug for Rule"],["impl Debug for LineCap"],["impl Debug for LineJoin"],["impl Debug for Gradient"],["impl Debug for Image"],["impl Debug for Mesh"],["impl Debug for Text"],["impl Debug for Group"],["impl Debug for Packed"],["impl Debug for Information"],["impl Debug for Fill"],["impl Debug for Arc"],["impl Debug for Elliptical"],["impl Debug for Path"],["impl Debug for Text"],["impl Debug for Linear"],["impl Debug for Packed"],["impl Debug for AttributeCount"],["impl Debug for GradientVertex2D"],["impl Debug for SolidVertex2D"],["impl Debug for Settings"],["impl Debug for Viewport"],["impl Debug for Cache"],["impl Debug for Entry"],["impl Debug for Editor"],["impl Debug for Weak"],["impl Debug for Paragraph"],["impl Debug for Weak"],["impl Debug for Raw"],["impl Debug for Version"],["impl<'a> Debug for LineDash<'a>"],["impl<'a> Debug for Stroke<'a>"],["impl<'a> Debug for Key<'a>"],["impl<Renderer> Debug for Cache<Renderer>
      where\n Renderer: Renderer,\n <Renderer::Geometry as Cached>::Cache: Debug,
      "],["impl<T> Debug for Cache<T>
      where\n T: Debug,
      "],["impl<T: Debug + Layer> Debug for Stack<T>"],["impl<T: Debug> Debug for State<T>"],["impl<T: Debug> Debug for Indexed<T>"]]],["iced_highlighter",[["impl Debug for Theme"],["impl Debug for Highlight"],["impl Debug for Highlighter"],["impl Debug for Settings"]]],["iced_renderer",[["impl<A, B> Debug for Compositor<A, B>
      where\n A: Compositor + Debug,\n B: Compositor + Debug,
      "],["impl<A: Debug, B: Debug> Debug for Renderer<A, B>"],["impl<A: Debug, B: Debug> Debug for Surface<A, B>"]]],["iced_runtime",[["impl Debug for Action"],["impl Debug for Error"],["impl Debug for Action"],["impl Debug for State"],["impl Debug for CropError"],["impl Debug for Debug"],["impl Debug for Information"],["impl Debug for Handle"],["impl Debug for Cache"],["impl Debug for Screenshot"],["impl<T> Debug for Action<T>
      where\n T: Debug,
      "]]],["iced_tiny_skia",[["impl Debug for Primitive"],["impl Debug for Geometry"],["impl Debug for Cache"],["impl Debug for Frame"],["impl Debug for Layer"],["impl Debug for Renderer"],["impl Debug for Settings"]]],["iced_wgpu",[["impl Debug for Geometry"],["impl Debug for Error"],["impl Debug for Cache"],["impl Debug for Layer"],["impl Debug for Instance"],["impl Debug for Storage"],["impl Debug for Settings"]]],["iced_widget",[["impl Debug for Status"],["impl Debug for Status"],["impl Debug for Item"],["impl Debug for Axis"],["impl Debug for Direction"],["impl Debug for DragEvent"],["impl Debug for Edge"],["impl Debug for Node"],["impl Debug for Region"],["impl Debug for Target"],["impl Debug for Action"],["impl Debug for Status"],["impl Debug for Error"],["impl Debug for ErrorCorrection"],["impl Debug for Version"],["impl Debug for Status"],["impl Debug for FillMode"],["impl Debug for Anchor"],["impl Debug for Direction"],["impl Debug for Status"],["impl Debug for HandleShape"],["impl Debug for Status"],["impl Debug for Status"],["impl Debug for Status"],["impl Debug for State"],["impl Debug for Side"],["impl Debug for Status"],["impl Debug for Status"],["impl Debug for Position"],["impl Debug for Style"],["impl Debug for Style"],["impl Debug for Id"],["impl Debug for Style"],["impl Debug for State"],["impl Debug for Settings"],["impl Debug for Style"],["impl Debug for Text"],["impl Debug for State"],["impl Debug for Style"],["impl Debug for Internal"],["impl Debug for Highlight"],["impl Debug for Line"],["impl Debug for Pane"],["impl Debug for ResizeEvent"],["impl Debug for Split"],["impl Debug for Style"],["impl Debug for Style"],["impl Debug for Style"],["impl Debug for Data"],["impl Debug for Style"],["impl Debug for Style"],["impl Debug for Style"],["impl Debug for Id"],["impl Debug for Rail"],["impl Debug for Scrollbar"],["impl Debug for Scroller"],["impl Debug for Style"],["impl Debug for Viewport"],["impl Debug for Handle"],["impl Debug for Rail"],["impl Debug for Style"],["impl Debug for Style"],["impl Debug for KeyPress"],["impl Debug for Style"],["impl Debug for Cursor"],["impl Debug for Id"],["impl Debug for Style"],["impl Debug for Value"],["impl Debug for Style"],["impl<Font: Debug> Debug for Handle<Font>"],["impl<Font: Debug> Debug for Icon<Font>"],["impl<Font: Debug> Debug for Icon<Font>"],["impl<Font: Debug> Debug for Icon<Font>"],["impl<Handle: Debug> Debug for Image<Handle>"],["impl<Highlighter: Debug + Highlighter> Debug for State<Highlighter>
      where\n Highlighter::Settings: Debug,
      "],["impl<Message: Debug> Debug for Binding<Message>"],["impl<Message: Debug> Debug for Action<Message>"],["impl<P, Message: Debug, Theme: Debug, Renderer> Debug for Canvas<P, Message, Theme, Renderer>
      where\n Renderer: Renderer + Debug,\n P: Program<Message, Theme, Renderer> + Debug,
      "],["impl<P: Debug + Paragraph> Debug for State<P>"],["impl<Renderer> Debug for Content<Renderer>
      where\n Renderer: Renderer,\n Renderer::Editor: Debug,
      "],["impl<T: Debug> Debug for Configuration<T>"],["impl<T: Debug> Debug for State<T>"],["impl<T: Debug> Debug for State<T>"]]],["iced_winit",[["impl Debug for Error"],["impl Debug for Appearance"],["impl Debug for Settings"],["impl<P: Program> Debug for State<P>
      where\n P::Theme: DefaultStyle,
      "],["impl<T: Debug + 'static> Debug for Proxy<T>"]]]]); + var implementors = Object.fromEntries([["iced",[["impl Debug for Error"],["impl Debug for Error"],["impl Debug for Settings"],["impl<P: Debug + Program> Debug for Application<P>"],["impl<P: Debug + Program> Debug for Daemon<P>"]]],["iced_core",[["impl Debug for Alignment"],["impl Debug for Horizontal"],["impl Debug for Vertical"],["impl Debug for Kind"],["impl Debug for Background"],["impl Debug for ContentFit"],["impl Debug for Length"],["impl Debug for Rotation"],["impl Debug for Event"],["impl Debug for Status"],["impl Debug for Family"],["impl Debug for Stretch"],["impl Debug for Style"],["impl Debug for Weight"],["impl Debug for Gradient"],["impl Debug for FilterMethod"],["impl Debug for Handle"],["impl Debug for Event"],["impl Debug for Location"],["impl Debug for Code"],["impl Debug for Named"],["impl Debug for NativeCode"],["impl Debug for Physical"],["impl Debug for Axis"],["impl Debug for Kind"],["impl Debug for Button"],["impl Debug for Cursor"],["impl Debug for Event"],["impl Debug for Interaction"],["impl Debug for ScrollDelta"],["impl Debug for Data"],["impl Debug for Action"],["impl Debug for Cursor"],["impl Debug for Direction"],["impl Debug for Edit"],["impl Debug for Motion"],["impl Debug for Difference"],["impl Debug for Hit"],["impl Debug for LineHeight"],["impl Debug for Shaping"],["impl Debug for Wrapping"],["impl Debug for Theme"],["impl Debug for Event"],["impl Debug for State"],["impl Debug for Event"],["impl Debug for Level"],["impl Debug for Mode"],["impl Debug for Position"],["impl Debug for RedrawRequest"],["impl Debug for UserAttention"],["impl Debug for Error"],["impl Debug for Border"],["impl Debug for Radius"],["impl Debug for Null"],["impl Debug for Font"],["impl Debug for ColorStop"],["impl Debug for Linear"],["impl Debug for Id"],["impl Debug for Modifiers"],["impl Debug for Limits"],["impl Debug for Node"],["impl Debug for Click"],["impl Debug for Padding"],["impl Debug for Quad"],["impl Debug for Style"],["impl Debug for Color"],["impl Debug for Degrees"],["impl Debug for Pixels"],["impl Debug for Radians"],["impl Debug for Shadow"],["impl Debug for Transformation"],["impl Debug for Handle"],["impl Debug for PlainText"],["impl Debug for Highlight"],["impl Debug for Background"],["impl Debug for Danger"],["impl Debug for Extended"],["impl Debug for Pair"],["impl Debug for Palette"],["impl Debug for Primary"],["impl Debug for Secondary"],["impl Debug for Success"],["impl Debug for Custom"],["impl Debug for Finger"],["impl Debug for Count"],["impl Debug for AbsoluteOffset"],["impl Debug for RelativeOffset"],["impl Debug for Id"],["impl Debug for Style"],["impl Debug for Tag"],["impl Debug for Tree"],["impl Debug for Icon"],["impl Debug for PlatformSpecific"],["impl Debug for Settings"],["impl Debug for Id"],["impl<'a> Debug for Layout<'a>"],["impl<'a, Link: Debug, Font: Debug> Debug for Span<'a, Link, Font>"],["impl<'a, Message: Debug> Debug for Shell<'a, Message>"],["impl<C: Debug> Debug for Key<C>"],["impl<Content: Debug, Font: Debug> Debug for Text<Content, Font>"],["impl<Font: Debug> Debug for Format<Font>"],["impl<H: Debug> Debug for Image<H>"],["impl<H: Debug> Debug for Svg<H>"],["impl<P: Debug + Paragraph> Debug for Plain<P>"],["impl<P: Debug + Paragraph> Debug for State<P>"],["impl<T> Debug for Outcome<T>
      where\n T: Debug,
      "],["impl<T: Debug> Debug for Point<T>"],["impl<T: Debug> Debug for Rectangle<T>"],["impl<T: Debug> Debug for Size<T>"],["impl<T: Debug> Debug for Vector<T>"]]],["iced_futures",[["impl Debug for Event"],["impl Debug for MacOS"],["impl Debug for PlatformSpecific"],["impl Debug for Executor"],["impl Debug for Executor"],["impl Debug for Executor"],["impl Debug for Tracker"],["impl<Executor: Debug, Sender: Debug, Message: Debug> Debug for Runtime<Executor, Sender, Message>"],["impl<T> Debug for Subscription<T>"]]],["iced_graphics",[["impl Debug for SurfaceError"],["impl Debug for Antialiasing"],["impl Debug for Error"],["impl Debug for Reason"],["impl Debug for Style"],["impl Debug for Rule"],["impl Debug for LineCap"],["impl Debug for LineJoin"],["impl Debug for Gradient"],["impl Debug for Image"],["impl Debug for Mesh"],["impl Debug for Text"],["impl Debug for Group"],["impl Debug for Packed"],["impl Debug for Information"],["impl Debug for Fill"],["impl Debug for Arc"],["impl Debug for Elliptical"],["impl Debug for Path"],["impl Debug for Text"],["impl Debug for Linear"],["impl Debug for Packed"],["impl Debug for AttributeCount"],["impl Debug for GradientVertex2D"],["impl Debug for SolidVertex2D"],["impl Debug for Settings"],["impl Debug for Viewport"],["impl Debug for Cache"],["impl Debug for Entry"],["impl Debug for Editor"],["impl Debug for Weak"],["impl Debug for Paragraph"],["impl Debug for Weak"],["impl Debug for Raw"],["impl Debug for Version"],["impl<'a> Debug for LineDash<'a>"],["impl<'a> Debug for Stroke<'a>"],["impl<'a> Debug for Key<'a>"],["impl<Renderer> Debug for Cache<Renderer>
      where\n Renderer: Renderer,\n <Renderer::Geometry as Cached>::Cache: Debug,
      "],["impl<T> Debug for Cache<T>
      where\n T: Debug,
      "],["impl<T: Debug + Layer> Debug for Stack<T>"],["impl<T: Debug> Debug for State<T>"],["impl<T: Debug> Debug for Indexed<T>"]]],["iced_highlighter",[["impl Debug for Theme"],["impl Debug for Highlight"],["impl Debug for Highlighter"],["impl Debug for Settings"]]],["iced_renderer",[["impl<A, B> Debug for Compositor<A, B>
      where\n A: Compositor + Debug,\n B: Compositor + Debug,
      "],["impl<A: Debug, B: Debug> Debug for Renderer<A, B>"],["impl<A: Debug, B: Debug> Debug for Surface<A, B>"]]],["iced_runtime",[["impl Debug for Action"],["impl Debug for Error"],["impl Debug for Action"],["impl Debug for State"],["impl Debug for CropError"],["impl Debug for Debug"],["impl Debug for Information"],["impl Debug for Handle"],["impl Debug for Cache"],["impl Debug for Screenshot"],["impl<T> Debug for Action<T>
      where\n T: Debug,
      "]]],["iced_tiny_skia",[["impl Debug for Primitive"],["impl Debug for Geometry"],["impl Debug for Cache"],["impl Debug for Frame"],["impl Debug for Layer"],["impl Debug for Renderer"],["impl Debug for Settings"]]],["iced_wgpu",[["impl Debug for Geometry"],["impl Debug for Error"],["impl Debug for Cache"],["impl Debug for Layer"],["impl Debug for Instance"],["impl Debug for Storage"],["impl Debug for Settings"]]],["iced_widget",[["impl Debug for Status"],["impl Debug for Status"],["impl Debug for Item"],["impl Debug for Axis"],["impl Debug for Direction"],["impl Debug for DragEvent"],["impl Debug for Edge"],["impl Debug for Node"],["impl Debug for Region"],["impl Debug for Target"],["impl Debug for Action"],["impl Debug for Status"],["impl Debug for Error"],["impl Debug for ErrorCorrection"],["impl Debug for Version"],["impl Debug for Status"],["impl Debug for FillMode"],["impl Debug for Anchor"],["impl Debug for Direction"],["impl Debug for Status"],["impl Debug for HandleShape"],["impl Debug for Status"],["impl Debug for Status"],["impl Debug for Status"],["impl Debug for State"],["impl Debug for Side"],["impl Debug for Status"],["impl Debug for Status"],["impl Debug for Position"],["impl Debug for Style"],["impl Debug for Style"],["impl Debug for Id"],["impl Debug for Style"],["impl Debug for State"],["impl Debug for Settings"],["impl Debug for Style"],["impl Debug for Text"],["impl Debug for State"],["impl Debug for Style"],["impl Debug for Internal"],["impl Debug for Highlight"],["impl Debug for Line"],["impl Debug for Pane"],["impl Debug for ResizeEvent"],["impl Debug for Split"],["impl Debug for Style"],["impl Debug for Style"],["impl Debug for Style"],["impl Debug for Data"],["impl Debug for Style"],["impl Debug for Style"],["impl Debug for Style"],["impl Debug for Id"],["impl Debug for Rail"],["impl Debug for Scrollbar"],["impl Debug for Scroller"],["impl Debug for Style"],["impl Debug for Viewport"],["impl Debug for Handle"],["impl Debug for Rail"],["impl Debug for Style"],["impl Debug for Style"],["impl Debug for KeyPress"],["impl Debug for Style"],["impl Debug for Cursor"],["impl Debug for Id"],["impl Debug for Style"],["impl Debug for Value"],["impl Debug for Style"],["impl<Font: Debug> Debug for Handle<Font>"],["impl<Font: Debug> Debug for Icon<Font>"],["impl<Font: Debug> Debug for Icon<Font>"],["impl<Font: Debug> Debug for Icon<Font>"],["impl<Handle: Debug> Debug for Image<Handle>"],["impl<Highlighter: Debug + Highlighter> Debug for State<Highlighter>
      where\n Highlighter::Settings: Debug,
      "],["impl<Message: Debug> Debug for Binding<Message>"],["impl<Message: Debug> Debug for Action<Message>"],["impl<P, Message: Debug, Theme: Debug, Renderer> Debug for Canvas<P, Message, Theme, Renderer>
      where\n Renderer: Renderer + Debug,\n P: Program<Message, Theme, Renderer> + Debug,
      "],["impl<P: Debug + Paragraph> Debug for State<P>"],["impl<Renderer> Debug for Content<Renderer>
      where\n Renderer: Renderer,\n Renderer::Editor: Debug,
      "],["impl<T: Debug> Debug for Configuration<T>"],["impl<T: Debug> Debug for State<T>"],["impl<T: Debug> Debug for State<T>"]]],["iced_winit",[["impl Debug for Error"],["impl Debug for Appearance"],["impl Debug for Settings"],["impl<P: Program> Debug for State<P>
      where\n P::Theme: DefaultStyle,
      "],["impl<T: Debug + 'static> Debug for Proxy<T>"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[1608,31945,3092,13525,1092,1786,3202,1890,1902,25994,1962]} \ No newline at end of file +//{"start":57,"fragment_lengths":[1608,31945,3092,13525,1092,1786,3202,1890,1902,25869,1962]} \ No newline at end of file diff --git a/trait.impl/iced_core/widget/trait.Widget.js b/trait.impl/iced_core/widget/trait.Widget.js index 8096ed5de5..8851df68ee 100644 --- a/trait.impl/iced_core/widget/trait.Widget.js +++ b/trait.impl/iced_core/widget/trait.Widget.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iced",[]],["iced_core",[]],["iced_widget",[["impl<'a, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Button<'a, Message, Theme, Renderer>
      where\n Message: 'a + Clone,\n Renderer: 'a + Renderer,\n Theme: Catalog,
      "],["impl<'a, Message, Theme, Renderer, Dependency, View> Widget<Message, Theme, Renderer> for Lazy<'a, Message, Theme, Renderer, Dependency, View>
      where\n View: Into<Element<'static, Message, Theme, Renderer>> + 'static,\n Dependency: Hash + 'a,\n Message: 'static,\n Theme: 'static,\n Renderer: Renderer + 'static,
      "],["impl<'a, T, L, V, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for PickList<'a, T, L, V, Message, Theme, Renderer>
      where\n T: Clone + ToString + PartialEq + 'a,\n L: Borrow<[T]>,\n V: Borrow<T>,\n Message: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<Highlighter, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for TextEditor<'_, Highlighter, Message, Theme, Renderer>
      where\n Highlighter: Highlighter,\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Key, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Column<'_, Key, Message, Theme, Renderer>
      where\n Renderer: Renderer,\n Key: Copy + PartialEq + 'static,
      "],["impl<Link, Theme, Renderer> Widget<Link, Theme, Renderer> for Rich<'_, Link, Theme, Renderer>
      where\n Link: Clone + 'static,\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme> Widget<Message, Theme, Renderer<Renderer, Renderer>> for QRCode<'_, Theme>
      where\n Theme: Catalog,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Checkbox<'_, Message, Theme, Renderer>
      where\n Renderer: Renderer,\n Theme: Catalog,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Container<'_, Message, Theme, Renderer>
      where\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for PaneGrid<'_, Message, Theme, Renderer>
      where\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for ProgressBar<'_, Theme>
      where\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Radio<'_, Message, Theme, Renderer>
      where\n Message: Clone,\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Rule<'_, Theme>
      where\n Renderer: Renderer,\n Theme: Catalog,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Scrollable<'_, Message, Theme, Renderer>
      where\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Responsive<'_, Message, Theme, Renderer>
      where\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Svg<'_, Theme>
      where\n Renderer: Renderer,\n Theme: Catalog,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for TextInput<'_, Message, Theme, Renderer>
      where\n Message: Clone,\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Toggler<'_, Message, Theme, Renderer>
      where\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Tooltip<'_, Message, Theme, Renderer>
      where\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer, Handle> Widget<Message, Theme, Renderer> for Image<Handle>
      where\n Renderer: Renderer<Handle = Handle>,\n Handle: Clone,
      "],["impl<Message, Theme, Renderer, Handle> Widget<Message, Theme, Renderer> for Viewer<Handle>
      where\n Renderer: Renderer<Handle = Handle>,\n Handle: Clone,
      "],["impl<P, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Canvas<P, Message, Theme, Renderer>
      where\n Renderer: Renderer,\n P: Program<Message, Theme, Renderer>,
      "],["impl<P, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Shader<Message, P>
      where\n P: Program<Message>,\n Renderer: Renderer,
      "],["impl<T, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for ComboBox<'_, T, Message, Theme, Renderer>
      where\n T: Display + Clone + 'static,\n Message: Clone,\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<T, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Slider<'_, T, Message, Theme>
      where\n T: Copy + Into<f64> + FromPrimitive,\n Message: Clone,\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<T, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for VerticalSlider<'_, T, Message, Theme>
      where\n T: Copy + Into<f64> + FromPrimitive,\n Message: Clone,\n Theme: Catalog,\n Renderer: Renderer,
      "]]]]); + var implementors = Object.fromEntries([["iced",[]],["iced_core",[]],["iced_widget",[["impl<'a, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Button<'a, Message, Theme, Renderer>
      where\n Message: 'a + Clone,\n Renderer: 'a + Renderer,\n Theme: Catalog,
      "],["impl<'a, Message, Theme, Renderer, Dependency, View> Widget<Message, Theme, Renderer> for Lazy<'a, Message, Theme, Renderer, Dependency, View>
      where\n View: Into<Element<'static, Message, Theme, Renderer>> + 'static,\n Dependency: Hash + 'a,\n Message: 'static,\n Theme: 'static,\n Renderer: Renderer + 'static,
      "],["impl<'a, T, L, V, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for PickList<'a, T, L, V, Message, Theme, Renderer>
      where\n T: Clone + ToString + PartialEq + 'a,\n L: Borrow<[T]>,\n V: Borrow<T>,\n Message: Clone + 'a,\n Theme: Catalog + 'a,\n Renderer: Renderer + 'a,
      "],["impl<Highlighter, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for TextEditor<'_, Highlighter, Message, Theme, Renderer>
      where\n Highlighter: Highlighter,\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Key, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Column<'_, Key, Message, Theme, Renderer>
      where\n Renderer: Renderer,\n Key: Copy + PartialEq + 'static,
      "],["impl<Link, Theme, Renderer> Widget<Link, Theme, Renderer> for Rich<'_, Link, Theme, Renderer>
      where\n Link: Clone + 'static,\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme> Widget<Message, Theme, Renderer<Renderer, Renderer>> for QRCode<'_, Theme>
      where\n Theme: Catalog,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Checkbox<'_, Message, Theme, Renderer>
      where\n Renderer: Renderer,\n Theme: Catalog,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Container<'_, Message, Theme, Renderer>
      where\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for PaneGrid<'_, Message, Theme, Renderer>
      where\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for ProgressBar<'_, Theme>
      where\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Radio<'_, Message, Theme, Renderer>
      where\n Message: Clone,\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Rule<'_, Theme>
      where\n Renderer: Renderer,\n Theme: Catalog,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Scrollable<'_, Message, Theme, Renderer>
      where\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Responsive<'_, Message, Theme, Renderer>
      where\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Svg<'_, Theme>
      where\n Renderer: Renderer,\n Theme: Catalog,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for TextInput<'_, Message, Theme, Renderer>
      where\n Message: Clone,\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Toggler<'_, Message, Theme, Renderer>
      where\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Tooltip<'_, Message, Theme, Renderer>
      where\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<Message, Theme, Renderer, Handle> Widget<Message, Theme, Renderer> for Image<Handle>
      where\n Renderer: Renderer<Handle = Handle>,\n Handle: Clone,
      "],["impl<Message, Theme, Renderer, Handle> Widget<Message, Theme, Renderer> for Viewer<Handle>
      where\n Renderer: Renderer<Handle = Handle>,\n Handle: Clone,
      "],["impl<P, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Canvas<P, Message, Theme, Renderer>
      where\n Renderer: Renderer,\n P: Program<Message, Theme, Renderer>,
      "],["impl<P, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Shader<Message, P>
      where\n P: Program<Message>,\n Renderer: Renderer,
      "],["impl<T, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for ComboBox<'_, T, Message, Theme, Renderer>
      where\n T: Display + Clone + 'static,\n Message: Clone,\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<T, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for Slider<'_, T, Message, Theme>
      where\n T: Copy + Into<f64> + FromPrimitive,\n Message: Clone,\n Theme: Catalog,\n Renderer: Renderer,
      "],["impl<T, Message, Theme, Renderer> Widget<Message, Theme, Renderer> for VerticalSlider<'_, T, Message, Theme>
      where\n T: Copy + Into<f64> + FromPrimitive,\n Message: Clone,\n Theme: Catalog,\n Renderer: Renderer,
      "]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[11,17,16177]} \ No newline at end of file +//{"start":57,"fragment_lengths":[11,17,16052]} \ No newline at end of file diff --git a/trait.impl/iced_graphics/cache/trait.Cached.js b/trait.impl/iced_graphics/cache/trait.Cached.js index 181076658e..2ac57feb39 100644 --- a/trait.impl/iced_graphics/cache/trait.Cached.js +++ b/trait.impl/iced_graphics/cache/trait.Cached.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iced_graphics",[]],["iced_tiny_skia",[["impl Cached for Geometry"]]],["iced_wgpu",[["impl Cached for Geometry"]]]]); + var implementors = Object.fromEntries([["iced_graphics",[]],["iced_tiny_skia",[["impl Cached for Geometry"]]],["iced_wgpu",[["impl Cached for Geometry"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[20,174,274]} \ No newline at end of file +//{"start":57,"fragment_lengths":[20,174,159]} \ No newline at end of file diff --git a/trait.impl/iced_graphics/compositor/trait.Compositor.js b/trait.impl/iced_graphics/compositor/trait.Compositor.js index 30467686c0..5d83da49cb 100644 --- a/trait.impl/iced_graphics/compositor/trait.Compositor.js +++ b/trait.impl/iced_graphics/compositor/trait.Compositor.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iced_graphics",[]],["iced_renderer",[["impl<A, B> Compositor for Compositor<A, B>
      where\n A: Compositor,\n B: Compositor,
      "]]],["iced_tiny_skia",[["impl Compositor for Compositor"]]],["iced_wgpu",[["impl Compositor for Compositor"]]]]); + var implementors = Object.fromEntries([["iced_graphics",[]],["iced_renderer",[["impl<A, B> Compositor for Compositor<A, B>
      where\n A: Compositor,\n B: Compositor,
      "]]],["iced_tiny_skia",[["impl Compositor for Compositor"]]],["iced_wgpu",[["impl Compositor for Compositor"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[20,277,209,327]} \ No newline at end of file +//{"start":57,"fragment_lengths":[20,277,209,194]} \ No newline at end of file diff --git a/trait.impl/iced_graphics/compositor/trait.Default.js b/trait.impl/iced_graphics/compositor/trait.Default.js index e7cc4cf939..914d27d509 100644 --- a/trait.impl/iced_graphics/compositor/trait.Default.js +++ b/trait.impl/iced_graphics/compositor/trait.Default.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iced_graphics",[]],["iced_renderer",[["impl<A, B> Default for Renderer<A, B>
      where\n A: Default,\n B: Default,
      "]]],["iced_tiny_skia",[["impl Default for Renderer"]]],["iced_wgpu",[["impl Default for Renderer"]]]]); + var implementors = Object.fromEntries([["iced_graphics",[]],["iced_renderer",[["impl<A, B> Default for Renderer<A, B>
      where\n A: Default,\n B: Default,
      "]]],["iced_tiny_skia",[["impl Default for Renderer"]]],["iced_wgpu",[["impl Default for Renderer"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[20,262,162,274]} \ No newline at end of file +//{"start":57,"fragment_lengths":[20,262,162,147]} \ No newline at end of file diff --git a/trait.impl/iced_graphics/geometry/frame/trait.Backend.js b/trait.impl/iced_graphics/geometry/frame/trait.Backend.js index 211abc8b29..ab9f1f3b95 100644 --- a/trait.impl/iced_graphics/geometry/frame/trait.Backend.js +++ b/trait.impl/iced_graphics/geometry/frame/trait.Backend.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iced_graphics",[]],["iced_renderer",[]],["iced_tiny_skia",[["impl Backend for Frame"]]],["iced_wgpu",[["impl Backend for Frame"]]]]); + var implementors = Object.fromEntries([["iced_graphics",[]],["iced_renderer",[]],["iced_tiny_skia",[["impl Backend for Frame"]]],["iced_wgpu",[["impl Backend for Frame"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[20,21,172,293]} \ No newline at end of file +//{"start":57,"fragment_lengths":[20,21,172,157]} \ No newline at end of file diff --git a/trait.impl/iced_graphics/geometry/trait.Renderer.js b/trait.impl/iced_graphics/geometry/trait.Renderer.js index cb2a98d2f0..af31ad0093 100644 --- a/trait.impl/iced_graphics/geometry/trait.Renderer.js +++ b/trait.impl/iced_graphics/geometry/trait.Renderer.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iced_graphics",[]],["iced_renderer",[["impl<A, B> Renderer for Renderer<A, B>
      where\n A: Renderer,\n B: Renderer,
      "]]],["iced_tiny_skia",[["impl Renderer for Renderer"]]],["iced_wgpu",[["impl Renderer for Renderer"]]]]); + var implementors = Object.fromEntries([["iced_graphics",[]],["iced_renderer",[["impl<A, B> Renderer for Renderer<A, B>
      where\n A: Renderer,\n B: Renderer,
      "]]],["iced_tiny_skia",[["impl Renderer for Renderer"]]],["iced_wgpu",[["impl Renderer for Renderer"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[20,640,163,273]} \ No newline at end of file +//{"start":57,"fragment_lengths":[20,640,163,148]} \ No newline at end of file diff --git a/trait.impl/iced_graphics/layer/trait.Layer.js b/trait.impl/iced_graphics/layer/trait.Layer.js index 6dcba3d0b4..9094036c11 100644 --- a/trait.impl/iced_graphics/layer/trait.Layer.js +++ b/trait.impl/iced_graphics/layer/trait.Layer.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iced_tiny_skia",[["impl Layer for Layer"]]],["iced_wgpu",[["impl Layer for Layer"]]]]); + var implementors = Object.fromEntries([["iced_tiny_skia",[["impl Layer for Layer"]]],["iced_wgpu",[["impl Layer for Layer"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[150,262]} \ No newline at end of file +//{"start":57,"fragment_lengths":[150,149]} \ No newline at end of file diff --git a/trait.impl/iced_graphics/mesh/trait.Renderer.js b/trait.impl/iced_graphics/mesh/trait.Renderer.js index fc7966f1af..a4d7d6f212 100644 --- a/trait.impl/iced_graphics/mesh/trait.Renderer.js +++ b/trait.impl/iced_graphics/mesh/trait.Renderer.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iced_renderer",[["impl<A, B> Renderer for Renderer<A, B>
      where\n A: Renderer,\n B: Renderer,
      "]]],["iced_tiny_skia",[["impl Renderer for Renderer"]]],["iced_wgpu",[["impl Renderer for Renderer"]]]]); + var implementors = Object.fromEntries([["iced_renderer",[["impl<A, B> Renderer for Renderer<A, B>
      where\n A: Renderer,\n B: Renderer,
      "]]],["iced_tiny_skia",[["impl Renderer for Renderer"]]],["iced_wgpu",[["impl Renderer for Renderer"]]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[264,163,265]} \ No newline at end of file +//{"start":57,"fragment_lengths":[264,163,148]} \ No newline at end of file diff --git a/trait.impl/iced_wgpu/primitive/trait.Renderer.js b/trait.impl/iced_wgpu/primitive/trait.Renderer.js index 5c724c871b..2223042e45 100644 --- a/trait.impl/iced_wgpu/primitive/trait.Renderer.js +++ b/trait.impl/iced_wgpu/primitive/trait.Renderer.js @@ -1,9 +1,9 @@ (function() { - var implementors = Object.fromEntries([["iced_renderer",[["impl<A, B> Renderer for Renderer<A, B>
      where\n A: Renderer,\n B: Renderer,
      "]]],["iced_wgpu",[]]]); + var implementors = Object.fromEntries([["iced_renderer",[["impl<A, B> Renderer for Renderer<A, B>
      where\n A: Renderer,\n B: Renderer,
      "]]],["iced_wgpu",[]]]); if (window.register_implementors) { window.register_implementors(implementors); } else { window.pending_implementors = implementors; } })() -//{"start":57,"fragment_lengths":[264,17]} \ No newline at end of file +//{"start":57,"fragment_lengths":[502,17]} \ No newline at end of file diff --git a/type.impl/alloc/boxed/struct.Box.js b/type.impl/alloc/boxed/struct.Box.js index 87b927b3ed..edbf1b115d 100644 --- a/type.impl/alloc/boxed/struct.Box.js +++ b/type.impl/alloc/boxed/struct.Box.js @@ -1,9 +1,9 @@ (function() { - var type_impls = Object.fromEntries([["iced",[["
      §

      impl<T> AnyProvider for Box<T>
      where\n T: AnyProvider + ?Sized,

      §

      fn load_any(\n &self,\n key: DataKey,\n req: DataRequest<'_>,\n) -> Result<AnyResponse, DataError>

      Loads an [AnyPayload] according to the key and request.
      ","AnyProvider","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<A, T> ApplicationHandler<T> for Box<A>
      where\n A: ApplicationHandler<T> + ?Sized,\n T: 'static,

      §

      fn new_events(&mut self, event_loop: &ActiveEventLoop, cause: StartCause)

      Emitted when new events arrive from the OS to be processed. Read more
      §

      fn resumed(&mut self, event_loop: &ActiveEventLoop)

      Emitted when the application has been resumed. Read more
      §

      fn user_event(&mut self, event_loop: &ActiveEventLoop, event: T)

      Emitted when an event is sent from EventLoopProxy::send_event.
      §

      fn window_event(\n &mut self,\n event_loop: &ActiveEventLoop,\n window_id: WindowId,\n event: WindowEvent,\n)

      Emitted when the OS sends an event to a winit window.
      §

      fn device_event(\n &mut self,\n event_loop: &ActiveEventLoop,\n device_id: DeviceId,\n event: DeviceEvent,\n)

      Emitted when the OS sends an event to a device.
      §

      fn about_to_wait(&mut self, event_loop: &ActiveEventLoop)

      Emitted when the event loop is about to block and wait for new events. Read more
      §

      fn suspended(&mut self, event_loop: &ActiveEventLoop)

      Emitted when the application has been suspended. Read more
      §

      fn exiting(&mut self, event_loop: &ActiveEventLoop)

      Emitted when the event loop is being shut down. Read more
      §

      fn memory_warning(&mut self, event_loop: &ActiveEventLoop)

      Emitted when the application has received a memory warning. Read more
      §

      fn received_url(&mut self, event_loop: &ActiveEventLoop, url: String)

      Emitted when the application has received a URL, through a\ncustom URL handler. Read more
      ","ApplicationHandler","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.64.0 · Source§

      impl<T> AsFd for Box<T>
      where\n T: AsFd + ?Sized,

      Source§

      fn as_fd(&self) -> BorrowedFd<'_>

      Borrows the file descriptor. Read more
      ","AsFd","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.5.0 · Source§

      impl<T, A> AsMut<T> for Box<T, A>
      where\n A: Allocator,\n T: ?Sized,

      Source§

      fn as_mut(&mut self) -> &mut T

      Converts this type into a mutable reference of the (usually inferred) input type.
      ","AsMut","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.63.0 · Source§

      impl<T> AsRawFd for Box<T>
      where\n T: AsRawFd,

      Source§

      fn as_raw_fd(&self) -> i32

      Extracts the raw file descriptor. Read more
      ","AsRawFd","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<T> AsRawXcbConnection for Box<T>
      where\n T: AsRawXcbConnection + ?Sized,

      Available on crate feature alloc only.
      §

      fn as_raw_xcb_connection(&self) -> *mut xcb_connection_t

      Get a raw xcb connection pointer from this object.
      ","AsRawXcbConnection","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.5.0 · Source§

      impl<T, A> AsRef<T> for Box<T, A>
      where\n A: Allocator,\n T: ?Sized,

      Source§

      fn as_ref(&self) -> &T

      Converts this type into a shared reference of the (usually inferred) input type.
      ","AsRef","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<T> AsyncBufRead for Box<T>
      where\n T: AsyncBufRead + Unpin + ?Sized,

      §

      fn poll_fill_buf(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<&[u8], Error>>

      Attempt to return the contents of the internal buffer, filling it with more data\nfrom the inner reader if it is empty. Read more
      §

      fn consume(self: Pin<&mut Box<T>>, amt: usize)

      Tells this buffer that amt bytes have been consumed from the buffer,\nso they should no longer be returned in calls to poll_read. Read more
      ","AsyncBufRead","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<T> AsyncBufRead for Box<T>
      where\n T: AsyncBufRead + Unpin + ?Sized,

      §

      fn poll_fill_buf(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<&[u8], Error>>

      Attempts to return the contents of the internal buffer, filling it with more data\nfrom the inner reader if it is empty. Read more
      §

      fn consume(self: Pin<&mut Box<T>>, amt: usize)

      Tells this buffer that amt bytes have been consumed from the buffer,\nso they should no longer be returned in calls to poll_read. Read more
      ","AsyncBufRead","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      Source§

      impl<Args, F, A> AsyncFn<Args> for Box<F, A>
      where\n Args: Tuple,\n F: AsyncFn<Args> + ?Sized,\n A: Allocator,

      Source§

      extern "rust-call" fn async_call(\n &self,\n args: Args,\n) -> <Box<F, A> as AsyncFnMut<Args>>::CallRefFuture<'_>

      🔬This is a nightly-only experimental API. (async_fn_traits)
      Call the AsyncFn, returning a future which may borrow from the called closure.
      ","AsyncFn","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      Source§

      impl<Args, F, A> AsyncFnMut<Args> for Box<F, A>
      where\n Args: Tuple,\n F: AsyncFnMut<Args> + ?Sized,\n A: Allocator,

      Source§

      type CallRefFuture<'a> = <F as AsyncFnMut<Args>>::CallRefFuture<'a>\nwhere\n Box<F, A>: 'a

      🔬This is a nightly-only experimental API. (async_fn_traits)
      Source§

      extern "rust-call" fn async_call_mut(\n &mut self,\n args: Args,\n) -> <Box<F, A> as AsyncFnMut<Args>>::CallRefFuture<'_>

      🔬This is a nightly-only experimental API. (async_fn_traits)
      Call the AsyncFnMut, returning a future which may borrow from the called closure.
      ","AsyncFnMut","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      Source§

      impl<Args, F, A> AsyncFnOnce<Args> for Box<F, A>
      where\n Args: Tuple,\n F: AsyncFnOnce<Args> + ?Sized,\n A: Allocator,

      Source§

      type Output = <F as AsyncFnOnce<Args>>::Output

      🔬This is a nightly-only experimental API. (async_fn_traits)
      Output type of the called closure’s future.
      Source§

      type CallOnceFuture = <F as AsyncFnOnce<Args>>::CallOnceFuture

      🔬This is a nightly-only experimental API. (async_fn_traits)
      Future returned by AsyncFnOnce::async_call_once.
      Source§

      extern "rust-call" fn async_call_once(\n self,\n args: Args,\n) -> <Box<F, A> as AsyncFnOnce<Args>>::CallOnceFuture

      🔬This is a nightly-only experimental API. (async_fn_traits)
      Call the AsyncFnOnce, returning a future which may move out of the called closure.
      ","AsyncFnOnce","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      Source§

      impl<S> AsyncIterator for Box<S>
      where\n S: AsyncIterator + Unpin + ?Sized,

      Source§

      type Item = <S as AsyncIterator>::Item

      🔬This is a nightly-only experimental API. (async_iterator)
      The type of items yielded by the async iterator.
      Source§

      fn poll_next(\n self: Pin<&mut Box<S>>,\n cx: &mut Context<'_>,\n) -> Poll<Option<<Box<S> as AsyncIterator>::Item>>

      🔬This is a nightly-only experimental API. (async_iterator)
      Attempts to pull out the next value of this async iterator, registering the\ncurrent task for wakeup if the value is not yet available, and returning\nNone if the async iterator is exhausted. Read more
      Source§

      fn size_hint(&self) -> (usize, Option<usize>)

      🔬This is a nightly-only experimental API. (async_iterator)
      Returns the bounds on the remaining length of the async iterator. Read more
      ","AsyncIterator","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<T> AsyncRead for Box<T>
      where\n T: AsyncRead + Unpin + ?Sized,

      §

      fn poll_read(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &mut ReadBuf<'_>,\n) -> Poll<Result<(), Error>>

      Attempts to read from the AsyncRead into buf. Read more
      ","AsyncRead","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<T> AsyncRead for Box<T>
      where\n T: AsyncRead + Unpin + ?Sized,

      §

      fn poll_read(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &mut [u8],\n) -> Poll<Result<usize, Error>>

      Attempt to read from the AsyncRead into buf. Read more
      §

      fn poll_read_vectored(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n bufs: &mut [IoSliceMut<'_>],\n) -> Poll<Result<usize, Error>>

      Attempt to read from the AsyncRead into bufs using vectored\nIO operations. Read more
      ","AsyncRead","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<T> AsyncSeek for Box<T>
      where\n T: AsyncSeek + Unpin + ?Sized,

      §

      fn poll_seek(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n pos: SeekFrom,\n) -> Poll<Result<u64, Error>>

      Attempt to seek to an offset, in bytes, in a stream. Read more
      ","AsyncSeek","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<T> AsyncSeek for Box<T>
      where\n T: AsyncSeek + Unpin + ?Sized,

      §

      fn start_seek(self: Pin<&mut Box<T>>, pos: SeekFrom) -> Result<(), Error>

      Attempts to seek to an offset, in bytes, in a stream. Read more
      §

      fn poll_complete(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<u64, Error>>

      Waits for a seek operation to complete. Read more
      ","AsyncSeek","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<T> AsyncWrite for Box<T>
      where\n T: AsyncWrite + Unpin + ?Sized,

      §

      fn poll_write(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &[u8],\n) -> Poll<Result<usize, Error>>

      Attempt to write bytes from buf into the object. Read more
      §

      fn poll_write_vectored(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n bufs: &[IoSlice<'_>],\n) -> Poll<Result<usize, Error>>

      Attempt to write bytes from bufs into the object using vectored\nIO operations. Read more
      §

      fn poll_flush(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

      Attempt to flush the object, ensuring that any buffered data reach\ntheir destination. Read more
      §

      fn poll_close(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

      Attempt to close the object. Read more
      ","AsyncWrite","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<T> AsyncWrite for Box<T>
      where\n T: AsyncWrite + Unpin + ?Sized,

      §

      fn poll_write(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n buf: &[u8],\n) -> Poll<Result<usize, Error>>

      Attempt to write bytes from buf into the object. Read more
      §

      fn poll_write_vectored(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n bufs: &[IoSlice<'_>],\n) -> Poll<Result<usize, Error>>

      Like poll_write, except that it writes from a slice of buffers. Read more
      §

      fn is_write_vectored(&self) -> bool

      Determines if this writer has an efficient poll_write_vectored\nimplementation. Read more
      §

      fn poll_flush(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

      Attempts to flush the object, ensuring that any buffered data reach\ntheir destination. Read more
      §

      fn poll_shutdown(\n self: Pin<&mut Box<T>>,\n cx: &mut Context<'_>,\n) -> Poll<Result<(), Error>>

      Initiates or attempts to shut down this writer, returning success when\nthe I/O connection has completely shut down. Read more
      ","AsyncWrite","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.1.0 · Source§

      impl<T, A> Borrow<T> for Box<T, A>
      where\n A: Allocator,\n T: ?Sized,

      Source§

      fn borrow(&self) -> &T

      Immutably borrows from an owned value. Read more
      ","Borrow","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.1.0 · Source§

      impl<T, A> BorrowMut<T> for Box<T, A>
      where\n A: Allocator,\n T: ?Sized,

      Source§

      fn borrow_mut(&mut self) -> &mut T

      Mutably borrows from an owned value. Read more
      ","BorrowMut","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<M, P> BoundDataProvider<M> for Box<P>
      where\n M: DataMarker,\n P: BoundDataProvider<M> + ?Sized,

      §

      fn load_bound(&self, req: DataRequest<'_>) -> Result<DataResponse<M>, DataError>

      Query the provider for data, returning the result. Read more
      §

      fn bound_key(&self) -> DataKey

      Returns the [DataKey] that this provider uses for loading data.
      ","BoundDataProvider","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      Source§

      impl<T> Box<T>
      where\n T: ?Sized,

      1.4.0 · Source

      pub unsafe fn from_raw(raw: *mut T) -> Box<T>

      Constructs a box from a raw pointer.

      \n

      After calling this function, the raw pointer is owned by the\nresulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

      \n
      §Safety
      \n

      This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

      \n

      The safety conditions are described in the memory layout section.

      \n
      §Examples
      \n

      Recreate a Box which was previously converted to a raw pointer\nusing Box::into_raw:

      \n\n
      let x = Box::new(5);\nlet ptr = Box::into_raw(x);\nlet x = unsafe { Box::from_raw(ptr) };
      \n

      Manually create a Box from scratch by using the global allocator:

      \n\n
      use std::alloc::{alloc, Layout};\n\nunsafe {\n    let ptr = alloc(Layout::new::<i32>()) as *mut i32;\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `ptr`, though for this\n    // simple example `*ptr = 5` would have worked as well.\n    ptr.write(5);\n    let x = Box::from_raw(ptr);\n}
      \n
      Source

      pub unsafe fn from_non_null(ptr: NonNull<T>) -> Box<T>

      🔬This is a nightly-only experimental API. (box_vec_non_null)

      Constructs a box from a NonNull pointer.

      \n

      After calling this function, the NonNull pointer is owned by\nthe resulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

      \n
      §Safety
      \n

      This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same NonNull pointer.

      \n

      The safety conditions are described in the memory layout section.

      \n
      §Examples
      \n

      Recreate a Box which was previously converted to a NonNull\npointer using Box::into_non_null:

      \n\n
      #![feature(box_vec_non_null)]\n\nlet x = Box::new(5);\nlet non_null = Box::into_non_null(x);\nlet x = unsafe { Box::from_non_null(non_null) };
      \n

      Manually create a Box from scratch by using the global allocator:

      \n\n
      #![feature(box_vec_non_null)]\n\nuse std::alloc::{alloc, Layout};\nuse std::ptr::NonNull;\n\nunsafe {\n    let non_null = NonNull::new(alloc(Layout::new::<i32>()).cast::<i32>())\n        .expect(\"allocation failed\");\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `non_null`.\n    non_null.write(5);\n    let x = Box::from_non_null(non_null);\n}
      \n
      ",0,"iced::widget::text::StyleFn"],["
      Source§

      impl<T> Box<T>
      where\n T: ?Sized,

      1.4.0 · Source

      pub unsafe fn from_raw(raw: *mut T) -> Box<T>

      Available on crate feature advanced only.

      Constructs a box from a raw pointer.

      \n

      After calling this function, the raw pointer is owned by the\nresulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

      \n
      §Safety
      \n

      This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

      \n

      The safety conditions are described in the memory layout section.

      \n
      §Examples
      \n

      Recreate a Box which was previously converted to a raw pointer\nusing Box::into_raw:

      \n\n
      let x = Box::new(5);\nlet ptr = Box::into_raw(x);\nlet x = unsafe { Box::from_raw(ptr) };
      \n

      Manually create a Box from scratch by using the global allocator:

      \n\n
      use std::alloc::{alloc, Layout};\n\nunsafe {\n    let ptr = alloc(Layout::new::<i32>()) as *mut i32;\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `ptr`, though for this\n    // simple example `*ptr = 5` would have worked as well.\n    ptr.write(5);\n    let x = Box::from_raw(ptr);\n}
      \n
      Source

      pub unsafe fn from_non_null(ptr: NonNull<T>) -> Box<T>

      🔬This is a nightly-only experimental API. (box_vec_non_null)
      Available on crate feature advanced only.

      Constructs a box from a NonNull pointer.

      \n

      After calling this function, the NonNull pointer is owned by\nthe resulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

      \n
      §Safety
      \n

      This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same NonNull pointer.

      \n

      The safety conditions are described in the memory layout section.

      \n
      §Examples
      \n

      Recreate a Box which was previously converted to a NonNull\npointer using Box::into_non_null:

      \n\n
      #![feature(box_vec_non_null)]\n\nlet x = Box::new(5);\nlet non_null = Box::into_non_null(x);\nlet x = unsafe { Box::from_non_null(non_null) };
      \n

      Manually create a Box from scratch by using the global allocator:

      \n\n
      #![feature(box_vec_non_null)]\n\nuse std::alloc::{alloc, Layout};\nuse std::ptr::NonNull;\n\nunsafe {\n    let non_null = NonNull::new(alloc(Layout::new::<i32>()).cast::<i32>())\n        .expect(\"allocation failed\");\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `non_null`.\n    non_null.write(5);\n    let x = Box::from_non_null(non_null);\n}
      \n
      ",0,"iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      Source§

      impl<T> Box<T>

      1.0.0 · Source

      pub fn new(x: T) -> Box<T>

      Available on crate feature advanced and non-no_global_oom_handling only.

      Allocates memory on the heap and then places x into it.

      \n

      This doesn’t actually allocate if T is zero-sized.

      \n
      §Examples
      \n
      let five = Box::new(5);
      \n
      1.82.0 · Source

      pub fn new_uninit() -> Box<MaybeUninit<T>>

      Available on crate feature advanced and non-no_global_oom_handling only.

      Constructs a new box with uninitialized contents.

      \n
      §Examples
      \n
      let mut five = Box::<u32>::new_uninit();\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
      \n
      Source

      pub fn new_zeroed() -> Box<MaybeUninit<T>>

      🔬This is a nightly-only experimental API. (new_zeroed_alloc)
      Available on crate feature advanced and non-no_global_oom_handling only.

      Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes.

      \n

      See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

      \n
      §Examples
      \n
      #![feature(new_zeroed_alloc)]\n\nlet zero = Box::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
      \n
      1.33.0 · Source

      pub fn pin(x: T) -> Pin<Box<T>>

      Available on crate feature advanced and non-no_global_oom_handling only.

      Constructs a new Pin<Box<T>>. If T does not implement Unpin, then\nx will be pinned in memory and unable to be moved.

      \n

      Constructing and pinning of the Box can also be done in two steps: Box::pin(x)\ndoes the same as Box::into_pin(Box::new(x)). Consider using\ninto_pin if you already have a Box<T>, or if you want to\nconstruct a (pinned) Box in a different way than with Box::new.

      \n
      Source

      pub fn try_new(x: T) -> Result<Box<T>, AllocError>

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced only.

      Allocates memory on the heap then places x into it,\nreturning an error if the allocation fails

      \n

      This doesn’t actually allocate if T is zero-sized.

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nlet five = Box::try_new(5)?;
      \n
      Source

      pub fn try_new_uninit() -> Result<Box<MaybeUninit<T>>, AllocError>

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced only.

      Constructs a new box with uninitialized contents on the heap,\nreturning an error if the allocation fails

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nlet mut five = Box::<u32>::try_new_uninit()?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
      \n
      Source

      pub fn try_new_zeroed() -> Result<Box<MaybeUninit<T>>, AllocError>

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced only.

      Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes on the heap

      \n

      See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nlet zero = Box::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
      \n
      ",0,"iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      Source§

      impl<T> Box<T>

      1.0.0 · Source

      pub fn new(x: T) -> Box<T>

      Available on non-no_global_oom_handling only.

      Allocates memory on the heap and then places x into it.

      \n

      This doesn’t actually allocate if T is zero-sized.

      \n
      §Examples
      \n
      let five = Box::new(5);
      \n
      1.82.0 · Source

      pub fn new_uninit() -> Box<MaybeUninit<T>>

      Available on non-no_global_oom_handling only.

      Constructs a new box with uninitialized contents.

      \n
      §Examples
      \n
      let mut five = Box::<u32>::new_uninit();\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
      \n
      Source

      pub fn new_zeroed() -> Box<MaybeUninit<T>>

      🔬This is a nightly-only experimental API. (new_zeroed_alloc)
      Available on non-no_global_oom_handling only.

      Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes.

      \n

      See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

      \n
      §Examples
      \n
      #![feature(new_zeroed_alloc)]\n\nlet zero = Box::<u32>::new_zeroed();\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
      \n
      1.33.0 · Source

      pub fn pin(x: T) -> Pin<Box<T>>

      Available on non-no_global_oom_handling only.

      Constructs a new Pin<Box<T>>. If T does not implement Unpin, then\nx will be pinned in memory and unable to be moved.

      \n

      Constructing and pinning of the Box can also be done in two steps: Box::pin(x)\ndoes the same as Box::into_pin(Box::new(x)). Consider using\ninto_pin if you already have a Box<T>, or if you want to\nconstruct a (pinned) Box in a different way than with Box::new.

      \n
      Source

      pub fn try_new(x: T) -> Result<Box<T>, AllocError>

      🔬This is a nightly-only experimental API. (allocator_api)

      Allocates memory on the heap then places x into it,\nreturning an error if the allocation fails

      \n

      This doesn’t actually allocate if T is zero-sized.

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nlet five = Box::try_new(5)?;
      \n
      Source

      pub fn try_new_uninit() -> Result<Box<MaybeUninit<T>>, AllocError>

      🔬This is a nightly-only experimental API. (allocator_api)

      Constructs a new box with uninitialized contents on the heap,\nreturning an error if the allocation fails

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nlet mut five = Box::<u32>::try_new_uninit()?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
      \n
      Source

      pub fn try_new_zeroed() -> Result<Box<MaybeUninit<T>>, AllocError>

      🔬This is a nightly-only experimental API. (allocator_api)

      Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes on the heap

      \n

      See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nlet zero = Box::<u32>::try_new_zeroed()?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
      \n
      ",0,"iced::widget::text::StyleFn"],["
      Source§

      impl<T, A> Box<T, A>
      where\n A: Allocator,\n T: ?Sized,

      Source

      pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Box<T, A>

      🔬This is a nightly-only experimental API. (allocator_api)

      Constructs a box from a raw pointer in the given allocator.

      \n

      After calling this function, the raw pointer is owned by the\nresulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

      \n
      §Safety
      \n

      This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

      \n
      §Examples
      \n

      Recreate a Box which was previously converted to a raw pointer\nusing Box::into_raw_with_allocator:

      \n\n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(5, System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nlet x = unsafe { Box::from_raw_in(ptr, alloc) };
      \n

      Manually create a Box from scratch by using the system allocator:

      \n\n
      #![feature(allocator_api, slice_ptr_get)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nunsafe {\n    let ptr = System.allocate(Layout::new::<i32>())?.as_mut_ptr() as *mut i32;\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `ptr`, though for this\n    // simple example `*ptr = 5` would have worked as well.\n    ptr.write(5);\n    let x = Box::from_raw_in(ptr, System);\n}
      \n
      Source

      pub const unsafe fn from_non_null_in(raw: NonNull<T>, alloc: A) -> Box<T, A>

      🔬This is a nightly-only experimental API. (allocator_api)

      Constructs a box from a NonNull pointer in the given allocator.

      \n

      After calling this function, the NonNull pointer is owned by\nthe resulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

      \n
      §Safety
      \n

      This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

      \n
      §Examples
      \n

      Recreate a Box which was previously converted to a NonNull pointer\nusing Box::into_non_null_with_allocator:

      \n\n
      #![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(5, System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nlet x = unsafe { Box::from_non_null_in(non_null, alloc) };
      \n

      Manually create a Box from scratch by using the system allocator:

      \n\n
      #![feature(allocator_api, box_vec_non_null, slice_ptr_get)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nunsafe {\n    let non_null = System.allocate(Layout::new::<i32>())?.cast::<i32>();\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `non_null`.\n    non_null.write(5);\n    let x = Box::from_non_null_in(non_null, System);\n}
      \n
      1.4.0 · Source

      pub fn into_raw(b: Box<T, A>) -> *mut T

      Consumes the Box, returning a wrapped raw pointer.

      \n

      The pointer will be properly aligned and non-null.

      \n

      After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the raw pointer back into a Box with the\nBox::from_raw function, allowing the Box destructor to perform\nthe cleanup.

      \n

      Note: this is an associated function, which means that you have\nto call it as Box::into_raw(b) instead of b.into_raw(). This\nis so that there is no conflict with a method on the inner type.

      \n
      §Examples
      \n

      Converting the raw pointer back into a Box with Box::from_raw\nfor automatic cleanup:

      \n\n
      let x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nlet x = unsafe { Box::from_raw(ptr) };
      \n

      Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

      \n\n
      use std::alloc::{dealloc, Layout};\nuse std::ptr;\n\nlet x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nunsafe {\n    ptr::drop_in_place(ptr);\n    dealloc(ptr as *mut u8, Layout::new::<String>());\n}
      \n

      Note: This is equivalent to the following:

      \n\n
      let x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nunsafe {\n    drop(Box::from_raw(ptr));\n}
      \n
      Source

      pub fn into_non_null(b: Box<T, A>) -> NonNull<T>

      🔬This is a nightly-only experimental API. (box_vec_non_null)

      Consumes the Box, returning a wrapped NonNull pointer.

      \n

      The pointer will be properly aligned.

      \n

      After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the NonNull pointer back into a Box with the\nBox::from_non_null function, allowing the Box destructor to\nperform the cleanup.

      \n

      Note: this is an associated function, which means that you have\nto call it as Box::into_non_null(b) instead of b.into_non_null().\nThis is so that there is no conflict with a method on the inner type.

      \n
      §Examples
      \n

      Converting the NonNull pointer back into a Box with Box::from_non_null\nfor automatic cleanup:

      \n\n
      #![feature(box_vec_non_null)]\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nlet x = unsafe { Box::from_non_null(non_null) };
      \n

      Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

      \n\n
      #![feature(box_vec_non_null)]\n\nuse std::alloc::{dealloc, Layout};\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nunsafe {\n    non_null.drop_in_place();\n    dealloc(non_null.as_ptr().cast::<u8>(), Layout::new::<String>());\n}
      \n

      Note: This is equivalent to the following:

      \n\n
      #![feature(box_vec_non_null)]\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nunsafe {\n    drop(Box::from_non_null(non_null));\n}
      \n
      Source

      pub fn into_raw_with_allocator(b: Box<T, A>) -> (*mut T, A)

      🔬This is a nightly-only experimental API. (allocator_api)

      Consumes the Box, returning a wrapped raw pointer and the allocator.

      \n

      The pointer will be properly aligned and non-null.

      \n

      After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the raw pointer back into a Box with the\nBox::from_raw_in function, allowing the Box destructor to perform\nthe cleanup.

      \n

      Note: this is an associated function, which means that you have\nto call it as Box::into_raw_with_allocator(b) instead of b.into_raw_with_allocator(). This\nis so that there is no conflict with a method on the inner type.

      \n
      §Examples
      \n

      Converting the raw pointer back into a Box with Box::from_raw_in\nfor automatic cleanup:

      \n\n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nlet x = unsafe { Box::from_raw_in(ptr, alloc) };
      \n

      Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

      \n\n
      #![feature(allocator_api)]\n\nuse std::alloc::{Allocator, Layout, System};\nuse std::ptr::{self, NonNull};\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nunsafe {\n    ptr::drop_in_place(ptr);\n    let non_null = NonNull::new_unchecked(ptr);\n    alloc.deallocate(non_null.cast(), Layout::new::<String>());\n}
      \n
      Source

      pub fn into_non_null_with_allocator(b: Box<T, A>) -> (NonNull<T>, A)

      🔬This is a nightly-only experimental API. (allocator_api)

      Consumes the Box, returning a wrapped NonNull pointer and the allocator.

      \n

      The pointer will be properly aligned.

      \n

      After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the NonNull pointer back into a Box with the\nBox::from_non_null_in function, allowing the Box destructor to\nperform the cleanup.

      \n

      Note: this is an associated function, which means that you have\nto call it as Box::into_non_null_with_allocator(b) instead of\nb.into_non_null_with_allocator(). This is so that there is no\nconflict with a method on the inner type.

      \n
      §Examples
      \n

      Converting the NonNull pointer back into a Box with\nBox::from_non_null_in for automatic cleanup:

      \n\n
      #![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nlet x = unsafe { Box::from_non_null_in(non_null, alloc) };
      \n

      Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

      \n\n
      #![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nunsafe {\n    non_null.drop_in_place();\n    alloc.deallocate(non_null.cast::<u8>(), Layout::new::<String>());\n}
      \n
      Source

      pub fn as_mut_ptr(b: &mut Box<T, A>) -> *mut T

      🔬This is a nightly-only experimental API. (box_as_ptr)

      Returns a raw mutable pointer to the Box’s contents.

      \n

      The caller must ensure that the Box outlives the pointer this\nfunction returns, or else it will end up dangling.

      \n

      This method guarantees that for the purpose of the aliasing model, this method\ndoes not materialize a reference to the underlying memory, and thus the returned pointer\nwill remain valid when mixed with other calls to as_ptr and as_mut_ptr.\nNote that calling other methods that materialize references to the memory\nmay still invalidate this pointer.\nSee the example below for how this guarantee can be used.

      \n
      §Examples
      \n

      Due to the aliasing guarantee, the following code is legal:

      \n\n
      #![feature(box_as_ptr)]\n\nunsafe {\n    let mut b = Box::new(0);\n    let ptr1 = Box::as_mut_ptr(&mut b);\n    ptr1.write(1);\n    let ptr2 = Box::as_mut_ptr(&mut b);\n    ptr2.write(2);\n    // Notably, the write to `ptr2` did *not* invalidate `ptr1`:\n    ptr1.write(3);\n}
      \n
      Source

      pub fn as_ptr(b: &Box<T, A>) -> *const T

      🔬This is a nightly-only experimental API. (box_as_ptr)

      Returns a raw pointer to the Box’s contents.

      \n

      The caller must ensure that the Box outlives the pointer this\nfunction returns, or else it will end up dangling.

      \n

      The caller must also ensure that the memory the pointer (non-transitively) points to\nis never written to (except inside an UnsafeCell) using this pointer or any pointer\nderived from it. If you need to mutate the contents of the Box, use as_mut_ptr.

      \n

      This method guarantees that for the purpose of the aliasing model, this method\ndoes not materialize a reference to the underlying memory, and thus the returned pointer\nwill remain valid when mixed with other calls to as_ptr and as_mut_ptr.\nNote that calling other methods that materialize mutable references to the memory,\nas well as writing to this memory, may still invalidate this pointer.\nSee the example below for how this guarantee can be used.

      \n
      §Examples
      \n

      Due to the aliasing guarantee, the following code is legal:

      \n\n
      #![feature(box_as_ptr)]\n\nunsafe {\n    let mut v = Box::new(0);\n    let ptr1 = Box::as_ptr(&v);\n    let ptr2 = Box::as_mut_ptr(&mut v);\n    let _val = ptr2.read();\n    // No write to this memory has happened yet, so `ptr1` is still valid.\n    let _val = ptr1.read();\n    // However, once we do a write...\n    ptr2.write(1);\n    // ... `ptr1` is no longer valid.\n    // This would be UB: let _val = ptr1.read();\n}
      \n
      Source

      pub const fn allocator(b: &Box<T, A>) -> &A

      🔬This is a nightly-only experimental API. (allocator_api)

      Returns a reference to the underlying allocator.

      \n

      Note: this is an associated function, which means that you have\nto call it as Box::allocator(&b) instead of b.allocator(). This\nis so that there is no conflict with a method on the inner type.

      \n
      1.26.0 · Source

      pub fn leak<'a>(b: Box<T, A>) -> &'a mut T
      where\n A: 'a,

      Consumes and leaks the Box, returning a mutable reference,\n&'a mut T.

      \n

      Note that the type T must outlive the chosen lifetime 'a. If the type\nhas only static references, or none at all, then this may be chosen to be\n'static.

      \n

      This function is mainly useful for data that lives for the remainder of\nthe program’s life. Dropping the returned reference will cause a memory\nleak. If this is not acceptable, the reference should first be wrapped\nwith the Box::from_raw function producing a Box. This Box can\nthen be dropped which will properly destroy T and release the\nallocated memory.

      \n

      Note: this is an associated function, which means that you have\nto call it as Box::leak(b) instead of b.leak(). This\nis so that there is no conflict with a method on the inner type.

      \n
      §Examples
      \n

      Simple usage:

      \n\n
      let x = Box::new(41);\nlet static_ref: &'static mut usize = Box::leak(x);\n*static_ref += 1;\nassert_eq!(*static_ref, 42);
      \n

      Unsized data:

      \n\n
      let x = vec![1, 2, 3].into_boxed_slice();\nlet static_ref = Box::leak(x);\nstatic_ref[0] = 4;\nassert_eq!(*static_ref, [4, 2, 3]);
      \n
      1.63.0 (const: unstable) · Source

      pub fn into_pin(boxed: Box<T, A>) -> Pin<Box<T, A>>
      where\n A: 'static,

      Converts a Box<T> into a Pin<Box<T>>. If T does not implement Unpin, then\n*boxed will be pinned in memory and unable to be moved.

      \n

      This conversion does not allocate on the heap and happens in place.

      \n

      This is also available via From.

      \n

      Constructing and pinning a Box with Box::into_pin(Box::new(x))\ncan also be written more concisely using Box::pin(x).\nThis into_pin method is useful if you already have a Box<T>, or you are\nconstructing a (pinned) Box in a different way than with Box::new.

      \n
      §Notes
      \n

      It’s not recommended that crates add an impl like From<Box<T>> for Pin<T>,\nas it’ll introduce an ambiguity when calling Pin::from.\nA demonstration of such a poor impl is shown below.

      \n\n
      struct Foo; // A type defined in this crate.\nimpl From<Box<()>> for Pin<Foo> {\n    fn from(_: Box<()>) -> Pin<Foo> {\n        Pin::new(Foo)\n    }\n}\n\nlet foo = Box::new(());\nlet bar = Pin::from(foo);
      \n
      ",0,"iced::widget::text::StyleFn"],["
      Source§

      impl<T, A> Box<T, A>
      where\n A: Allocator,\n T: ?Sized,

      Source

      pub const unsafe fn from_raw_in(raw: *mut T, alloc: A) -> Box<T, A>

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced only.

      Constructs a box from a raw pointer in the given allocator.

      \n

      After calling this function, the raw pointer is owned by the\nresulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

      \n
      §Safety
      \n

      This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

      \n
      §Examples
      \n

      Recreate a Box which was previously converted to a raw pointer\nusing Box::into_raw_with_allocator:

      \n\n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(5, System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nlet x = unsafe { Box::from_raw_in(ptr, alloc) };
      \n

      Manually create a Box from scratch by using the system allocator:

      \n\n
      #![feature(allocator_api, slice_ptr_get)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nunsafe {\n    let ptr = System.allocate(Layout::new::<i32>())?.as_mut_ptr() as *mut i32;\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `ptr`, though for this\n    // simple example `*ptr = 5` would have worked as well.\n    ptr.write(5);\n    let x = Box::from_raw_in(ptr, System);\n}
      \n
      Source

      pub const unsafe fn from_non_null_in(raw: NonNull<T>, alloc: A) -> Box<T, A>

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced only.

      Constructs a box from a NonNull pointer in the given allocator.

      \n

      After calling this function, the NonNull pointer is owned by\nthe resulting Box. Specifically, the Box destructor will call\nthe destructor of T and free the allocated memory. For this\nto be safe, the memory must have been allocated in accordance\nwith the memory layout used by Box .

      \n
      §Safety
      \n

      This function is unsafe because improper use may lead to\nmemory problems. For example, a double-free may occur if the\nfunction is called twice on the same raw pointer.

      \n
      §Examples
      \n

      Recreate a Box which was previously converted to a NonNull pointer\nusing Box::into_non_null_with_allocator:

      \n\n
      #![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(5, System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nlet x = unsafe { Box::from_non_null_in(non_null, alloc) };
      \n

      Manually create a Box from scratch by using the system allocator:

      \n\n
      #![feature(allocator_api, box_vec_non_null, slice_ptr_get)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nunsafe {\n    let non_null = System.allocate(Layout::new::<i32>())?.cast::<i32>();\n    // In general .write is required to avoid attempting to destruct\n    // the (uninitialized) previous contents of `non_null`.\n    non_null.write(5);\n    let x = Box::from_non_null_in(non_null, System);\n}
      \n
      1.4.0 · Source

      pub fn into_raw(b: Box<T, A>) -> *mut T

      Available on crate feature advanced only.

      Consumes the Box, returning a wrapped raw pointer.

      \n

      The pointer will be properly aligned and non-null.

      \n

      After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the raw pointer back into a Box with the\nBox::from_raw function, allowing the Box destructor to perform\nthe cleanup.

      \n

      Note: this is an associated function, which means that you have\nto call it as Box::into_raw(b) instead of b.into_raw(). This\nis so that there is no conflict with a method on the inner type.

      \n
      §Examples
      \n

      Converting the raw pointer back into a Box with Box::from_raw\nfor automatic cleanup:

      \n\n
      let x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nlet x = unsafe { Box::from_raw(ptr) };
      \n

      Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

      \n\n
      use std::alloc::{dealloc, Layout};\nuse std::ptr;\n\nlet x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nunsafe {\n    ptr::drop_in_place(ptr);\n    dealloc(ptr as *mut u8, Layout::new::<String>());\n}
      \n

      Note: This is equivalent to the following:

      \n\n
      let x = Box::new(String::from(\"Hello\"));\nlet ptr = Box::into_raw(x);\nunsafe {\n    drop(Box::from_raw(ptr));\n}
      \n
      Source

      pub fn into_non_null(b: Box<T, A>) -> NonNull<T>

      🔬This is a nightly-only experimental API. (box_vec_non_null)
      Available on crate feature advanced only.

      Consumes the Box, returning a wrapped NonNull pointer.

      \n

      The pointer will be properly aligned.

      \n

      After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the NonNull pointer back into a Box with the\nBox::from_non_null function, allowing the Box destructor to\nperform the cleanup.

      \n

      Note: this is an associated function, which means that you have\nto call it as Box::into_non_null(b) instead of b.into_non_null().\nThis is so that there is no conflict with a method on the inner type.

      \n
      §Examples
      \n

      Converting the NonNull pointer back into a Box with Box::from_non_null\nfor automatic cleanup:

      \n\n
      #![feature(box_vec_non_null)]\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nlet x = unsafe { Box::from_non_null(non_null) };
      \n

      Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

      \n\n
      #![feature(box_vec_non_null)]\n\nuse std::alloc::{dealloc, Layout};\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nunsafe {\n    non_null.drop_in_place();\n    dealloc(non_null.as_ptr().cast::<u8>(), Layout::new::<String>());\n}
      \n

      Note: This is equivalent to the following:

      \n\n
      #![feature(box_vec_non_null)]\n\nlet x = Box::new(String::from(\"Hello\"));\nlet non_null = Box::into_non_null(x);\nunsafe {\n    drop(Box::from_non_null(non_null));\n}
      \n
      Source

      pub fn into_raw_with_allocator(b: Box<T, A>) -> (*mut T, A)

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced only.

      Consumes the Box, returning a wrapped raw pointer and the allocator.

      \n

      The pointer will be properly aligned and non-null.

      \n

      After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the raw pointer back into a Box with the\nBox::from_raw_in function, allowing the Box destructor to perform\nthe cleanup.

      \n

      Note: this is an associated function, which means that you have\nto call it as Box::into_raw_with_allocator(b) instead of b.into_raw_with_allocator(). This\nis so that there is no conflict with a method on the inner type.

      \n
      §Examples
      \n

      Converting the raw pointer back into a Box with Box::from_raw_in\nfor automatic cleanup:

      \n\n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nlet x = unsafe { Box::from_raw_in(ptr, alloc) };
      \n

      Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

      \n\n
      #![feature(allocator_api)]\n\nuse std::alloc::{Allocator, Layout, System};\nuse std::ptr::{self, NonNull};\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (ptr, alloc) = Box::into_raw_with_allocator(x);\nunsafe {\n    ptr::drop_in_place(ptr);\n    let non_null = NonNull::new_unchecked(ptr);\n    alloc.deallocate(non_null.cast(), Layout::new::<String>());\n}
      \n
      Source

      pub fn into_non_null_with_allocator(b: Box<T, A>) -> (NonNull<T>, A)

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced only.

      Consumes the Box, returning a wrapped NonNull pointer and the allocator.

      \n

      The pointer will be properly aligned.

      \n

      After calling this function, the caller is responsible for the\nmemory previously managed by the Box. In particular, the\ncaller should properly destroy T and release the memory, taking\ninto account the memory layout used by Box. The easiest way to\ndo this is to convert the NonNull pointer back into a Box with the\nBox::from_non_null_in function, allowing the Box destructor to\nperform the cleanup.

      \n

      Note: this is an associated function, which means that you have\nto call it as Box::into_non_null_with_allocator(b) instead of\nb.into_non_null_with_allocator(). This is so that there is no\nconflict with a method on the inner type.

      \n
      §Examples
      \n

      Converting the NonNull pointer back into a Box with\nBox::from_non_null_in for automatic cleanup:

      \n\n
      #![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::System;\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nlet x = unsafe { Box::from_non_null_in(non_null, alloc) };
      \n

      Manual cleanup by explicitly running the destructor and deallocating\nthe memory:

      \n\n
      #![feature(allocator_api, box_vec_non_null)]\n\nuse std::alloc::{Allocator, Layout, System};\n\nlet x = Box::new_in(String::from(\"Hello\"), System);\nlet (non_null, alloc) = Box::into_non_null_with_allocator(x);\nunsafe {\n    non_null.drop_in_place();\n    alloc.deallocate(non_null.cast::<u8>(), Layout::new::<String>());\n}
      \n
      Source

      pub fn as_mut_ptr(b: &mut Box<T, A>) -> *mut T

      🔬This is a nightly-only experimental API. (box_as_ptr)
      Available on crate feature advanced only.

      Returns a raw mutable pointer to the Box’s contents.

      \n

      The caller must ensure that the Box outlives the pointer this\nfunction returns, or else it will end up dangling.

      \n

      This method guarantees that for the purpose of the aliasing model, this method\ndoes not materialize a reference to the underlying memory, and thus the returned pointer\nwill remain valid when mixed with other calls to as_ptr and as_mut_ptr.\nNote that calling other methods that materialize references to the memory\nmay still invalidate this pointer.\nSee the example below for how this guarantee can be used.

      \n
      §Examples
      \n

      Due to the aliasing guarantee, the following code is legal:

      \n\n
      #![feature(box_as_ptr)]\n\nunsafe {\n    let mut b = Box::new(0);\n    let ptr1 = Box::as_mut_ptr(&mut b);\n    ptr1.write(1);\n    let ptr2 = Box::as_mut_ptr(&mut b);\n    ptr2.write(2);\n    // Notably, the write to `ptr2` did *not* invalidate `ptr1`:\n    ptr1.write(3);\n}
      \n
      Source

      pub fn as_ptr(b: &Box<T, A>) -> *const T

      🔬This is a nightly-only experimental API. (box_as_ptr)
      Available on crate feature advanced only.

      Returns a raw pointer to the Box’s contents.

      \n

      The caller must ensure that the Box outlives the pointer this\nfunction returns, or else it will end up dangling.

      \n

      The caller must also ensure that the memory the pointer (non-transitively) points to\nis never written to (except inside an UnsafeCell) using this pointer or any pointer\nderived from it. If you need to mutate the contents of the Box, use as_mut_ptr.

      \n

      This method guarantees that for the purpose of the aliasing model, this method\ndoes not materialize a reference to the underlying memory, and thus the returned pointer\nwill remain valid when mixed with other calls to as_ptr and as_mut_ptr.\nNote that calling other methods that materialize mutable references to the memory,\nas well as writing to this memory, may still invalidate this pointer.\nSee the example below for how this guarantee can be used.

      \n
      §Examples
      \n

      Due to the aliasing guarantee, the following code is legal:

      \n\n
      #![feature(box_as_ptr)]\n\nunsafe {\n    let mut v = Box::new(0);\n    let ptr1 = Box::as_ptr(&v);\n    let ptr2 = Box::as_mut_ptr(&mut v);\n    let _val = ptr2.read();\n    // No write to this memory has happened yet, so `ptr1` is still valid.\n    let _val = ptr1.read();\n    // However, once we do a write...\n    ptr2.write(1);\n    // ... `ptr1` is no longer valid.\n    // This would be UB: let _val = ptr1.read();\n}
      \n
      Source

      pub const fn allocator(b: &Box<T, A>) -> &A

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced only.

      Returns a reference to the underlying allocator.

      \n

      Note: this is an associated function, which means that you have\nto call it as Box::allocator(&b) instead of b.allocator(). This\nis so that there is no conflict with a method on the inner type.

      \n
      1.26.0 · Source

      pub fn leak<'a>(b: Box<T, A>) -> &'a mut T
      where\n A: 'a,

      Available on crate feature advanced only.

      Consumes and leaks the Box, returning a mutable reference,\n&'a mut T.

      \n

      Note that the type T must outlive the chosen lifetime 'a. If the type\nhas only static references, or none at all, then this may be chosen to be\n'static.

      \n

      This function is mainly useful for data that lives for the remainder of\nthe program’s life. Dropping the returned reference will cause a memory\nleak. If this is not acceptable, the reference should first be wrapped\nwith the Box::from_raw function producing a Box. This Box can\nthen be dropped which will properly destroy T and release the\nallocated memory.

      \n

      Note: this is an associated function, which means that you have\nto call it as Box::leak(b) instead of b.leak(). This\nis so that there is no conflict with a method on the inner type.

      \n
      §Examples
      \n

      Simple usage:

      \n\n
      let x = Box::new(41);\nlet static_ref: &'static mut usize = Box::leak(x);\n*static_ref += 1;\nassert_eq!(*static_ref, 42);
      \n

      Unsized data:

      \n\n
      let x = vec![1, 2, 3].into_boxed_slice();\nlet static_ref = Box::leak(x);\nstatic_ref[0] = 4;\nassert_eq!(*static_ref, [4, 2, 3]);
      \n
      1.63.0 (const: unstable) · Source

      pub fn into_pin(boxed: Box<T, A>) -> Pin<Box<T, A>>
      where\n A: 'static,

      Available on crate feature advanced only.

      Converts a Box<T> into a Pin<Box<T>>. If T does not implement Unpin, then\n*boxed will be pinned in memory and unable to be moved.

      \n

      This conversion does not allocate on the heap and happens in place.

      \n

      This is also available via From.

      \n

      Constructing and pinning a Box with Box::into_pin(Box::new(x))\ncan also be written more concisely using Box::pin(x).\nThis into_pin method is useful if you already have a Box<T>, or you are\nconstructing a (pinned) Box in a different way than with Box::new.

      \n
      §Notes
      \n

      It’s not recommended that crates add an impl like From<Box<T>> for Pin<T>,\nas it’ll introduce an ambiguity when calling Pin::from.\nA demonstration of such a poor impl is shown below.

      \n\n
      struct Foo; // A type defined in this crate.\nimpl From<Box<()>> for Pin<Foo> {\n    fn from(_: Box<()>) -> Pin<Foo> {\n        Pin::new(Foo)\n    }\n}\n\nlet foo = Box::new(());\nlet bar = Pin::from(foo);
      \n
      ",0,"iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      Source§

      impl<T, A> Box<T, A>
      where\n A: Allocator,

      Source

      pub fn new_in(x: T, alloc: A) -> Box<T, A>
      where\n A: Allocator,

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced and non-no_global_oom_handling only.

      Allocates memory in the given allocator then places x into it.

      \n

      This doesn’t actually allocate if T is zero-sized.

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet five = Box::new_in(5, System);
      \n
      Source

      pub fn try_new_in(x: T, alloc: A) -> Result<Box<T, A>, AllocError>
      where\n A: Allocator,

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced only.

      Allocates memory in the given allocator then places x into it,\nreturning an error if the allocation fails

      \n

      This doesn’t actually allocate if T is zero-sized.

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet five = Box::try_new_in(5, System)?;
      \n
      Source

      pub fn new_uninit_in(alloc: A) -> Box<MaybeUninit<T>, A>
      where\n A: Allocator,

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced and non-no_global_oom_handling only.

      Constructs a new box with uninitialized contents in the provided allocator.

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet mut five = Box::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
      \n
      Source

      pub fn try_new_uninit_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError>
      where\n A: Allocator,

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced only.

      Constructs a new box with uninitialized contents in the provided allocator,\nreturning an error if the allocation fails

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet mut five = Box::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
      \n
      Source

      pub fn new_zeroed_in(alloc: A) -> Box<MaybeUninit<T>, A>
      where\n A: Allocator,

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced and non-no_global_oom_handling only.

      Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes in the provided allocator.

      \n

      See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet zero = Box::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
      \n
      Source

      pub fn try_new_zeroed_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError>
      where\n A: Allocator,

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced only.

      Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes in the provided allocator,\nreturning an error if the allocation fails,

      \n

      See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet zero = Box::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
      \n
      Source

      pub fn pin_in(x: T, alloc: A) -> Pin<Box<T, A>>
      where\n A: 'static + Allocator,

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on crate feature advanced and non-no_global_oom_handling only.

      Constructs a new Pin<Box<T, A>>. If T does not implement Unpin, then\nx will be pinned in memory and unable to be moved.

      \n

      Constructing and pinning of the Box can also be done in two steps: Box::pin_in(x, alloc)\ndoes the same as Box::into_pin(Box::new_in(x, alloc)). Consider using\ninto_pin if you already have a Box<T, A>, or if you want to\nconstruct a (pinned) Box in a different way than with Box::new_in.

      \n
      Source

      pub fn into_boxed_slice(boxed: Box<T, A>) -> Box<[T], A>

      🔬This is a nightly-only experimental API. (box_into_boxed_slice)
      Available on crate feature advanced only.

      Converts a Box<T> into a Box<[T]>

      \n

      This conversion does not allocate on the heap and happens in place.

      \n
      Source

      pub fn into_inner(boxed: Box<T, A>) -> T

      🔬This is a nightly-only experimental API. (box_into_inner)
      Available on crate feature advanced only.

      Consumes the Box, returning the wrapped value.

      \n
      §Examples
      \n
      #![feature(box_into_inner)]\n\nlet c = Box::new(5);\n\nassert_eq!(Box::into_inner(c), 5);
      \n
      ",0,"iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      Source§

      impl<T, A> Box<T, A>
      where\n A: Allocator,

      Source

      pub fn new_in(x: T, alloc: A) -> Box<T, A>
      where\n A: Allocator,

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on non-no_global_oom_handling only.

      Allocates memory in the given allocator then places x into it.

      \n

      This doesn’t actually allocate if T is zero-sized.

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet five = Box::new_in(5, System);
      \n
      Source

      pub fn try_new_in(x: T, alloc: A) -> Result<Box<T, A>, AllocError>
      where\n A: Allocator,

      🔬This is a nightly-only experimental API. (allocator_api)

      Allocates memory in the given allocator then places x into it,\nreturning an error if the allocation fails

      \n

      This doesn’t actually allocate if T is zero-sized.

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet five = Box::try_new_in(5, System)?;
      \n
      Source

      pub fn new_uninit_in(alloc: A) -> Box<MaybeUninit<T>, A>
      where\n A: Allocator,

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on non-no_global_oom_handling only.

      Constructs a new box with uninitialized contents in the provided allocator.

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet mut five = Box::<u32, _>::new_uninit_in(System);\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5)
      \n
      Source

      pub fn try_new_uninit_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError>
      where\n A: Allocator,

      🔬This is a nightly-only experimental API. (allocator_api)

      Constructs a new box with uninitialized contents in the provided allocator,\nreturning an error if the allocation fails

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet mut five = Box::<u32, _>::try_new_uninit_in(System)?;\n\nlet five = unsafe {\n    // Deferred initialization:\n    five.as_mut_ptr().write(5);\n\n    five.assume_init()\n};\n\nassert_eq!(*five, 5);
      \n
      Source

      pub fn new_zeroed_in(alloc: A) -> Box<MaybeUninit<T>, A>
      where\n A: Allocator,

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on non-no_global_oom_handling only.

      Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes in the provided allocator.

      \n

      See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet zero = Box::<u32, _>::new_zeroed_in(System);\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0)
      \n
      Source

      pub fn try_new_zeroed_in(alloc: A) -> Result<Box<MaybeUninit<T>, A>, AllocError>
      where\n A: Allocator,

      🔬This is a nightly-only experimental API. (allocator_api)

      Constructs a new Box with uninitialized contents, with the memory\nbeing filled with 0 bytes in the provided allocator,\nreturning an error if the allocation fails,

      \n

      See MaybeUninit::zeroed for examples of correct and incorrect usage\nof this method.

      \n
      §Examples
      \n
      #![feature(allocator_api)]\n\nuse std::alloc::System;\n\nlet zero = Box::<u32, _>::try_new_zeroed_in(System)?;\nlet zero = unsafe { zero.assume_init() };\n\nassert_eq!(*zero, 0);
      \n
      Source

      pub fn pin_in(x: T, alloc: A) -> Pin<Box<T, A>>
      where\n A: 'static + Allocator,

      🔬This is a nightly-only experimental API. (allocator_api)
      Available on non-no_global_oom_handling only.

      Constructs a new Pin<Box<T, A>>. If T does not implement Unpin, then\nx will be pinned in memory and unable to be moved.

      \n

      Constructing and pinning of the Box can also be done in two steps: Box::pin_in(x, alloc)\ndoes the same as Box::into_pin(Box::new_in(x, alloc)). Consider using\ninto_pin if you already have a Box<T, A>, or if you want to\nconstruct a (pinned) Box in a different way than with Box::new_in.

      \n
      Source

      pub fn into_boxed_slice(boxed: Box<T, A>) -> Box<[T], A>

      🔬This is a nightly-only experimental API. (box_into_boxed_slice)

      Converts a Box<T> into a Box<[T]>

      \n

      This conversion does not allocate on the heap and happens in place.

      \n
      Source

      pub fn into_inner(boxed: Box<T, A>) -> T

      🔬This is a nightly-only experimental API. (box_into_inner)

      Consumes the Box, returning the wrapped value.

      \n
      §Examples
      \n
      #![feature(box_into_inner)]\n\nlet c = Box::new(5);\n\nassert_eq!(Box::into_inner(c), 5);
      \n
      ",0,"iced::widget::text::StyleFn"],["
      §

      impl<T> Buf for Box<T>
      where\n T: Buf + ?Sized,

      §

      fn remaining(&self) -> usize

      Returns the number of bytes between the current position and the end of\nthe buffer. Read more
      §

      fn chunk(&self) -> &[u8]

      Returns a slice starting at the current position and of length between 0\nand Buf::remaining(). Note that this can return a shorter slice (this\nallows non-continuous internal representation). Read more
      §

      fn chunks_vectored<'b>(&'b self, dst: &mut [IoSlice<'b>]) -> usize

      Available on crate feature std only.
      Fills dst with potentially multiple slices starting at self’s\ncurrent position. Read more
      §

      fn advance(&mut self, cnt: usize)

      Advance the internal cursor of the Buf Read more
      §

      fn has_remaining(&self) -> bool

      Returns true if there are any more bytes to consume Read more
      §

      fn copy_to_slice(&mut self, dst: &mut [u8])

      Copies bytes from self into dst. Read more
      §

      fn get_u8(&mut self) -> u8

      Gets an unsigned 8 bit integer from self. Read more
      §

      fn get_i8(&mut self) -> i8

      Gets a signed 8 bit integer from self. Read more
      §

      fn get_u16(&mut self) -> u16

      Gets an unsigned 16 bit integer from self in big-endian byte order. Read more
      §

      fn get_u16_le(&mut self) -> u16

      Gets an unsigned 16 bit integer from self in little-endian byte order. Read more
      §

      fn get_u16_ne(&mut self) -> u16

      Gets an unsigned 16 bit integer from self in native-endian byte order. Read more
      §

      fn get_i16(&mut self) -> i16

      Gets a signed 16 bit integer from self in big-endian byte order. Read more
      §

      fn get_i16_le(&mut self) -> i16

      Gets a signed 16 bit integer from self in little-endian byte order. Read more
      §

      fn get_i16_ne(&mut self) -> i16

      Gets a signed 16 bit integer from self in native-endian byte order. Read more
      §

      fn get_u32(&mut self) -> u32

      Gets an unsigned 32 bit integer from self in the big-endian byte order. Read more
      §

      fn get_u32_le(&mut self) -> u32

      Gets an unsigned 32 bit integer from self in the little-endian byte order. Read more
      §

      fn get_u32_ne(&mut self) -> u32

      Gets an unsigned 32 bit integer from self in native-endian byte order. Read more
      §

      fn get_i32(&mut self) -> i32

      Gets a signed 32 bit integer from self in big-endian byte order. Read more
      §

      fn get_i32_le(&mut self) -> i32

      Gets a signed 32 bit integer from self in little-endian byte order. Read more
      §

      fn get_i32_ne(&mut self) -> i32

      Gets a signed 32 bit integer from self in native-endian byte order. Read more
      §

      fn get_u64(&mut self) -> u64

      Gets an unsigned 64 bit integer from self in big-endian byte order. Read more
      §

      fn get_u64_le(&mut self) -> u64

      Gets an unsigned 64 bit integer from self in little-endian byte order. Read more
      §

      fn get_u64_ne(&mut self) -> u64

      Gets an unsigned 64 bit integer from self in native-endian byte order. Read more
      §

      fn get_i64(&mut self) -> i64

      Gets a signed 64 bit integer from self in big-endian byte order. Read more
      §

      fn get_i64_le(&mut self) -> i64

      Gets a signed 64 bit integer from self in little-endian byte order. Read more
      §

      fn get_i64_ne(&mut self) -> i64

      Gets a signed 64 bit integer from self in native-endian byte order. Read more
      §

      fn get_uint(&mut self, nbytes: usize) -> u64

      Gets an unsigned n-byte integer from self in big-endian byte order. Read more
      §

      fn get_uint_le(&mut self, nbytes: usize) -> u64

      Gets an unsigned n-byte integer from self in little-endian byte order. Read more
      §

      fn get_uint_ne(&mut self, nbytes: usize) -> u64

      Gets an unsigned n-byte integer from self in native-endian byte order. Read more
      §

      fn get_int(&mut self, nbytes: usize) -> i64

      Gets a signed n-byte integer from self in big-endian byte order. Read more
      §

      fn get_int_le(&mut self, nbytes: usize) -> i64

      Gets a signed n-byte integer from self in little-endian byte order. Read more
      §

      fn get_int_ne(&mut self, nbytes: usize) -> i64

      Gets a signed n-byte integer from self in native-endian byte order. Read more
      §

      fn copy_to_bytes(&mut self, len: usize) -> Bytes

      Consumes len bytes inside self and returns new instance of Bytes\nwith this data. Read more
      §

      fn get_u128(&mut self) -> u128

      Gets an unsigned 128 bit integer from self in big-endian byte order. Read more
      §

      fn get_u128_le(&mut self) -> u128

      Gets an unsigned 128 bit integer from self in little-endian byte order. Read more
      §

      fn get_u128_ne(&mut self) -> u128

      Gets an unsigned 128 bit integer from self in native-endian byte order. Read more
      §

      fn get_i128(&mut self) -> i128

      Gets a signed 128 bit integer from self in big-endian byte order. Read more
      §

      fn get_i128_le(&mut self) -> i128

      Gets a signed 128 bit integer from self in little-endian byte order. Read more
      §

      fn get_i128_ne(&mut self) -> i128

      Gets a signed 128 bit integer from self in native-endian byte order. Read more
      §

      fn get_f32(&mut self) -> f32

      Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in big-endian byte order. Read more
      §

      fn get_f32_le(&mut self) -> f32

      Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in little-endian byte order. Read more
      §

      fn get_f32_ne(&mut self) -> f32

      Gets an IEEE754 single-precision (4 bytes) floating point number from\nself in native-endian byte order. Read more
      §

      fn get_f64(&mut self) -> f64

      Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in big-endian byte order. Read more
      §

      fn get_f64_le(&mut self) -> f64

      Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in little-endian byte order. Read more
      §

      fn get_f64_ne(&mut self) -> f64

      Gets an IEEE754 double-precision (8 bytes) floating point number from\nself in native-endian byte order. Read more
      §

      fn take(self, limit: usize) -> Take<Self>
      where\n Self: Sized,

      Creates an adaptor which will read at most limit bytes from self. Read more
      §

      fn chain<U>(self, next: U) -> Chain<Self, U>
      where\n U: Buf,\n Self: Sized,

      Creates an adaptor which will chain this buffer with another. Read more
      §

      fn reader(self) -> Reader<Self>
      where\n Self: Sized,

      Available on crate feature std only.
      Creates an adaptor which implements the Read trait for self. Read more
      ","Buf","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<T> BufMut for Box<T>
      where\n T: BufMut + ?Sized,

      §

      fn remaining_mut(&self) -> usize

      Returns the number of bytes that can be written from the current\nposition until the end of the buffer is reached. Read more
      §

      fn chunk_mut(&mut self) -> &mut UninitSlice

      Returns a mutable slice starting at the current BufMut position and of\nlength between 0 and BufMut::remaining_mut(). Note that this can be shorter than the\nwhole remainder of the buffer (this allows non-continuous implementation). Read more
      §

      unsafe fn advance_mut(&mut self, cnt: usize)

      Advance the internal cursor of the BufMut Read more
      §

      fn put_slice(&mut self, src: &[u8])

      Transfer bytes into self from src and advance the cursor by the\nnumber of bytes written. Read more
      §

      fn put_u8(&mut self, n: u8)

      Writes an unsigned 8 bit integer to self. Read more
      §

      fn put_i8(&mut self, n: i8)

      Writes a signed 8 bit integer to self. Read more
      §

      fn put_u16(&mut self, n: u16)

      Writes an unsigned 16 bit integer to self in big-endian byte order. Read more
      §

      fn put_u16_le(&mut self, n: u16)

      Writes an unsigned 16 bit integer to self in little-endian byte order. Read more
      §

      fn put_u16_ne(&mut self, n: u16)

      Writes an unsigned 16 bit integer to self in native-endian byte order. Read more
      §

      fn put_i16(&mut self, n: i16)

      Writes a signed 16 bit integer to self in big-endian byte order. Read more
      §

      fn put_i16_le(&mut self, n: i16)

      Writes a signed 16 bit integer to self in little-endian byte order. Read more
      §

      fn put_i16_ne(&mut self, n: i16)

      Writes a signed 16 bit integer to self in native-endian byte order. Read more
      §

      fn put_u32(&mut self, n: u32)

      Writes an unsigned 32 bit integer to self in big-endian byte order. Read more
      §

      fn put_u32_le(&mut self, n: u32)

      Writes an unsigned 32 bit integer to self in little-endian byte order. Read more
      §

      fn put_u32_ne(&mut self, n: u32)

      Writes an unsigned 32 bit integer to self in native-endian byte order. Read more
      §

      fn put_i32(&mut self, n: i32)

      Writes a signed 32 bit integer to self in big-endian byte order. Read more
      §

      fn put_i32_le(&mut self, n: i32)

      Writes a signed 32 bit integer to self in little-endian byte order. Read more
      §

      fn put_i32_ne(&mut self, n: i32)

      Writes a signed 32 bit integer to self in native-endian byte order. Read more
      §

      fn put_u64(&mut self, n: u64)

      Writes an unsigned 64 bit integer to self in the big-endian byte order. Read more
      §

      fn put_u64_le(&mut self, n: u64)

      Writes an unsigned 64 bit integer to self in little-endian byte order. Read more
      §

      fn put_u64_ne(&mut self, n: u64)

      Writes an unsigned 64 bit integer to self in native-endian byte order. Read more
      §

      fn put_i64(&mut self, n: i64)

      Writes a signed 64 bit integer to self in the big-endian byte order. Read more
      §

      fn put_i64_le(&mut self, n: i64)

      Writes a signed 64 bit integer to self in little-endian byte order. Read more
      §

      fn put_i64_ne(&mut self, n: i64)

      Writes a signed 64 bit integer to self in native-endian byte order. Read more
      §

      fn has_remaining_mut(&self) -> bool

      Returns true if there is space in self for more bytes. Read more
      §

      fn put<T>(&mut self, src: T)
      where\n T: Buf,\n Self: Sized,

      Transfer bytes into self from src and advance the cursor by the\nnumber of bytes written. Read more
      §

      fn put_bytes(&mut self, val: u8, cnt: usize)

      Put cnt bytes val into self. Read more
      §

      fn put_u128(&mut self, n: u128)

      Writes an unsigned 128 bit integer to self in the big-endian byte order. Read more
      §

      fn put_u128_le(&mut self, n: u128)

      Writes an unsigned 128 bit integer to self in little-endian byte order. Read more
      §

      fn put_u128_ne(&mut self, n: u128)

      Writes an unsigned 128 bit integer to self in native-endian byte order. Read more
      §

      fn put_i128(&mut self, n: i128)

      Writes a signed 128 bit integer to self in the big-endian byte order. Read more
      §

      fn put_i128_le(&mut self, n: i128)

      Writes a signed 128 bit integer to self in little-endian byte order. Read more
      §

      fn put_i128_ne(&mut self, n: i128)

      Writes a signed 128 bit integer to self in native-endian byte order. Read more
      §

      fn put_uint(&mut self, n: u64, nbytes: usize)

      Writes an unsigned n-byte integer to self in big-endian byte order. Read more
      §

      fn put_uint_le(&mut self, n: u64, nbytes: usize)

      Writes an unsigned n-byte integer to self in the little-endian byte order. Read more
      §

      fn put_uint_ne(&mut self, n: u64, nbytes: usize)

      Writes an unsigned n-byte integer to self in the native-endian byte order. Read more
      §

      fn put_int(&mut self, n: i64, nbytes: usize)

      Writes low nbytes of a signed integer to self in big-endian byte order. Read more
      §

      fn put_int_le(&mut self, n: i64, nbytes: usize)

      Writes low nbytes of a signed integer to self in little-endian byte order. Read more
      §

      fn put_int_ne(&mut self, n: i64, nbytes: usize)

      Writes low nbytes of a signed integer to self in native-endian byte order. Read more
      §

      fn put_f32(&mut self, n: f32)

      Writes an IEEE754 single-precision (4 bytes) floating point number to\nself in big-endian byte order. Read more
      §

      fn put_f32_le(&mut self, n: f32)

      Writes an IEEE754 single-precision (4 bytes) floating point number to\nself in little-endian byte order. Read more
      §

      fn put_f32_ne(&mut self, n: f32)

      Writes an IEEE754 single-precision (4 bytes) floating point number to\nself in native-endian byte order. Read more
      §

      fn put_f64(&mut self, n: f64)

      Writes an IEEE754 double-precision (8 bytes) floating point number to\nself in big-endian byte order. Read more
      §

      fn put_f64_le(&mut self, n: f64)

      Writes an IEEE754 double-precision (8 bytes) floating point number to\nself in little-endian byte order. Read more
      §

      fn put_f64_ne(&mut self, n: f64)

      Writes an IEEE754 double-precision (8 bytes) floating point number to\nself in native-endian byte order. Read more
      §

      fn limit(self, limit: usize) -> Limit<Self>
      where\n Self: Sized,

      Creates an adaptor which can write at most limit bytes to self. Read more
      §

      fn writer(self) -> Writer<Self>
      where\n Self: Sized,

      Available on crate feature std only.
      Creates an adaptor which implements the Write trait for self. Read more
      §

      fn chain_mut<U>(self, next: U) -> Chain<Self, U>
      where\n U: BufMut,\n Self: Sized,

      Creates an adapter which will chain this buffer with another. Read more
      ","BufMut","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.0.0 · Source§

      impl<B> BufRead for Box<B>
      where\n B: BufRead + ?Sized,

      Source§

      fn fill_buf(&mut self) -> Result<&[u8], Error>

      Returns the contents of the internal buffer, filling it with more data\nfrom the inner reader if it is empty. Read more
      Source§

      fn consume(&mut self, amt: usize)

      Tells this buffer that amt bytes have been consumed from the buffer,\nso they should no longer be returned in calls to read. Read more
      Source§

      fn read_until(&mut self, byte: u8, buf: &mut Vec<u8>) -> Result<usize, Error>

      Reads all bytes into buf until the delimiter byte or EOF is reached. Read more
      Source§

      fn read_line(&mut self, buf: &mut String) -> Result<usize, Error>

      Reads all bytes until a newline (the 0xA byte) is reached, and append\nthem to the provided String buffer. Read more
      Source§

      fn has_data_left(&mut self) -> Result<bool, Error>

      🔬This is a nightly-only experimental API. (buf_read_has_data_left)
      Checks if the underlying Read has any data left to be read. Read more
      1.83.0 · Source§

      fn skip_until(&mut self, byte: u8) -> Result<usize, Error>

      Skips all bytes until the delimiter byte or EOF is reached. Read more
      1.0.0 · Source§

      fn split(self, byte: u8) -> Split<Self>
      where\n Self: Sized,

      Returns an iterator over the contents of this reader split on the byte\nbyte. Read more
      1.0.0 · Source§

      fn lines(self) -> Lines<Self>
      where\n Self: Sized,

      Returns an iterator over the lines of this reader. Read more
      ","BufRead","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<T> BufferProvider for Box<T>
      where\n T: BufferProvider + ?Sized,

      §

      fn load_buffer(\n &self,\n key: DataKey,\n req: DataRequest<'_>,\n) -> Result<DataResponse<BufferMarker>, DataError>

      Loads a [DataPayload]<[BufferMarker]> according to the key and request.
      ","BufferProvider","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.0.0 · Source§

      impl<T, A> Clone for Box<T, A>
      where\n T: Clone,\n A: Allocator + Clone,

      Available on non-no_global_oom_handling only.
      Source§

      fn clone(&self) -> Box<T, A>

      Returns a new box with a clone() of this box’s contents.

      \n
      §Examples
      \n
      let x = Box::new(5);\nlet y = x.clone();\n\n// The value is the same\nassert_eq!(x, y);\n\n// But they are unique objects\nassert_ne!(&*x as *const i32, &*y as *const i32);
      \n
      Source§

      fn clone_from(&mut self, source: &Box<T, A>)

      Copies source’s contents into self without creating a new allocation.

      \n
      §Examples
      \n
      let x = Box::new(5);\nlet mut y = Box::new(10);\nlet yp: *const i32 = &*y;\n\ny.clone_from(&x);\n\n// The value is the same\nassert_eq!(x, y);\n\n// And no allocation occurred\nassert_eq!(yp, &*y);
      \n
      ","Clone","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<C> Connection for Box<C>
      where\n C: Connection + ?Sized,

      §

      fn wait_for_event(&self) -> Result<Event, ConnectionError>

      Wait for a new event from the X11 server.
      §

      fn wait_for_raw_event(\n &self,\n) -> Result<<Box<C> as RequestConnection>::Buf, ConnectionError>

      Wait for a new raw/unparsed event from the X11 server.
      §

      fn wait_for_event_with_sequence(&self) -> Result<(Event, u64), ConnectionError>

      Wait for a new event from the X11 server.
      §

      fn wait_for_raw_event_with_sequence(\n &self,\n) -> Result<(<Box<C> as RequestConnection>::Buf, u64), ConnectionError>

      Wait for a new raw/unparsed event from the X11 server.
      §

      fn poll_for_event(&self) -> Result<Option<Event>, ConnectionError>

      Poll for a new event from the X11 server.
      §

      fn poll_for_raw_event(\n &self,\n) -> Result<Option<<Box<C> as RequestConnection>::Buf>, ConnectionError>

      Poll for a new raw/unparsed event from the X11 server.
      §

      fn poll_for_event_with_sequence(\n &self,\n) -> Result<Option<(Event, u64)>, ConnectionError>

      Poll for a new event from the X11 server.
      §

      fn poll_for_raw_event_with_sequence(\n &self,\n) -> Result<Option<(<Box<C> as RequestConnection>::Buf, u64)>, ConnectionError>

      Poll for a new unparsed/raw event from the X11 server.
      §

      fn flush(&self) -> Result<(), ConnectionError>

      Send all pending requests to the server. Read more
      §

      fn setup(&self) -> &Setup

      Get the setup information sent by the X11 server. Read more
      §

      fn generate_id(&self) -> Result<u32, ReplyOrIdError>

      Generate a new X11 identifier. Read more
      ","Connection","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      Source§

      impl<G, R, A> Coroutine<R> for Box<G, A>
      where\n G: Coroutine<R> + Unpin + ?Sized,\n A: Allocator,

      Source§

      type Yield = <G as Coroutine<R>>::Yield

      🔬This is a nightly-only experimental API. (coroutine_trait)
      The type of value this coroutine yields. Read more
      Source§

      type Return = <G as Coroutine<R>>::Return

      🔬This is a nightly-only experimental API. (coroutine_trait)
      The type of value this coroutine returns. Read more
      Source§

      fn resume(\n self: Pin<&mut Box<G, A>>,\n arg: R,\n) -> CoroutineState<<Box<G, A> as Coroutine<R>>::Yield, <Box<G, A> as Coroutine<R>>::Return>

      🔬This is a nightly-only experimental API. (coroutine_trait)
      Resumes the execution of this coroutine. Read more
      ","Coroutine","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<M, P> DataProvider<M> for Box<P>
      where\n M: KeyedDataMarker,\n P: DataProvider<M> + ?Sized,

      §

      fn load(&self, req: DataRequest<'_>) -> Result<DataResponse<M>, DataError>

      Query the provider for data, returning the result. Read more
      ","DataProvider","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.0.0 · Source§

      impl<T, A> Debug for Box<T, A>
      where\n T: Debug + ?Sized,\n A: Allocator,

      Source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

      Formats the value using the given formatter. Read more
      ","Debug","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.0.0 · Source§

      impl<T> Default for Box<T>
      where\n T: Default,

      Available on non-no_global_oom_handling only.
      Source§

      fn default() -> Box<T>

      Creates a Box<T>, with the Default value for T.

      \n
      ","Default","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.0.0 · Source§

      impl<T, A> Deref for Box<T, A>
      where\n A: Allocator,\n T: ?Sized,

      Source§

      type Target = T

      The resulting type after dereferencing.
      Source§

      fn deref(&self) -> &T

      Dereferences the value.
      ","Deref","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.0.0 · Source§

      impl<T, A> DerefMut for Box<T, A>
      where\n A: Allocator,\n T: ?Sized,

      Source§

      fn deref_mut(&mut self) -> &mut T

      Mutably dereferences the value.
      ","DerefMut","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      Source§

      impl<'de, T> Deserialize<'de> for Box<T>
      where\n T: Deserialize<'de>,

      Available on crate features std or alloc only.
      Source§

      fn deserialize<D>(\n deserializer: D,\n) -> Result<Box<T>, <D as Deserializer<'de>>::Error>
      where\n D: Deserializer<'de>,

      Deserialize this value from the given Serde deserializer. Read more
      ","Deserialize<'de>","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.0.0 · Source§

      impl<T, A> Display for Box<T, A>
      where\n T: Display + ?Sized,\n A: Allocator,

      Source§

      fn fmt(&self, f: &mut Formatter<'_>) -> Result<(), Error>

      Formats the value using the given formatter. Read more
      ","Display","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.0.0 · Source§

      impl<I, A> DoubleEndedIterator for Box<I, A>
      where\n I: DoubleEndedIterator + ?Sized,\n A: Allocator,

      Source§

      fn next_back(&mut self) -> Option<<I as Iterator>::Item>

      Removes and returns an element from the end of the iterator. Read more
      Source§

      fn nth_back(&mut self, n: usize) -> Option<<I as Iterator>::Item>

      Returns the nth element from the end of the iterator. Read more
      Source§

      fn advance_back_by(&mut self, n: usize) -> Result<(), NonZero<usize>>

      🔬This is a nightly-only experimental API. (iter_advance_by)
      Advances the iterator from the back by n elements. Read more
      1.27.0 · Source§

      fn try_rfold<B, F, R>(&mut self, init: B, f: F) -> R
      where\n Self: Sized,\n F: FnMut(B, Self::Item) -> R,\n R: Try<Output = B>,

      This is the reverse version of Iterator::try_fold(): it takes\nelements starting from the back of the iterator. Read more
      1.27.0 · Source§

      fn rfold<B, F>(self, init: B, f: F) -> B
      where\n Self: Sized,\n F: FnMut(B, Self::Item) -> B,

      An iterator method that reduces the iterator’s elements to a single,\nfinal value, starting from the back. Read more
      1.27.0 · Source§

      fn rfind<P>(&mut self, predicate: P) -> Option<Self::Item>
      where\n Self: Sized,\n P: FnMut(&Self::Item) -> bool,

      Searches for an element of an iterator from the back that satisfies a predicate. Read more
      ","DoubleEndedIterator","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.0.0 · Source§

      impl<T, A> Drop for Box<T, A>
      where\n A: Allocator,\n T: ?Sized,

      Source§

      fn drop(&mut self)

      Executes the destructor for this type. Read more
      ","Drop","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<M, P> DynamicDataProvider<M> for Box<P>
      where\n M: DataMarker,\n P: DynamicDataProvider<M> + ?Sized,

      §

      fn load_data(\n &self,\n key: DataKey,\n req: DataRequest<'_>,\n) -> Result<DataResponse<M>, DataError>

      Query the provider for data, returning the result. Read more
      ","DynamicDataProvider","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<T> EncodeAsVarULE<T> for Box<T>
      where\n T: VarULE + ?Sized,

      §

      fn encode_var_ule_as_slices<R>(&self, cb: impl FnOnce(&[&[u8]]) -> R) -> R

      Calls cb with a piecewise list of byte slices that when concatenated\nproduce the memory pattern of the corresponding instance of T. Read more
      §

      fn encode_var_ule_len(&self) -> usize

      Return the length, in bytes, of the corresponding [VarULE] type
      §

      fn encode_var_ule_write(&self, dst: &mut [u8])

      Write the corresponding [VarULE] type to the dst buffer. dst should\nbe the size of [Self::encode_var_ule_len()]
      ","EncodeAsVarULE","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.8.0 · Source§

      impl<E> Error for Box<E>
      where\n E: Error,

      Source§

      fn description(&self) -> &str

      👎Deprecated since 1.42.0: use the Display impl or to_string()
      Source§

      fn cause(&self) -> Option<&dyn Error>

      👎Deprecated since 1.33.0: replaced by Error::source, which can support downcasting
      Source§

      fn source(&self) -> Option<&(dyn Error + 'static)>

      Returns the lower-level source of this error, if any. Read more
      Source§

      fn provide<'b>(&'b self, request: &mut Request<'b>)

      🔬This is a nightly-only experimental API. (error_generic_member_access)
      Provides type-based access to context intended for error reports. Read more
      ","Error","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<T> EventSource for Box<T>
      where\n T: EventSource,

      Blanket implementation for boxed event sources. [EventSource] is not an\nobject safe trait, so this does not include trait objects.

      \n
      §

      const NEEDS_EXTRA_LIFECYCLE_EVENTS: bool = T::NEEDS_EXTRA_LIFECYCLE_EVENTS

      Whether this source needs to be sent the [EventSource::before_sleep]\nand [EventSource::before_handle_events] notifications. These are opt-in because\nthey require more expensive checks, and almost all sources will not need these notifications
      §

      type Event = <T as EventSource>::Event

      The type of events generated by your source.
      §

      type Metadata = <T as EventSource>::Metadata

      Some metadata of your event source Read more
      §

      type Ret = <T as EventSource>::Ret

      The return type of the user callback Read more
      §

      type Error = <T as EventSource>::Error

      The error type returned from\nprocess_events() (not the user callback!).
      §

      fn process_events<F>(\n &mut self,\n readiness: Readiness,\n token: Token,\n callback: F,\n) -> Result<PostAction, <Box<T> as EventSource>::Error>
      where\n F: FnMut(<Box<T> as EventSource>::Event, &mut <Box<T> as EventSource>::Metadata) -> <Box<T> as EventSource>::Ret,

      Process any relevant events Read more
      §

      fn register(\n &mut self,\n poll: &mut Poll,\n token_factory: &mut TokenFactory,\n) -> Result<(), Error>

      Register yourself to this poll instance Read more
      §

      fn reregister(\n &mut self,\n poll: &mut Poll,\n token_factory: &mut TokenFactory,\n) -> Result<(), Error>

      Re-register your file descriptors Read more
      §

      fn unregister(&mut self, poll: &mut Poll) -> Result<(), Error>

      Unregister your file descriptors Read more
      §

      fn before_sleep(&mut self) -> Result<Option<(Readiness, Token)>, Error>

      Notification that a single poll is about to begin Read more
      §

      fn before_handle_events(&mut self, events: EventIterator<'_>)

      Notification that polling is complete, and [EventSource::process_events] will\nbe called with the given events for this source. The iterator may be empty,\nwhich indicates that no events were generated for this source Read more
      ","EventSource","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      §

      impl<T> EventSource for Box<T>
      where\n T: EventSource,

      Blanket implementation for boxed event sources. [EventSource] is not an\nobject safe trait, so this does not include trait objects.

      \n
      §

      const NEEDS_EXTRA_LIFECYCLE_EVENTS: bool = T::NEEDS_EXTRA_LIFECYCLE_EVENTS

      Whether this source needs to be sent the [EventSource::before_sleep]\nand [EventSource::before_handle_events] notifications. These are opt-in because\nthey require more expensive checks, and almost all sources will not need these notifications
      §

      type Event = <T as EventSource>::Event

      The type of events generated by your source.
      §

      type Metadata = <T as EventSource>::Metadata

      Some metadata of your event source Read more
      §

      type Ret = <T as EventSource>::Ret

      The return type of the user callback Read more
      §

      type Error = <T as EventSource>::Error

      The error type returned from\nprocess_events() (not the user callback!).
      §

      fn process_events<F>(\n &mut self,\n readiness: Readiness,\n token: Token,\n callback: F,\n) -> Result<PostAction, <Box<T> as EventSource>::Error>
      where\n F: FnMut(<Box<T> as EventSource>::Event, &mut <Box<T> as EventSource>::Metadata) -> <Box<T> as EventSource>::Ret,

      Process any relevant events Read more
      §

      fn register(\n &mut self,\n poll: &mut Poll,\n token_factory: &mut TokenFactory,\n) -> Result<(), Error>

      Register yourself to this poll instance Read more
      §

      fn reregister(\n &mut self,\n poll: &mut Poll,\n token_factory: &mut TokenFactory,\n) -> Result<(), Error>

      Re-register your file descriptors Read more
      §

      fn unregister(&mut self, poll: &mut Poll) -> Result<(), Error>

      Unregister your file descriptors Read more
      §

      fn before_sleep(&mut self) -> Result<Option<(Readiness, Token)>, Error>

      Notification that a single poll is about to begin Read more
      §

      fn before_handle_events(&mut self, events: EventIterator<'_>)

      Notification that polling is complete, and [EventSource::process_events] will\nbe called with the given events for this source. The iterator may be empty,\nwhich indicates that no events were generated for this source Read more
      ","EventSource","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.0.0 · Source§

      impl<I, A> ExactSizeIterator for Box<I, A>
      where\n I: ExactSizeIterator + ?Sized,\n A: Allocator,

      Source§

      fn len(&self) -> usize

      Returns the exact remaining length of the iterator. Read more
      Source§

      fn is_empty(&self) -> bool

      🔬This is a nightly-only experimental API. (exact_size_is_empty)
      Returns true if the iterator is empty. Read more
      ","ExactSizeIterator","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.35.0 · Source§

      impl<Args, F, A> Fn<Args> for Box<F, A>
      where\n Args: Tuple,\n F: Fn<Args> + ?Sized,\n A: Allocator,

      Source§

      extern "rust-call" fn call(\n &self,\n args: Args,\n) -> <Box<F, A> as FnOnce<Args>>::Output

      🔬This is a nightly-only experimental API. (fn_traits)
      Performs the call operation.
      ","Fn","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.35.0 · Source§

      impl<Args, F, A> FnMut<Args> for Box<F, A>
      where\n Args: Tuple,\n F: FnMut<Args> + ?Sized,\n A: Allocator,

      Source§

      extern "rust-call" fn call_mut(\n &mut self,\n args: Args,\n) -> <Box<F, A> as FnOnce<Args>>::Output

      🔬This is a nightly-only experimental API. (fn_traits)
      Performs the call operation.
      ","FnMut","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      1.35.0 · Source§

      impl<Args, F, A> FnOnce<Args> for Box<F, A>
      where\n Args: Tuple,\n F: FnOnce<Args> + ?Sized,\n A: Allocator,

      Source§

      type Output = <F as FnOnce<Args>>::Output

      The returned type after the call operator is used.
      Source§

      extern "rust-call" fn call_once(\n self,\n args: Args,\n) -> <Box<F, A> as FnOnce<Args>>::Output

      🔬This is a nightly-only experimental API. (fn_traits)
      Performs the call operation.
      ","FnOnce","iced::widget::text::StyleFn","iced::widget::overlay::menu::StyleFn","iced::widget::button::StyleFn","iced::widget::checkbox::StyleFn","iced::widget::container::StyleFn","iced::widget::pane_grid::StyleFn","iced::widget::pick_list::StyleFn","iced::widget::progress_bar::StyleFn","iced::widget::radio::StyleFn","iced::widget::rule::StyleFn","iced::widget::scrollable::StyleFn","iced::widget::vertical_slider::StyleFn","iced::widget::text_editor::StyleFn","iced::widget::text_input::StyleFn","iced::widget::toggler::StyleFn","iced::widget::svg::StyleFn","iced::widget::qr_code::StyleFn"],["
      Source§

      impl<Theme> From<Style> for Box<dyn Fn(&Theme) -> Style + '_>

      Source§

      fn from(style: Style) -> Box<dyn Fn(&Theme) -> Style + '_>

      Converts to this type from the input type.
      ","From