diff --git a/iced/advanced/trait.Widget.html b/iced/advanced/trait.Widget.html index e2d0581d2bb..6fc4192851c 100644 --- a/iced/advanced/trait.Widget.html +++ b/iced/advanced/trait.Widget.html @@ -119,67 +119,67 @@

Examples

_layout: Layout<'_>, _renderer: &Renderer ) -> Option<Element<'a, Message, Renderer>>

Returns the overlay of the Widget, if there is any.

-

Implementors§

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Button<'a, Message, Renderer>where +

Implementors§

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Button<'a, Message, Renderer>where Message: 'a + Clone, Renderer: 'a + Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Checkbox<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Checkbox<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Column<'a, Message, Renderer>where - Renderer: Renderer,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Container<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Column<'a, Message, Renderer>where + Renderer: Renderer,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Container<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for MouseArea<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for MouseArea<'a, Message, Renderer>where Renderer: Renderer, - Message: Clone,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for PaneGrid<'a, Message, Renderer>where + Message: Clone,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for PaneGrid<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Responsive<'a, Message, Renderer>where - Renderer: Renderer,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Row<'a, Message, Renderer>where - Renderer: Renderer,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Scrollable<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Responsive<'a, Message, Renderer>where + Renderer: Renderer,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Row<'a, Message, Renderer>where + Renderer: Renderer,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Scrollable<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for TextInput<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for TextInput<'a, Message, Renderer>where Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Toggler<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Toggler<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Tooltip<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Tooltip<'a, Message, Renderer>where Renderer: Renderer, <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Text<'a, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<'a, Message, Renderer, Dependency, View> Widget<Message, Renderer> for Lazy<'a, Message, Renderer, Dependency, View>where + <Renderer as Renderer>::Theme: StyleSheet,

§

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

source§

impl<'a, Message, Theme> Widget<Message, Renderer<Theme>> for QRCode<'a>

source§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for ComboBox<'a, T, Message, Renderer>where + Renderer: Renderer + 'static,

§

impl<'a, Message, Theme> Widget<Message, Renderer<Theme>> for QRCode<'a>

§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for ComboBox<'a, T, Message, Renderer>where T: Display + Clone + 'static, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet,

source§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for PickList<'a, T, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet,

§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for PickList<'a, T, Message, Renderer>where T: 'a + Clone + ToString + Eq + 'static, [T]: ToOwned<Owned = Vec<T, Global>>, Message: 'a, Renderer: Renderer + 'a, <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet, - <<Renderer as Renderer>::Theme as StyleSheet>::Style: From<<<Renderer as Renderer>::Theme as StyleSheet>::Style>,

source§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for Slider<'a, T, Message, Renderer>where + <<Renderer as Renderer>::Theme as StyleSheet>::Style: From<<<Renderer as Renderer>::Theme as StyleSheet>::Style>,

§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for Slider<'a, T, Message, Renderer>where T: Copy + Into<f64> + FromPrimitive, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for VerticalSlider<'a, T, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for VerticalSlider<'a, T, Message, Renderer>where T: Copy + Into<f64> + FromPrimitive, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<Message, Renderer> Widget<Message, Renderer> for ProgressBar<Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<Message, Renderer> Widget<Message, Renderer> for ProgressBar<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<Message, Renderer> Widget<Message, Renderer> for Radio<Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<Message, Renderer> Widget<Message, Renderer> for Radio<Message, Renderer>where Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

source§

impl<Message, Renderer> Widget<Message, Renderer> for Rule<Renderer>where + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

§

impl<Message, Renderer> Widget<Message, Renderer> for Rule<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<Message, Renderer> Widget<Message, Renderer> for Spacewhere - Renderer: Renderer,

source§

impl<Message, Renderer> Widget<Message, Renderer> for Svg<Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<Message, Renderer> Widget<Message, Renderer> for Spacewhere + Renderer: Renderer,

§

impl<Message, Renderer> Widget<Message, Renderer> for Svg<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<Message, Renderer, Handle> Widget<Message, Renderer> for Viewer<Handle>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<Message, Renderer, Handle> Widget<Message, Renderer> for Viewer<Handle>where Renderer: Renderer<Handle = Handle>, - Handle: Clone + Hash,

source§

impl<Message, Renderer, Handle> Widget<Message, Renderer> for Image<Handle>where + Handle: Clone + Hash,

§

impl<Message, Renderer, Handle> Widget<Message, Renderer> for Image<Handle>where Renderer: Renderer<Handle = Handle>, - Handle: Clone + Hash,

source§

impl<P, Message, Renderer> Widget<Message, Renderer> for Canvas<P, Message, Renderer>where + Handle: Clone + Hash,

§

impl<P, Message, Renderer> Widget<Message, Renderer> for Canvas<P, Message, Renderer>where Renderer: Renderer, P: Program<Message, Renderer>,

\ No newline at end of file diff --git a/iced/advanced/widget/operation/focusable/trait.Focusable.html b/iced/advanced/widget/operation/focusable/trait.Focusable.html index fe5ce65b35e..84efdc16992 100644 --- a/iced/advanced/widget/operation/focusable/trait.Focusable.html +++ b/iced/advanced/widget/operation/focusable/trait.Focusable.html @@ -7,4 +7,4 @@

Required Methods§

fn is_focused(&self) -> bool

Returns whether the widget is focused or not.

fn focus(&mut self)

Focuses the widget.

fn unfocus(&mut self)

Unfocuses the widget.

-

Implementors§

source§

impl Focusable for State

\ No newline at end of file +

Implementors§

§

impl Focusable for State

\ No newline at end of file diff --git a/iced/advanced/widget/operation/scrollable/trait.Scrollable.html b/iced/advanced/widget/operation/scrollable/trait.Scrollable.html index 55e5d1694b8..673fef99d67 100644 --- a/iced/advanced/widget/operation/scrollable/trait.Scrollable.html +++ b/iced/advanced/widget/operation/scrollable/trait.Scrollable.html @@ -5,4 +5,4 @@ }
Available on crate feature advanced only.
Expand description

The internal state of a widget that can be scrolled.

Required Methods§

fn snap_to(&mut self, offset: RelativeOffset)

Snaps the scroll of the widget to the given percentage along the horizontal & vertical axis.

fn scroll_to(&mut self, offset: AbsoluteOffset)

Scroll the widget to the given AbsoluteOffset along the horizontal & vertical axis.

-

Implementors§

source§

impl Scrollable for State

\ No newline at end of file +

Implementors§

§

impl Scrollable for State

\ No newline at end of file diff --git a/iced/advanced/widget/operation/text_input/trait.TextInput.html b/iced/advanced/widget/operation/text_input/trait.TextInput.html index c48bce41722..83e87101199 100644 --- a/iced/advanced/widget/operation/text_input/trait.TextInput.html +++ b/iced/advanced/widget/operation/text_input/trait.TextInput.html @@ -9,4 +9,4 @@

fn move_cursor_to_end(&mut self)

Moves the cursor of the text input to the end of the input text.

fn move_cursor_to(&mut self, position: usize)

Moves the cursor of the text input to an arbitrary location.

fn select_all(&mut self)

Selects all the content of the text input.

-

Implementors§

source§

impl TextInput for State

\ No newline at end of file +

Implementors§

§

impl TextInput for State

\ No newline at end of file diff --git a/iced/advanced/widget/operation/trait.Focusable.html b/iced/advanced/widget/operation/trait.Focusable.html index 37d48e05a01..f8e4daa298f 100644 --- a/iced/advanced/widget/operation/trait.Focusable.html +++ b/iced/advanced/widget/operation/trait.Focusable.html @@ -7,4 +7,4 @@

Required Methods§

fn is_focused(&self) -> bool

Returns whether the widget is focused or not.

fn focus(&mut self)

Focuses the widget.

fn unfocus(&mut self)

Unfocuses the widget.

-

Implementors§

source§

impl Focusable for State

\ No newline at end of file +

Implementors§

§

impl Focusable for State

\ No newline at end of file diff --git a/iced/advanced/widget/operation/trait.Scrollable.html b/iced/advanced/widget/operation/trait.Scrollable.html index a5631307d8a..d21b03a11ee 100644 --- a/iced/advanced/widget/operation/trait.Scrollable.html +++ b/iced/advanced/widget/operation/trait.Scrollable.html @@ -5,4 +5,4 @@ }
Available on crate feature advanced only.
Expand description

The internal state of a widget that can be scrolled.

Required Methods§

fn snap_to(&mut self, offset: RelativeOffset)

Snaps the scroll of the widget to the given percentage along the horizontal & vertical axis.

fn scroll_to(&mut self, offset: AbsoluteOffset)

Scroll the widget to the given AbsoluteOffset along the horizontal & vertical axis.

-

Implementors§

source§

impl Scrollable for State

\ No newline at end of file +

Implementors§

§

impl Scrollable for State

\ No newline at end of file diff --git a/iced/advanced/widget/operation/trait.TextInput.html b/iced/advanced/widget/operation/trait.TextInput.html index e1f11fdcb3b..4eaa4c39833 100644 --- a/iced/advanced/widget/operation/trait.TextInput.html +++ b/iced/advanced/widget/operation/trait.TextInput.html @@ -9,4 +9,4 @@

fn move_cursor_to_end(&mut self)

Moves the cursor of the text input to the end of the input text.

fn move_cursor_to(&mut self, position: usize)

Moves the cursor of the text input to an arbitrary location.

fn select_all(&mut self)

Selects all the content of the text input.

-

Implementors§

source§

impl TextInput for State

\ No newline at end of file +

Implementors§

§

impl TextInput for State

\ No newline at end of file diff --git a/iced/advanced/widget/struct.Id.html b/iced/advanced/widget/struct.Id.html index b8815452048..75fbe4710be 100644 --- a/iced/advanced/widget/struct.Id.html +++ b/iced/advanced/widget/struct.Id.html @@ -2,7 +2,7 @@

Implementations§

§

impl Id

pub fn new(id: impl Into<Cow<'static, str>>) -> Id

Creates a custom Id.

pub fn unique() -> Id

Creates a unique Id.

This function produces a different Id every time it is called.

-

Trait Implementations§

§

impl Clone for Id

§

fn clone(&self) -> Id

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 Id

§

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

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

impl From<Id> for Id

source§

fn from(id: Id) -> Id

Converts to this type from the input type.
source§

impl From<Id> for Id

source§

fn from(id: Id) -> Id

Converts to this type from the input type.
source§

impl From<Id> for Id

source§

fn from(id: Id) -> Id

Converts to this type from the input type.
§

impl Hash for Id

§

fn hash<__H>(&self, state: &mut __H)where +

Trait Implementations§

§

impl Clone for Id

§

fn clone(&self) -> Id

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 Id

§

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

Formats the value using the given formatter. Read more
§

impl From<Id> for Id

§

fn from(id: Id) -> Id

Converts to this type from the input type.
§

impl From<Id> for Id

§

fn from(id: Id) -> Id

Converts to this type from the input type.
§

impl From<Id> for Id

§

fn from(id: Id) -> Id

Converts to this type from the input type.
§

impl Hash for Id

§

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
§

impl PartialEq<Id> for Id

§

fn eq(&self, other: &Id) -> bool

This method tests for self and other values to be equal, and is used diff --git a/iced/advanced/widget/trait.Widget.html b/iced/advanced/widget/trait.Widget.html index a1159d00297..54169b76ae1 100644 --- a/iced/advanced/widget/trait.Widget.html +++ b/iced/advanced/widget/trait.Widget.html @@ -119,67 +119,67 @@

Examples

_layout: Layout<'_>, _renderer: &Renderer ) -> Option<Element<'a, Message, Renderer>>

Returns the overlay of the Widget, if there is any.

-

Implementors§

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Button<'a, Message, Renderer>where +

Implementors§

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Button<'a, Message, Renderer>where Message: 'a + Clone, Renderer: 'a + Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Checkbox<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Checkbox<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Column<'a, Message, Renderer>where - Renderer: Renderer,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Container<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Column<'a, Message, Renderer>where + Renderer: Renderer,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Container<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for MouseArea<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for MouseArea<'a, Message, Renderer>where Renderer: Renderer, - Message: Clone,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for PaneGrid<'a, Message, Renderer>where + Message: Clone,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for PaneGrid<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Responsive<'a, Message, Renderer>where - Renderer: Renderer,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Row<'a, Message, Renderer>where - Renderer: Renderer,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Scrollable<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Responsive<'a, Message, Renderer>where + Renderer: Renderer,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Row<'a, Message, Renderer>where + Renderer: Renderer,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Scrollable<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for TextInput<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for TextInput<'a, Message, Renderer>where Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Toggler<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Toggler<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Tooltip<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Tooltip<'a, Message, Renderer>where Renderer: Renderer, <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Text<'a, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<'a, Message, Renderer, Dependency, View> Widget<Message, Renderer> for Lazy<'a, Message, Renderer, Dependency, View>where + <Renderer as Renderer>::Theme: StyleSheet,

§

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

source§

impl<'a, Message, Theme> Widget<Message, Renderer<Theme>> for QRCode<'a>

source§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for ComboBox<'a, T, Message, Renderer>where + Renderer: Renderer + 'static,

§

impl<'a, Message, Theme> Widget<Message, Renderer<Theme>> for QRCode<'a>

§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for ComboBox<'a, T, Message, Renderer>where T: Display + Clone + 'static, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet,

source§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for PickList<'a, T, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet,

§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for PickList<'a, T, Message, Renderer>where T: 'a + Clone + ToString + Eq + 'static, [T]: ToOwned<Owned = Vec<T, Global>>, Message: 'a, Renderer: Renderer + 'a, <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet, - <<Renderer as Renderer>::Theme as StyleSheet>::Style: From<<<Renderer as Renderer>::Theme as StyleSheet>::Style>,

source§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for Slider<'a, T, Message, Renderer>where + <<Renderer as Renderer>::Theme as StyleSheet>::Style: From<<<Renderer as Renderer>::Theme as StyleSheet>::Style>,

§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for Slider<'a, T, Message, Renderer>where T: Copy + Into<f64> + FromPrimitive, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for VerticalSlider<'a, T, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for VerticalSlider<'a, T, Message, Renderer>where T: Copy + Into<f64> + FromPrimitive, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<Message, Renderer> Widget<Message, Renderer> for ProgressBar<Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<Message, Renderer> Widget<Message, Renderer> for ProgressBar<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<Message, Renderer> Widget<Message, Renderer> for Radio<Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<Message, Renderer> Widget<Message, Renderer> for Radio<Message, Renderer>where Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

source§

impl<Message, Renderer> Widget<Message, Renderer> for Rule<Renderer>where + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

§

impl<Message, Renderer> Widget<Message, Renderer> for Rule<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<Message, Renderer> Widget<Message, Renderer> for Spacewhere - Renderer: Renderer,

source§

impl<Message, Renderer> Widget<Message, Renderer> for Svg<Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<Message, Renderer> Widget<Message, Renderer> for Spacewhere + Renderer: Renderer,

§

impl<Message, Renderer> Widget<Message, Renderer> for Svg<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

impl<Message, Renderer, Handle> Widget<Message, Renderer> for Viewer<Handle>where + <Renderer as Renderer>::Theme: StyleSheet,

§

impl<Message, Renderer, Handle> Widget<Message, Renderer> for Viewer<Handle>where Renderer: Renderer<Handle = Handle>, - Handle: Clone + Hash,

source§

impl<Message, Renderer, Handle> Widget<Message, Renderer> for Image<Handle>where + Handle: Clone + Hash,

§

impl<Message, Renderer, Handle> Widget<Message, Renderer> for Image<Handle>where Renderer: Renderer<Handle = Handle>, - Handle: Clone + Hash,

source§

impl<P, Message, Renderer> Widget<Message, Renderer> for Canvas<P, Message, Renderer>where + Handle: Clone + Hash,

§

impl<P, Message, Renderer> Widget<Message, Renderer> for Canvas<P, Message, Renderer>where Renderer: Renderer, P: Program<Message, Renderer>,

\ No newline at end of file diff --git a/iced/overlay/menu/index.html b/iced/overlay/menu/index.html index db67bbd6bbf..44a329bc0ca 100644 --- a/iced/overlay/menu/index.html +++ b/iced/overlay/menu/index.html @@ -1,2 +1,2 @@ -iced::overlay::menu - Rust

Module iced::overlay::menu

source ·
Expand description

Build and show dropdown menus.

+iced::overlay::menu - Rust

Module iced::overlay::menu

Expand description

Build and show dropdown menus.

Structs

Traits

\ No newline at end of file diff --git a/iced/overlay/menu/struct.Menu.html b/iced/overlay/menu/struct.Menu.html index 9c67eb2fdb7..edcd3e5dfea 100644 --- a/iced/overlay/menu/struct.Menu.html +++ b/iced/overlay/menu/struct.Menu.html @@ -1,11 +1,11 @@ -Menu in iced::overlay::menu - Rust

Struct iced::overlay::menu::Menu

source ·
pub struct Menu<'a, T, Message, Renderer = Renderer<Theme>>where
+Menu in iced::overlay::menu - Rust

Struct iced::overlay::menu::Menu

pub struct Menu<'a, T, Message, Renderer = Renderer<Theme>>where
     Renderer: Renderer,
     <Renderer as Renderer>::Theme: StyleSheet,{ /* private fields */ }
Expand description

A list of selectable options.

-

Implementations§

source§

impl<'a, T, Message, Renderer> Menu<'a, T, Message, Renderer>where +

Implementations§

§

impl<'a, T, Message, Renderer> Menu<'a, T, Message, Renderer>where T: ToString + Clone, Message: 'a, Renderer: Renderer + 'a, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet,

source

pub fn new( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet,

pub fn new( state: &'a mut State, options: &'a [T], hovered_option: &'a mut Option<usize>, @@ -13,27 +13,27 @@ on_option_hovered: Option<&'a dyn Fn(T) -> Message> ) -> Menu<'a, T, Message, Renderer>

Creates a new Menu with the given State, a list of options, and the message to produced when an option is selected.

-
source

pub fn width(self, width: f32) -> Menu<'a, T, Message, Renderer>

Sets the width of the Menu.

-
source

pub fn padding<P>(self, padding: P) -> Menu<'a, T, Message, Renderer>where +

pub fn width(self, width: f32) -> Menu<'a, T, Message, Renderer>

Sets the width of the Menu.

+

pub fn padding<P>(self, padding: P) -> Menu<'a, T, Message, Renderer>where P: Into<Padding>,

Sets the Padding of the Menu.

-
source

pub fn text_size( +

pub fn text_size( self, text_size: impl Into<Pixels> ) -> Menu<'a, T, Message, Renderer>

Sets the text size of the Menu.

-
source

pub fn text_line_height( +

pub fn text_line_height( self, line_height: impl Into<LineHeight> ) -> Menu<'a, T, Message, Renderer>

Sets the text [LineHeight] of the Menu.

-
source

pub fn text_shaping(self, shaping: Shaping) -> Menu<'a, T, Message, Renderer>

Sets the text::Shaping strategy of the Menu.

-
source

pub fn font( +

pub fn text_shaping(self, shaping: Shaping) -> Menu<'a, T, Message, Renderer>

Sets the text::Shaping strategy of the Menu.

+

pub fn font( self, font: impl Into<<Renderer as Renderer>::Font> ) -> Menu<'a, T, Message, Renderer>

Sets the font of the Menu.

-
source

pub fn style( +

pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Menu<'a, T, Message, Renderer>

Sets the style of the Menu.

-
source

pub fn overlay( +

pub fn overlay( self, position: Point, target_height: f32 diff --git a/iced/overlay/menu/struct.State.html b/iced/overlay/menu/struct.State.html index bc1b25e23e3..0b0f321b70f 100644 --- a/iced/overlay/menu/struct.State.html +++ b/iced/overlay/menu/struct.State.html @@ -1,6 +1,6 @@ -State in iced::overlay::menu - Rust

Struct iced::overlay::menu::State

source ·
pub struct State { /* private fields */ }
Expand description

The local state of a Menu.

-

Implementations§

source§

impl State

source

pub fn new() -> State

Creates a new State for a Menu.

-

Trait Implementations§

source§

impl Debug for State

source§

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

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

impl Default for State

source§

fn default() -> State

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

Auto Trait Implementations§

§

impl !RefUnwindSafe for State

§

impl !Send for State

§

impl !Sync for State

§

impl Unpin for State

§

impl !UnwindSafe for State

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +State in iced::overlay::menu - Rust

Struct iced::overlay::menu::State

pub struct State { /* private fields */ }
Expand description

The local state of a Menu.

+

Implementations§

§

impl State

pub fn new() -> State

Creates a new State for a Menu.

+

Trait Implementations§

§

impl Debug for State

§

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

Formats the value using the given formatter. Read more
§

impl Default for State

§

fn default() -> State

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

Auto Trait Implementations§

§

impl !RefUnwindSafe for State

§

impl !Send for State

§

impl !Sync for State

§

impl Unpin for State

§

impl !UnwindSafe for State

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/button/fn.draw.html b/iced/widget/button/fn.draw.html index df6af76c948..3b536d8577d 100644 --- a/iced/widget/button/fn.draw.html +++ b/iced/widget/button/fn.draw.html @@ -1,4 +1,4 @@ -draw in iced::widget::button - Rust

Function iced::widget::button::draw

source ·
pub fn draw<'a, Renderer>(
+draw in iced::widget::button - Rust

Function iced::widget::button::draw

pub fn draw<'a, Renderer>(
     renderer: &mut Renderer,
     bounds: Rectangle<f32>,
     cursor: Cursor,
diff --git a/iced/widget/button/fn.layout.html b/iced/widget/button/fn.layout.html
index 42a49cf9392..d1af642dcb8 100644
--- a/iced/widget/button/fn.layout.html
+++ b/iced/widget/button/fn.layout.html
@@ -1,4 +1,4 @@
-layout in iced::widget::button - Rust

Function iced::widget::button::layout

source ·
pub fn layout<Renderer>(
+layout in iced::widget::button - Rust

Function iced::widget::button::layout

pub fn layout<Renderer>(
     renderer: &Renderer,
     limits: &Limits,
     width: Length,
diff --git a/iced/widget/button/fn.mouse_interaction.html b/iced/widget/button/fn.mouse_interaction.html
index d1c7e0a5af9..2af46dfb81f 100644
--- a/iced/widget/button/fn.mouse_interaction.html
+++ b/iced/widget/button/fn.mouse_interaction.html
@@ -1,4 +1,4 @@
-mouse_interaction in iced::widget::button - Rust
pub fn mouse_interaction(
+mouse_interaction in iced::widget::button - Rust
pub fn mouse_interaction(
     layout: Layout<'_>,
     cursor: Cursor,
     is_enabled: bool
diff --git a/iced/widget/button/fn.update.html b/iced/widget/button/fn.update.html
index 804f5fb1366..9b2e097c501 100644
--- a/iced/widget/button/fn.update.html
+++ b/iced/widget/button/fn.update.html
@@ -1,4 +1,4 @@
-update in iced::widget::button - Rust

Function iced::widget::button::update

source ·
pub fn update<'a, Message>(
+update in iced::widget::button - Rust

Function iced::widget::button::update

pub fn update<'a, Message>(
     event: Event,
     layout: Layout<'_>,
     cursor: Cursor,
diff --git a/iced/widget/button/index.html b/iced/widget/button/index.html
index f6db152eebd..e0bf8d65d83 100644
--- a/iced/widget/button/index.html
+++ b/iced/widget/button/index.html
@@ -1,4 +1,4 @@
-iced::widget::button - Rust

Module iced::widget::button

source ·
Expand description

Allow your users to perform actions by pressing a button.

+iced::widget::button - Rust

Module iced::widget::button

Expand description

Allow your users to perform actions by pressing a button.

A Button has some local State.

Structs

Traits

  • A set of rules that dictate the style of a button.

Functions

\ No newline at end of file diff --git a/iced/widget/button/struct.Button.html b/iced/widget/button/struct.Button.html index 1d8bb60fd08..02d8b4ca4fd 100644 --- a/iced/widget/button/struct.Button.html +++ b/iced/widget/button/struct.Button.html @@ -1,4 +1,4 @@ -Button in iced::widget::button - Rust

Struct iced::widget::button::Button

source ·
pub struct Button<'a, Message, Renderer = Renderer<Theme>>where
+Button in iced::widget::button - Rust

Struct iced::widget::button::Button

pub struct Button<'a, Message, Renderer = Renderer<Theme>>where
     Renderer: Renderer,
     <Renderer as Renderer>::Theme: StyleSheet,{ /* private fields */ }
Expand description

A generic widget that produces a message when pressed.

@@ -23,37 +23,37 @@ fn enabled_button<'a>() -> Button<'a, Message> { disabled_button().on_press(Message::ButtonPressed) }
-

Implementations§

source§

impl<'a, Message, Renderer> Button<'a, Message, Renderer>where +

Implementations§

§

impl<'a, Message, Renderer> Button<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source

pub fn new( + <Renderer as Renderer>::Theme: StyleSheet,

pub fn new( content: impl Into<Element<'a, Message, Renderer>> ) -> Button<'a, Message, Renderer>

Creates a new Button with the given content.

-
source

pub fn width(self, width: impl Into<Length>) -> Button<'a, Message, Renderer>

Sets the width of the Button.

-
source

pub fn height(self, height: impl Into<Length>) -> Button<'a, Message, Renderer>

Sets the height of the Button.

-
source

pub fn padding<P>(self, padding: P) -> Button<'a, Message, Renderer>where +

pub fn width(self, width: impl Into<Length>) -> Button<'a, Message, Renderer>

Sets the width of the Button.

+

pub fn height(self, height: impl Into<Length>) -> Button<'a, Message, Renderer>

Sets the height of the Button.

+

pub fn padding<P>(self, padding: P) -> Button<'a, Message, Renderer>where P: Into<Padding>,

Sets the Padding of the Button.

-
source

pub fn on_press(self, on_press: Message) -> Button<'a, Message, Renderer>

Sets the message that will be produced when the Button is pressed.

+

pub fn on_press(self, on_press: Message) -> Button<'a, Message, Renderer>

Sets the message that will be produced when the Button is pressed.

Unless on_press is called, the Button will be disabled.

-
source

pub fn on_press_maybe( +

pub fn on_press_maybe( self, on_press: Option<Message> ) -> Button<'a, Message, Renderer>

Sets the message that will be produced when the Button is pressed, if Some.

If None, the Button will be disabled.

-
source

pub fn style( +

pub fn style( self, style: <<Renderer as Renderer>::Theme as StyleSheet>::Style ) -> Button<'a, Message, Renderer>

Sets the style variant of this Button.

-

Trait Implementations§

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Button<'a, Message, Renderer>where +

Trait Implementations§

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Button<'a, Message, Renderer>where Message: 'a + Clone, Renderer: 'a + Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

fn tag(&self) -> Tag

Returns the Tag of the Widget.
source§

fn state(&self) -> State

Returns the State of the Widget.
source§

fn children(&self) -> Vec<Tree, Global>

Returns the state Tree of the children of the Widget.
source§

fn diff(&self, tree: &mut Tree)

Reconciliates the Widget with the provided Tree.
source§

fn width(&self) -> Length

Returns the width of the Widget.
source§

fn height(&self) -> Length

Returns the height of the Widget.
source§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
source§

fn operate( + <Renderer as Renderer>::Theme: StyleSheet,

§

fn tag(&self) -> Tag

Returns the Tag of the Widget.
§

fn state(&self) -> State

Returns the State of the Widget.
§

fn children(&self) -> Vec<Tree, Global>

Returns the state Tree of the children of the Widget.
§

fn diff(&self, tree: &mut Tree)

Reconciliates the Widget with the provided Tree.
§

fn width(&self) -> Length

Returns the width of the Widget.
§

fn height(&self) -> Length

Returns the height of the Widget.
§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
§

fn operate( &self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation<Message> -)

Applies an Operation to the Widget.
source§

fn on_event( +)

Applies an Operation to the Widget.
§

fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -63,7 +63,7 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status

Processes a runtime Event. Read more
source§

fn draw( +) -> Status

Processes a runtime Event. Read more
§

fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -72,14 +72,14 @@ layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32> -)

Draws the Widget using the associated Renderer.
source§

fn mouse_interaction( +)

Draws the Widget using the associated Renderer.
§

fn mouse_interaction( &self, _tree: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, _renderer: &Renderer -) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
source§

fn overlay<'b>( +) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
§

fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/button/struct.State.html b/iced/widget/button/struct.State.html index 71fc372f916..cfb432fb528 100644 --- a/iced/widget/button/struct.State.html +++ b/iced/widget/button/struct.State.html @@ -1,8 +1,8 @@ -State in iced::widget::button - Rust

Struct iced::widget::button::State

source ·
pub struct State { /* private fields */ }
Expand description

The local state of a Button.

-

Implementations§

source§

impl State

source

pub fn new() -> State

Creates a new State.

-

Trait Implementations§

source§

impl Clone for State

source§

fn clone(&self) -> State

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 State

source§

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

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

impl Default for State

source§

fn default() -> State

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

impl PartialEq<State> for State

source§

fn eq(&self, other: &State) -> bool

This method tests for self and other values to be equal, and is used +State in iced::widget::button - Rust

Struct iced::widget::button::State

pub struct State { /* private fields */ }
Expand description

The local state of a Button.

+

Implementations§

§

impl State

pub fn new() -> State

Creates a new State.

+

Trait Implementations§

§

impl Clone for State

§

fn clone(&self) -> State

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 State

§

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

Formats the value using the given formatter. Read more
§

impl Default for State

§

fn default() -> State

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

impl PartialEq<State> for State

§

fn eq(&self, other: &State) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for State

source§

impl Eq for State

source§

impl StructuralEq for State

source§

impl StructuralPartialEq for State

Auto Trait Implementations§

§

impl RefUnwindSafe for State

§

impl Send for State

§

impl Sync for State

§

impl Unpin for State

§

impl UnwindSafe for State

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

§

impl Copy for State

§

impl Eq for State

§

impl StructuralEq for State

§

impl StructuralPartialEq for State

Auto Trait Implementations§

§

impl RefUnwindSafe for State

§

impl Send for State

§

impl Sync for State

§

impl Unpin for State

§

impl UnwindSafe for State

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/canvas/enum.Event.html b/iced/widget/canvas/enum.Event.html index bb44f4ec455..2406721eade 100644 --- a/iced/widget/canvas/enum.Event.html +++ b/iced/widget/canvas/enum.Event.html @@ -1,4 +1,4 @@ -Event in iced::widget::canvas - Rust

Variants§

§

Mouse(Event)

A mouse event.

§

Touch(Event)

A touch event.

§

Keyboard(Event)

A keyboard event.

-

Trait Implementations§

source§

impl Clone for Event

source§

fn clone(&self) -> Event

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 Event

source§

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

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

impl PartialEq<Event> for Event

source§

fn eq(&self, other: &Event) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for Event

§

fn clone(&self) -> Event

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 Event

§

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

Formats the value using the given formatter. Read more
§

impl PartialEq<Event> for Event

§

fn eq(&self, other: &Event) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for Event

source§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

§

impl Copy for Event

§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/canvas/event/enum.Event.html b/iced/widget/canvas/event/enum.Event.html index e8fef046cce..c56d604c8b3 100644 --- a/iced/widget/canvas/event/enum.Event.html +++ b/iced/widget/canvas/event/enum.Event.html @@ -1,4 +1,4 @@ -Event in iced::widget::canvas::event - Rust

Variants§

§

Mouse(Event)

A mouse event.

§

Touch(Event)

A touch event.

§

Keyboard(Event)

A keyboard event.

-

Trait Implementations§

source§

impl Clone for Event

source§

fn clone(&self) -> Event

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 Event

source§

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

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

impl PartialEq<Event> for Event

source§

fn eq(&self, other: &Event) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for Event

§

fn clone(&self) -> Event

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 Event

§

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

Formats the value using the given formatter. Read more
§

impl PartialEq<Event> for Event

§

fn eq(&self, other: &Event) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for Event

source§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

§

impl Copy for Event

§

impl StructuralPartialEq for Event

Auto Trait Implementations§

§

impl RefUnwindSafe for Event

§

impl Send for Event

§

impl Sync for Event

§

impl Unpin for Event

§

impl UnwindSafe for Event

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/canvas/event/index.html b/iced/widget/canvas/event/index.html index 73e5602cd33..cf50051cc32 100644 --- a/iced/widget/canvas/event/index.html +++ b/iced/widget/canvas/event/index.html @@ -1,2 +1,2 @@ -iced::widget::canvas::event - Rust

Module iced::widget::canvas::event

source ·
Available on crate feature canvas only.
Expand description

Handle events of a canvas.

+iced::widget::canvas::event - Rust

Module iced::widget::canvas::event

Available on crate feature canvas only.
Expand description

Handle events of a canvas.

Enums

\ No newline at end of file diff --git a/iced/widget/canvas/index.html b/iced/widget/canvas/index.html index 2553b8f64fb..417264f7438 100644 --- a/iced/widget/canvas/index.html +++ b/iced/widget/canvas/index.html @@ -1,3 +1,3 @@ -iced::widget::canvas - Rust

Module iced::widget::canvas

source ·
Available on crate feature canvas only.
Expand description

Draw 2D graphics for your users.

+iced::widget::canvas - Rust

Module iced::widget::canvas

Available on crate feature canvas only.
Expand description

Draw 2D graphics for your users.

Modules

  • Handle events of a canvas.
  • Fill [crate::widget::canvas::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 [crate::widget::canvas::Path] and assigns them various attributes/styles.

Structs

  • A simple cache that stores generated Geometry to avoid recomputation.
  • A widget capable of drawing 2D graphics.
  • The style used to fill geometry.
  • 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 Canvas 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

\ No newline at end of file diff --git a/iced/widget/canvas/struct.Canvas.html b/iced/widget/canvas/struct.Canvas.html index a15266174da..90d0aa8af1c 100644 --- a/iced/widget/canvas/struct.Canvas.html +++ b/iced/widget/canvas/struct.Canvas.html @@ -1,4 +1,4 @@ -Canvas in iced::widget::canvas - Rust
-

Implementations§

source§

impl<P, Message, Renderer> Canvas<P, Message, Renderer>where +

Implementations§

§

impl<P, Message, Renderer> Canvas<P, Message, Renderer>where Renderer: Renderer, - P: Program<Message, Renderer>,

source

pub fn new(program: P) -> Canvas<P, Message, Renderer>

Creates a new Canvas.

-
source

pub fn width(self, width: impl Into<Length>) -> Canvas<P, Message, Renderer>

Sets the width of the Canvas.

-
source

pub fn height(self, height: impl Into<Length>) -> Canvas<P, Message, Renderer>

Sets the height of the Canvas.

-

Trait Implementations§

source§

impl<P, Message, Renderer> Debug for Canvas<P, Message, Renderer>where + P: Program<Message, Renderer>,

pub fn new(program: P) -> Canvas<P, Message, Renderer>

Creates a new Canvas.

+

pub fn width(self, width: impl Into<Length>) -> Canvas<P, Message, Renderer>

Sets the width of the Canvas.

+

pub fn height(self, height: impl Into<Length>) -> Canvas<P, Message, Renderer>

Sets the height of the Canvas.

+

Trait Implementations§

§

impl<P, Message, Renderer> Debug for Canvas<P, Message, Renderer>where P: Debug + Program<Message, Renderer>, Message: Debug, - Renderer: Debug + Renderer,

source§

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

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

impl<P, Message, Renderer> Widget<Message, Renderer> for Canvas<P, Message, Renderer>where + Renderer: Debug + Renderer,

§

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

Formats the value using the given formatter. Read more
§

impl<P, Message, Renderer> Widget<Message, Renderer> for Canvas<P, Message, Renderer>where Renderer: Renderer, - P: Program<Message, 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 width(&self) -> Length

Returns the width of the Widget.
source§

fn height(&self) -> Length

Returns the height of the Widget.
source§

fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
source§

fn on_event( + P: Program<Message, Renderer>,

§

fn tag(&self) -> Tag

Returns the Tag of the Widget.
§

fn state(&self) -> State

Returns the State of the Widget.
§

fn width(&self) -> Length

Returns the width of the Widget.
§

fn height(&self) -> Length

Returns the height of the Widget.
§

fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
§

fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -51,14 +51,14 @@

Drawing a si _clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status

Processes a runtime Event. Read more
source§

fn mouse_interaction( +) -> Status

Processes a runtime Event. Read more
§

fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, _renderer: &Renderer -) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
source§

fn draw( +) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
§

fn draw( &self, tree: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/canvas/trait.Program.html b/iced/widget/canvas/trait.Program.html index da6ba7e0467..35ab5521546 100644 --- a/iced/widget/canvas/trait.Program.html +++ b/iced/widget/canvas/trait.Program.html @@ -1,4 +1,4 @@ -Program in iced::widget::canvas - Rust

Trait iced::widget::canvas::Program

source ·
pub trait Program<Message, Renderer = Renderer<Theme>>where
+Program in iced::widget::canvas - Rust

Trait iced::widget::canvas::Program

pub trait Program<Message, Renderer = Renderer<Theme>>where
     Renderer: Renderer,{
     type State: Default + 'static;
 
@@ -29,8 +29,8 @@
 }
Available on crate feature canvas only.
Expand description

The state and logic of a Canvas.

A Program can mutate internal state and produce messages for an application.

-

Required Associated Types§

source

type State: Default + 'static

The internal state mutated by the Program.

-

Required Methods§

Required Associated Types§

type State: Default + 'static

The internal state mutated by the Program.

+

Required Methods§

fn draw( &self, state: &Self::State, renderer: &Renderer, @@ -40,7 +40,7 @@ ) -> Vec<<Renderer as Renderer>::Geometry, Global>

Draws the state of the Program, producing a bunch of [Geometry].

[Geometry] can be easily generated with a Frame or stored in a Cache.

-

Provided Methods§

Provided Methods§

fn update( &self, _state: &mut Self::State, _event: Event, @@ -52,7 +52,7 @@

This method can optionally return a Message to notify an application of any meaningful interactions.

By default, this method does and returns nothing.

-

source

fn mouse_interaction( +

fn mouse_interaction( &self, _state: &Self::State, _bounds: Rectangle<f32>, @@ -60,22 +60,22 @@ ) -> Interaction

Returns the current mouse interaction of the Program.

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, Renderer, T> Program<Message, Renderer> for &Twhere +

Implementations on Foreign Types§

§

impl<Message, Renderer, T> Program<Message, Renderer> for &Twhere Renderer: Renderer, - T: Program<Message, Renderer>,

§

type State = <T as Program<Message, Renderer>>::State

source§

fn update( + T: Program<Message, Renderer>,

§

type State = <T as Program<Message, Renderer>>::State

§

fn update( &self, state: &mut <&T as Program<Message, Renderer>>::State, event: Event, bounds: Rectangle<f32>, cursor: Cursor -) -> (Status, Option<Message>)

source§

fn draw( +) -> (Status, Option<Message>)

§

fn draw( &self, state: &<&T as Program<Message, Renderer>>::State, renderer: &Renderer, theme: &<Renderer as Renderer>::Theme, bounds: Rectangle<f32>, cursor: Cursor -) -> Vec<<Renderer as Renderer>::Geometry, Global>

source§

fn mouse_interaction( +) -> Vec<<Renderer as Renderer>::Geometry, Global>

§

fn mouse_interaction( &self, state: &<&T as Program<Message, Renderer>>::State, bounds: Rectangle<f32>, diff --git a/iced/widget/checkbox/index.html b/iced/widget/checkbox/index.html index 9c7ef679e5a..10f5916a5e7 100644 --- a/iced/widget/checkbox/index.html +++ b/iced/widget/checkbox/index.html @@ -1,2 +1,2 @@ -iced::widget::checkbox - Rust

Module iced::widget::checkbox

source ·
Expand description

Show toggle controls using checkboxes.

+iced::widget::checkbox - Rust

Module iced::widget::checkbox

Expand description

Show toggle controls using checkboxes.

Structs

Traits

  • A set of rules that dictate the style of a checkbox.
\ No newline at end of file diff --git a/iced/widget/checkbox/struct.Checkbox.html b/iced/widget/checkbox/struct.Checkbox.html index 9bd3315eb8b..8ff944ed0d9 100644 --- a/iced/widget/checkbox/struct.Checkbox.html +++ b/iced/widget/checkbox/struct.Checkbox.html @@ -1,4 +1,4 @@ -Checkbox in iced::widget::checkbox - Rust

Checkbox drawn by iced_wgpu

-

Implementations§

source§

impl<'a, Message, Renderer> Checkbox<'a, Message, Renderer>where +

Implementations§

§

impl<'a, Message, Renderer> Checkbox<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

source

pub fn new<F>( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

pub fn new<F>( label: impl Into<String>, is_checked: bool, f: F @@ -26,36 +26,36 @@

Example

will receive the new state of the Checkbox and must produce a Message. -

source

pub fn size(self, size: impl Into<Pixels>) -> Checkbox<'a, Message, Renderer>

Sets the size of the Checkbox.

-
source

pub fn width(self, width: impl Into<Length>) -> Checkbox<'a, Message, Renderer>

Sets the width of the Checkbox.

-
source

pub fn spacing( +

pub fn size(self, size: impl Into<Pixels>) -> Checkbox<'a, Message, Renderer>

Sets the size of the Checkbox.

+

pub fn width(self, width: impl Into<Length>) -> Checkbox<'a, Message, Renderer>

Sets the width of the Checkbox.

+

pub fn spacing( self, spacing: impl Into<Pixels> ) -> Checkbox<'a, Message, Renderer>

Sets the spacing between the Checkbox and the text.

-
source

pub fn text_size( +

pub fn text_size( self, text_size: impl Into<Pixels> ) -> Checkbox<'a, Message, Renderer>

Sets the text size of the Checkbox.

-
source

pub fn text_line_height( +

pub fn text_line_height( self, line_height: impl Into<LineHeight> ) -> Checkbox<'a, Message, Renderer>

Sets the text [LineHeight] of the Checkbox.

-
source

pub fn text_shaping(self, shaping: Shaping) -> Checkbox<'a, Message, Renderer>

Sets the text::Shaping strategy of the Checkbox.

-
source

pub fn font( +

pub fn text_shaping(self, shaping: Shaping) -> Checkbox<'a, Message, Renderer>

Sets the text::Shaping strategy of the Checkbox.

+

pub fn font( self, font: impl Into<<Renderer as Renderer>::Font> ) -> Checkbox<'a, Message, Renderer>

Sets the Font of the text of the Checkbox.

-
source

pub fn icon( +

pub fn icon( self, icon: Icon<<Renderer as Renderer>::Font> ) -> Checkbox<'a, Message, Renderer>

Sets the Icon of the Checkbox.

-
source

pub fn style( +

pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Checkbox<'a, Message, Renderer>

Sets the style of the Checkbox.

-

Trait Implementations§

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Checkbox<'a, Message, Renderer>where +

Trait Implementations§

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Checkbox<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

source§

fn width(&self) -> Length

Returns the width of the Widget.
source§

fn height(&self) -> Length

Returns the height of the Widget.
source§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
source§

fn on_event( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

§

fn width(&self) -> Length

Returns the width of the Widget.
§

fn height(&self) -> Length

Returns the height of the Widget.
§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
§

fn on_event( &mut self, _tree: &mut Tree, event: Event, @@ -65,14 +65,14 @@

Example

_clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status
Processes a runtime Event. Read more
source§

fn mouse_interaction( +) -> Status

Processes a runtime Event. Read more
§

fn mouse_interaction( &self, _tree: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, _renderer: &Renderer -) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
source§

fn draw( +) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
§

fn draw( &self, _tree: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/checkbox/struct.Icon.html b/iced/widget/checkbox/struct.Icon.html index 9fc872c6397..2ffcdba4d3a 100644 --- a/iced/widget/checkbox/struct.Icon.html +++ b/iced/widget/checkbox/struct.Icon.html @@ -1,4 +1,4 @@ -Icon in iced::widget::checkbox - Rust

Struct iced::widget::checkbox::Icon

source ·
pub struct Icon<Font> {
+Icon in iced::widget::checkbox - Rust

Struct iced::widget::checkbox::Icon

pub struct Icon<Font> {
     pub font: Font,
     pub code_point: char,
     pub size: Option<f32>,
@@ -10,12 +10,12 @@
 
§size: Option<f32>

Font size of the content.

§line_height: LineHeight

The line height of the icon.

§shaping: Shaping

The shaping strategy of the icon.

-

Trait Implementations§

source§

impl<Font> Clone for Icon<Font>where - Font: Clone,

source§

fn clone(&self) -> Icon<Font>

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<Font> Debug for Icon<Font>where - Font: Debug,

source§

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

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

impl<Font> PartialEq<Icon<Font>> for Icon<Font>where - Font: PartialEq<Font>,

source§

fn eq(&self, other: &Icon<Font>) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl<Font> Clone for Icon<Font>where + Font: Clone,

§

fn clone(&self) -> Icon<Font>

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<Font> Debug for Icon<Font>where + Font: Debug,

§

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

Formats the value using the given formatter. Read more
§

impl<Font> PartialEq<Icon<Font>> for Icon<Font>where + Font: PartialEq<Font>,

§

fn eq(&self, other: &Icon<Font>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<Font> StructuralPartialEq for Icon<Font>

Auto Trait Implementations§

§

impl<Font> RefUnwindSafe for Icon<Font>where +sufficient, and should not be overridden without very good reason.

§

impl<Font> StructuralPartialEq for Icon<Font>

Auto Trait Implementations§

§

impl<Font> RefUnwindSafe for Icon<Font>where Font: RefUnwindSafe,

§

impl<Font> Send for Icon<Font>where Font: Send,

§

impl<Font> Sync for Icon<Font>where Font: Sync,

§

impl<Font> Unpin for Icon<Font>where diff --git a/iced/widget/combo_box/fn.build_matchers.html b/iced/widget/combo_box/fn.build_matchers.html index e30f06d51a5..73febc0c3e4 100644 --- a/iced/widget/combo_box/fn.build_matchers.html +++ b/iced/widget/combo_box/fn.build_matchers.html @@ -1,4 +1,4 @@ -build_matchers in iced::widget::combo_box - Rust
pub fn build_matchers<'a, T>(
+build_matchers in iced::widget::combo_box - Rust
pub fn build_matchers<'a, T>(
     options: impl IntoIterator<Item = T> + 'a
 ) -> Vec<String, Global>where
     T: Display + 'a,
Expand description

Build matchers from given list of options.

diff --git a/iced/widget/combo_box/fn.search.html b/iced/widget/combo_box/fn.search.html index 0dcc7303d8a..a0d262e355a 100644 --- a/iced/widget/combo_box/fn.search.html +++ b/iced/widget/combo_box/fn.search.html @@ -1,4 +1,4 @@ -search in iced::widget::combo_box - Rust

Function iced::widget::combo_box::search

source ·
pub fn search<'a, T, A>(
+search in iced::widget::combo_box - Rust

Function iced::widget::combo_box::search

pub fn search<'a, T, A>(
     options: impl IntoIterator<Item = T> + 'a,
     option_matchers: impl IntoIterator<Item = &'a A> + 'a,
     query: &'a str
diff --git a/iced/widget/combo_box/index.html b/iced/widget/combo_box/index.html
index 4de31657306..403912817fc 100644
--- a/iced/widget/combo_box/index.html
+++ b/iced/widget/combo_box/index.html
@@ -1,2 +1,2 @@
-iced::widget::combo_box - Rust

Module iced::widget::combo_box

source ·
Expand description

Display a dropdown list of searchable and selectable options.

+iced::widget::combo_box - Rust

Module iced::widget::combo_box

Expand description

Display a dropdown list of searchable and selectable options.

Structs

  • A widget for searching and selecting a single value from a list of options.
  • The local state of a ComboBox.

Functions

  • Build matchers from given list of options.
  • Search list of options for a given query.
\ No newline at end of file diff --git a/iced/widget/combo_box/struct.ComboBox.html b/iced/widget/combo_box/struct.ComboBox.html index 7ba3fbaf3c3..81c8bc4ed8d 100644 --- a/iced/widget/combo_box/struct.ComboBox.html +++ b/iced/widget/combo_box/struct.ComboBox.html @@ -1,13 +1,13 @@ -ComboBox in iced::widget::combo_box - Rust

Struct iced::widget::combo_box::ComboBox

source ·
pub struct ComboBox<'a, T, Message, Renderer = Renderer<Theme>>where
+ComboBox in iced::widget::combo_box - Rust

Struct iced::widget::combo_box::ComboBox

pub struct ComboBox<'a, T, Message, Renderer = Renderer<Theme>>where
     Renderer: Renderer,
     <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,{ /* private fields */ }
Expand description

A widget for searching and selecting a single value from a list of options.

This widget is composed by a TextInput that can be filled with the text to search for corresponding values from the list of options that are displayed as a [Menu].

-

Implementations§

source§

impl<'a, T, Message, Renderer> ComboBox<'a, T, Message, Renderer>where +

Implementations§

§

impl<'a, T, Message, Renderer> ComboBox<'a, T, Message, Renderer>where T: Display + Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

source

pub fn new( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

pub fn new( state: &'a State<T>, placeholder: &str, selection: Option<&T>, @@ -15,49 +15,49 @@ ) -> ComboBox<'a, T, Message, Renderer>

Creates a new ComboBox with the given list of options, a placeholder, the current selected value, and the message to produce when an option is selected.

-
source

pub fn on_input( +

pub fn on_input( self, on_input: impl Fn(String) -> Message + 'static ) -> ComboBox<'a, T, Message, Renderer>

Sets the message that should be produced when some text is typed into the TextInput of the ComboBox.

-
source

pub fn on_option_hovered( +

pub fn on_option_hovered( self, on_option_hovered: impl Fn(T) -> Message + 'static ) -> ComboBox<'a, T, Message, Renderer>

Sets the message that will be produced when an option of the ComboBox is hovered using the arrow keys.

-
source

pub fn on_close(self, message: Message) -> ComboBox<'a, T, Message, Renderer>

Sets the message that will be produced when the outside area +

pub fn on_close(self, message: Message) -> ComboBox<'a, T, Message, Renderer>

Sets the message that will be produced when the outside area of the ComboBox is pressed.

-
source

pub fn padding( +

pub fn padding( self, padding: impl Into<Padding> ) -> ComboBox<'a, T, Message, Renderer>

Sets the Padding of the ComboBox.

-
source

pub fn style<S>(self, style: S) -> ComboBox<'a, T, Message, Renderer>where +

pub fn style<S>(self, style: S) -> ComboBox<'a, T, Message, Renderer>where S: Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> + Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> + Clone,

Sets the style of the ComboBox.

-
source

pub fn text_input_style<S>(self, style: S) -> ComboBox<'a, T, Message, Renderer>where +

pub fn text_input_style<S>(self, style: S) -> ComboBox<'a, T, Message, Renderer>where S: Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> + Clone,

Sets the style of the TextInput of the ComboBox.

-
source

pub fn font( +

pub fn font( self, font: <Renderer as Renderer>::Font ) -> ComboBox<'a, T, Message, Renderer>

Sets the [Font] of the ComboBox.

-
source

pub fn icon( +

pub fn icon( self, icon: Icon<<Renderer as Renderer>::Font> ) -> ComboBox<'a, T, Message, Renderer>

Sets the [Icon] of the ComboBox.

-
source

pub fn is_focused(&self) -> bool

Returns whether the ComboBox is currently focused or not.

-
source

pub fn size(self, size: f32) -> ComboBox<'a, T, Message, Renderer>

Sets the text sixe of the ComboBox.

-
source

pub fn line_height( +

pub fn is_focused(&self) -> bool

Returns whether the ComboBox is currently focused or not.

+

pub fn size(self, size: f32) -> ComboBox<'a, T, Message, Renderer>

Sets the text sixe of the ComboBox.

+

pub fn line_height( self, line_height: impl Into<LineHeight> ) -> ComboBox<'a, T, Message, Renderer>

Sets the LineHeight of the ComboBox.

-
source

pub fn width( +

pub fn width( self, width: impl Into<Length> ) -> ComboBox<'a, T, Message, Renderer>

Sets the width of the ComboBox.

-

Trait Implementations§

source§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for ComboBox<'a, T, Message, Renderer>where +

Trait Implementations§

§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for ComboBox<'a, T, Message, Renderer>where T: Display + Clone + 'static, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet,

source§

fn width(&self) -> Length

Returns the width of the Widget.
source§

fn height(&self) -> Length

Returns the height of the Widget.
source§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
source§

fn tag(&self) -> Tag

Returns the Tag of the Widget.
source§

fn state(&self) -> State

Returns the State of the Widget.
source§

fn on_event( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet,

§

fn width(&self) -> Length

Returns the width of the Widget.
§

fn height(&self) -> Length

Returns the height of the Widget.
§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
§

fn tag(&self) -> Tag

Returns the Tag of the Widget.
§

fn state(&self) -> State

Returns the State of the Widget.
§

fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -67,14 +67,14 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status

Processes a runtime Event. Read more
source§

fn mouse_interaction( +) -> Status

Processes a runtime Event. Read more
§

fn mouse_interaction( &self, _tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
source§

fn draw( +) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
§

fn draw( &self, _tree: &Tree, renderer: &mut Renderer, @@ -83,7 +83,7 @@ layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32> -)

Draws the Widget using the associated Renderer.
source§

fn overlay<'b>( +)

Draws the Widget using the associated Renderer.
§

fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/combo_box/struct.State.html b/iced/widget/combo_box/struct.State.html index e6e76fb2c80..fbcd2fbed2c 100644 --- a/iced/widget/combo_box/struct.State.html +++ b/iced/widget/combo_box/struct.State.html @@ -1,18 +1,18 @@ -State in iced::widget::combo_box - Rust

Struct iced::widget::combo_box::State

source ·
pub struct State<T>(_);
Expand description

The local state of a ComboBox.

-

Implementations§

source§

impl<T> State<T>where - T: Display + Clone,

source

pub fn new(options: Vec<T, Global>) -> State<T>

Creates a new State for a ComboBox with the given list of options.

-
source

pub fn with_selection( +State in iced::widget::combo_box - Rust

Struct iced::widget::combo_box::State

pub struct State<T>(_);
Expand description

The local state of a ComboBox.

+

Implementations§

§

impl<T> State<T>where + T: Display + Clone,

pub fn new(options: Vec<T, Global>) -> State<T>

Creates a new State for a ComboBox with the given list of options.

+

pub fn with_selection( options: Vec<T, Global>, selection: Option<&T> ) -> State<T>

Creates a new State for a ComboBox with the given list of options and selected value.

-
source

pub fn focused(self) -> State<T>

Focuses the ComboBox.

-
source

pub fn focus(&self)

Focuses the ComboBox.

-
source

pub fn unfocus(&self)

Unfocuses the ComboBox.

-
source

pub fn is_focused(&self) -> bool

Returns whether the ComboBox is currently focused or not.

-

Trait Implementations§

source§

impl<T> Clone for State<T>where - T: Clone,

source§

fn clone(&self) -> State<T>

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<T> Debug for State<T>where - T: Debug,

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> !RefUnwindSafe for State<T>

§

impl<T> Send for State<T>where +

pub fn focused(self) -> State<T>

Focuses the ComboBox.

+

pub fn focus(&self)

Focuses the ComboBox.

+

pub fn unfocus(&self)

Unfocuses the ComboBox.

+

pub fn is_focused(&self) -> bool

Returns whether the ComboBox is currently focused or not.

+

Trait Implementations§

§

impl<T> Clone for State<T>where + T: Clone,

§

fn clone(&self) -> State<T>

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<T> Debug for State<T>where + T: Debug,

§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> !RefUnwindSafe for State<T>

§

impl<T> Send for State<T>where T: Send,

§

impl<T> !Sync for State<T>

§

impl<T> Unpin for State<T>where T: Unpin,

§

impl<T> UnwindSafe for State<T>where T: UnwindSafe,

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere diff --git a/iced/widget/container/fn.draw_background.html b/iced/widget/container/fn.draw_background.html index b57934dd8d6..68e312b9ebe 100644 --- a/iced/widget/container/fn.draw_background.html +++ b/iced/widget/container/fn.draw_background.html @@ -1,4 +1,4 @@ -draw_background in iced::widget::container - Rust
pub fn draw_background<Renderer>(
+draw_background in iced::widget::container - Rust
pub fn draw_background<Renderer>(
     renderer: &mut Renderer,
     appearance: &Appearance,
     bounds: Rectangle<f32>
diff --git a/iced/widget/container/fn.layout.html b/iced/widget/container/fn.layout.html
index 19d3b83cfb5..b0dae0a73b3 100644
--- a/iced/widget/container/fn.layout.html
+++ b/iced/widget/container/fn.layout.html
@@ -1,4 +1,4 @@
-layout in iced::widget::container - Rust

Function iced::widget::container::layout

source ·
pub fn layout<Renderer>(
+layout in iced::widget::container - Rust

Function iced::widget::container::layout

pub fn layout<Renderer>(
     renderer: &Renderer,
     limits: &Limits,
     width: Length,
diff --git a/iced/widget/container/fn.visible_bounds.html b/iced/widget/container/fn.visible_bounds.html
index 01da9df5e86..e5d45bdf3b5 100644
--- a/iced/widget/container/fn.visible_bounds.html
+++ b/iced/widget/container/fn.visible_bounds.html
@@ -1,3 +1,3 @@
-visible_bounds in iced::widget::container - Rust
pub fn visible_bounds(id: Id) -> Command<Option<Rectangle<f32>>>
Expand description

Produces a Command that queries the visible screen bounds of the +visible_bounds in iced::widget::container - Rust

pub fn visible_bounds(id: Id) -> Command<Option<Rectangle<f32>>>
Expand description

Produces a Command that queries the visible screen bounds of the Container with the given Id.

\ No newline at end of file diff --git a/iced/widget/container/index.html b/iced/widget/container/index.html index ed3857530f5..a03859d2f81 100644 --- a/iced/widget/container/index.html +++ b/iced/widget/container/index.html @@ -1,3 +1,3 @@ -iced::widget::container - Rust

Module iced::widget::container

source ·
Expand description

Decorate content and apply alignment.

+iced::widget::container - Rust

Module iced::widget::container

Expand description

Decorate content and apply alignment.

Structs

Traits

Functions

\ No newline at end of file diff --git a/iced/widget/container/struct.Container.html b/iced/widget/container/struct.Container.html index daf3072c1f6..ff395dea80f 100644 --- a/iced/widget/container/struct.Container.html +++ b/iced/widget/container/struct.Container.html @@ -1,44 +1,44 @@ -Container in iced::widget::container - Rust
pub struct Container<'a, Message, Renderer = Renderer<Theme>>where
+Container in iced::widget::container - Rust
pub struct Container<'a, Message, Renderer = Renderer<Theme>>where
     Renderer: Renderer,
     <Renderer as Renderer>::Theme: StyleSheet,{ /* private fields */ }
Expand description

An element decorating some content.

It is normally used for alignment purposes.

-

Implementations§

source§

impl<'a, Message, Renderer> Container<'a, Message, Renderer>where +

Implementations§

§

impl<'a, Message, Renderer> Container<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source

pub fn new<T>(content: T) -> Container<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

pub fn new<T>(content: T) -> Container<'a, Message, Renderer>where T: Into<Element<'a, Message, Renderer>>,

Creates an empty Container.

-
source

pub fn id(self, id: Id) -> Container<'a, Message, Renderer>

Sets the Id of the Container.

-
source

pub fn padding<P>(self, padding: P) -> Container<'a, Message, Renderer>where +

pub fn id(self, id: Id) -> Container<'a, Message, Renderer>

Sets the Id of the Container.

+

pub fn padding<P>(self, padding: P) -> Container<'a, Message, Renderer>where P: Into<Padding>,

Sets the Padding of the Container.

-
source

pub fn width(self, width: impl Into<Length>) -> Container<'a, Message, Renderer>

Sets the width of the Container.

-
source

pub fn height( +

pub fn width(self, width: impl Into<Length>) -> Container<'a, Message, Renderer>

Sets the width of the Container.

+

pub fn height( self, height: impl Into<Length> ) -> Container<'a, Message, Renderer>

Sets the height of the Container.

-
source

pub fn max_width( +

pub fn max_width( self, max_width: impl Into<Pixels> ) -> Container<'a, Message, Renderer>

Sets the maximum width of the Container.

-
source

pub fn max_height( +

pub fn max_height( self, max_height: impl Into<Pixels> ) -> Container<'a, Message, Renderer>

Sets the maximum height of the Container.

-
source

pub fn align_x(self, alignment: Horizontal) -> Container<'a, Message, Renderer>

Sets the content alignment for the horizontal axis of the Container.

-
source

pub fn align_y(self, alignment: Vertical) -> Container<'a, Message, Renderer>

Sets the content alignment for the vertical axis of the Container.

-
source

pub fn center_x(self) -> Container<'a, Message, Renderer>

Centers the contents in the horizontal axis of the Container.

-
source

pub fn center_y(self) -> Container<'a, Message, Renderer>

Centers the contents in the vertical axis of the Container.

-
source

pub fn style( +

pub fn align_x(self, alignment: Horizontal) -> Container<'a, Message, Renderer>

Sets the content alignment for the horizontal axis of the Container.

+

pub fn align_y(self, alignment: Vertical) -> Container<'a, Message, Renderer>

Sets the content alignment for the vertical axis of the Container.

+

pub fn center_x(self) -> Container<'a, Message, Renderer>

Centers the contents in the horizontal axis of the Container.

+

pub fn center_y(self) -> Container<'a, Message, Renderer>

Centers the contents in the vertical axis of the Container.

+

pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Container<'a, Message, Renderer>

Sets the style of the Container.

-

Trait Implementations§

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Container<'a, Message, Renderer>where +

Trait Implementations§

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for Container<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

fn children(&self) -> Vec<Tree, Global>

Returns the state Tree of the children of the Widget.
source§

fn diff(&self, tree: &mut Tree)

Reconciliates the Widget with the provided Tree.
source§

fn width(&self) -> Length

Returns the width of the Widget.
source§

fn height(&self) -> Length

Returns the height of the Widget.
source§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
source§

fn operate( + <Renderer as Renderer>::Theme: StyleSheet,

§

fn children(&self) -> Vec<Tree, Global>

Returns the state Tree of the children of the Widget.
§

fn diff(&self, tree: &mut Tree)

Reconciliates the Widget with the provided Tree.
§

fn width(&self) -> Length

Returns the width of the Widget.
§

fn height(&self) -> Length

Returns the height of the Widget.
§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
§

fn operate( &self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation<Message> -)

Applies an Operation to the Widget.
source§

fn on_event( +)

Applies an Operation to the Widget.
§

fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -48,14 +48,14 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status

Processes a runtime Event. Read more
source§

fn mouse_interaction( +) -> Status

Processes a runtime Event. Read more
§

fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
source§

fn draw( +) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
§

fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -64,7 +64,7 @@ layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32> -)

Draws the Widget using the associated Renderer.
source§

fn overlay<'b>( +)

Draws the Widget using the associated Renderer.
§

fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/container/struct.Id.html b/iced/widget/container/struct.Id.html index 4f795a47aa4..895a2a82ad4 100644 --- a/iced/widget/container/struct.Id.html +++ b/iced/widget/container/struct.Id.html @@ -1,13 +1,13 @@ -Id in iced::widget::container - Rust

Struct iced::widget::container::Id

source ·
pub struct Id(_);
Expand description

The identifier of a Container.

-

Implementations§

source§

impl Id

source

pub fn new(id: impl Into<Cow<'static, str>>) -> Id

Creates a custom Id.

-
source

pub fn unique() -> Id

Creates a unique Id.

+Id in iced::widget::container - Rust

Struct iced::widget::container::Id

pub struct Id(_);
Expand description

The identifier of a Container.

+

Implementations§

§

impl Id

pub fn new(id: impl Into<Cow<'static, str>>) -> Id

Creates a custom Id.

+

pub fn unique() -> Id

Creates a unique Id.

This function produces a different Id every time it is called.

-

Trait Implementations§

source§

impl Clone for Id

source§

fn clone(&self) -> Id

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 Id

source§

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

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

impl From<Id> for Id

source§

fn from(id: Id) -> Id

Converts to this type from the input type.
source§

impl Hash for Id

source§

fn hash<__H>(&self, state: &mut __H)where +

Trait Implementations§

§

impl Clone for Id

§

fn clone(&self) -> Id

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 Id

§

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

Formats the value using the given formatter. Read more
§

impl From<Id> for Id

§

fn from(id: Id) -> Id

Converts to this type from the input type.
§

impl Hash for Id

§

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 PartialEq<Id> for Id

source§

fn eq(&self, other: &Id) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl PartialEq<Id> for Id

§

fn eq(&self, other: &Id) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Eq for Id

source§

impl StructuralEq for Id

source§

impl StructuralPartialEq for Id

Auto Trait Implementations§

§

impl RefUnwindSafe for Id

§

impl Send for Id

§

impl Sync for Id

§

impl Unpin for Id

§

impl UnwindSafe for Id

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

§

impl Eq for Id

§

impl StructuralEq for Id

§

impl StructuralPartialEq for Id

Auto Trait Implementations§

§

impl RefUnwindSafe for Id

§

impl Send for Id

§

impl Sync for Id

§

impl Unpin for Id

§

impl UnwindSafe for Id

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/fn.button.html b/iced/widget/fn.button.html index 8a092c5eb98..14e3d04142c 100644 --- a/iced/widget/fn.button.html +++ b/iced/widget/fn.button.html @@ -1,4 +1,4 @@ -button in iced::widget - Rust

Function iced::widget::button

source ·
pub fn button<'a, Message, Renderer>(
+button in iced::widget - Rust

Function iced::widget::button

pub fn button<'a, Message, Renderer>(
     content: impl Into<Element<'a, Message, Renderer>>
 ) -> Button<'a, Message, Renderer>where
     Renderer: Renderer,
diff --git a/iced/widget/fn.canvas.html b/iced/widget/fn.canvas.html
index 6ae62e0a846..684e1baa0bd 100644
--- a/iced/widget/fn.canvas.html
+++ b/iced/widget/fn.canvas.html
@@ -1,4 +1,4 @@
-canvas in iced::widget - Rust

Function iced::widget::canvas

source ·
pub fn canvas<P, Message, Renderer>(program: P) -> Canvas<P, Message, Renderer>where
+canvas in iced::widget - Rust

Function iced::widget::canvas

pub fn canvas<P, Message, Renderer>(program: P) -> Canvas<P, Message, Renderer>where
     Renderer: Renderer,
     P: Program<Message, Renderer>,
Available on crate feature canvas only.
Expand description

Creates a new [Canvas].

\ No newline at end of file diff --git a/iced/widget/fn.checkbox.html b/iced/widget/fn.checkbox.html index 4b251818cdf..7ebbcc7eee3 100644 --- a/iced/widget/fn.checkbox.html +++ b/iced/widget/fn.checkbox.html @@ -1,4 +1,4 @@ -checkbox in iced::widget - Rust

Function iced::widget::checkbox

source ·
pub fn checkbox<'a, Message, Renderer>(
+checkbox in iced::widget - Rust

Function iced::widget::checkbox

pub fn checkbox<'a, Message, Renderer>(
     label: impl Into<String>,
     is_checked: bool,
     f: impl Fn(bool) -> Message + 'a
diff --git a/iced/widget/fn.column.html b/iced/widget/fn.column.html
index 39f8ec58cae..d01402d32f8 100644
--- a/iced/widget/fn.column.html
+++ b/iced/widget/fn.column.html
@@ -1,4 +1,4 @@
-column in iced::widget - Rust

Function iced::widget::column

source ·
pub fn column<Message, Renderer>(
+column in iced::widget - Rust

Function iced::widget::column

pub fn column<Message, Renderer>(
     children: Vec<Element<'_, Message, Renderer>, Global>
 ) -> Column<'_, Message, Renderer>
Expand description

Creates a new Column with the given children.

\ No newline at end of file diff --git a/iced/widget/fn.combo_box.html b/iced/widget/fn.combo_box.html index 6ca7ca256c8..c6c3c42cd85 100644 --- a/iced/widget/fn.combo_box.html +++ b/iced/widget/fn.combo_box.html @@ -1,4 +1,4 @@ -combo_box in iced::widget - Rust

Function iced::widget::combo_box

source ·
pub fn combo_box<T, Message, Renderer, 'a>(
+combo_box in iced::widget - Rust

Function iced::widget::combo_box

pub fn combo_box<T, Message, Renderer, 'a>(
     state: &'a State<T>,
     placeholder: &str,
     selection: Option<&T>,
diff --git a/iced/widget/fn.component.html b/iced/widget/fn.component.html
index d7b9a064fc0..b8ad2a30e47 100644
--- a/iced/widget/fn.component.html
+++ b/iced/widget/fn.component.html
@@ -1,4 +1,4 @@
-component in iced::widget - Rust

Function iced::widget::component

source ·
pub fn component<'a, C, Message, Renderer>(
+component in iced::widget - Rust

Function iced::widget::component

pub fn component<'a, C, Message, Renderer>(
     component: C
 ) -> Element<'a, Message, Renderer>where
     C: Component<Message, Renderer> + 'a,
diff --git a/iced/widget/fn.container.html b/iced/widget/fn.container.html
index 74be6b1ed5e..103445bfa42 100644
--- a/iced/widget/fn.container.html
+++ b/iced/widget/fn.container.html
@@ -1,4 +1,4 @@
-container in iced::widget - Rust

Function iced::widget::container

source ·
pub fn container<'a, Message, Renderer>(
+container in iced::widget - Rust

Function iced::widget::container

pub fn container<'a, Message, Renderer>(
     content: impl Into<Element<'a, Message, Renderer>>
 ) -> Container<'a, Message, Renderer>where
     Renderer: Renderer,
diff --git a/iced/widget/fn.focus_next.html b/iced/widget/fn.focus_next.html
index 317c2f00d60..64b77288823 100644
--- a/iced/widget/fn.focus_next.html
+++ b/iced/widget/fn.focus_next.html
@@ -1,3 +1,3 @@
-focus_next in iced::widget - Rust

Function iced::widget::focus_next

source ·
pub fn focus_next<Message>() -> Command<Message>where
+focus_next in iced::widget - Rust

Function iced::widget::focus_next

pub fn focus_next<Message>() -> Command<Message>where
     Message: 'static,
Expand description

Focuses the next focusable widget.

\ No newline at end of file diff --git a/iced/widget/fn.focus_previous.html b/iced/widget/fn.focus_previous.html index 19f5547b597..b90504cb178 100644 --- a/iced/widget/fn.focus_previous.html +++ b/iced/widget/fn.focus_previous.html @@ -1,3 +1,3 @@ -focus_previous in iced::widget - Rust

Function iced::widget::focus_previous

source ·
pub fn focus_previous<Message>() -> Command<Message>where
+focus_previous in iced::widget - Rust

Function iced::widget::focus_previous

pub fn focus_previous<Message>() -> Command<Message>where
     Message: 'static,
Expand description

Focuses the previous focusable widget.

\ No newline at end of file diff --git a/iced/widget/fn.horizontal_rule.html b/iced/widget/fn.horizontal_rule.html index bed2495e21f..476549f6cee 100644 --- a/iced/widget/fn.horizontal_rule.html +++ b/iced/widget/fn.horizontal_rule.html @@ -1,4 +1,4 @@ -horizontal_rule in iced::widget - Rust

Function iced::widget::horizontal_rule

source ·
pub fn horizontal_rule<Renderer>(height: impl Into<Pixels>) -> Rule<Renderer>where
+horizontal_rule in iced::widget - Rust

Function iced::widget::horizontal_rule

pub fn horizontal_rule<Renderer>(height: impl Into<Pixels>) -> Rule<Renderer>where
     Renderer: Renderer,
     <Renderer as Renderer>::Theme: StyleSheet,
Expand description

Creates a horizontal Rule with the given height.

\ No newline at end of file diff --git a/iced/widget/fn.horizontal_space.html b/iced/widget/fn.horizontal_space.html index c6381e00db3..236b8a9e178 100644 --- a/iced/widget/fn.horizontal_space.html +++ b/iced/widget/fn.horizontal_space.html @@ -1,2 +1,2 @@ -horizontal_space in iced::widget - Rust

Function iced::widget::horizontal_space

source ·
pub fn horizontal_space(width: impl Into<Length>) -> Space
Expand description

Creates a new horizontal Space with the given Length.

+horizontal_space in iced::widget - Rust

Function iced::widget::horizontal_space

pub fn horizontal_space(width: impl Into<Length>) -> Space
Expand description

Creates a new horizontal Space with the given Length.

\ No newline at end of file diff --git a/iced/widget/fn.image.html b/iced/widget/fn.image.html index ebe8b5f0b9e..3f957454a7e 100644 --- a/iced/widget/fn.image.html +++ b/iced/widget/fn.image.html @@ -1,2 +1,2 @@ -image in iced::widget - Rust

Function iced::widget::image

source ·
pub fn image<Handle>(handle: impl Into<Handle>) -> Image<Handle>
Available on crate feature image only.
Expand description

Creates a new Image.

+image in iced::widget - Rust

Function iced::widget::image

pub fn image<Handle>(handle: impl Into<Handle>) -> Image<Handle>
Available on crate feature image only.
Expand description

Creates a new Image.

\ No newline at end of file diff --git a/iced/widget/fn.lazy.html b/iced/widget/fn.lazy.html index 6fdf5afb4e7..b4bbee9d15f 100644 --- a/iced/widget/fn.lazy.html +++ b/iced/widget/fn.lazy.html @@ -1,4 +1,4 @@ -lazy in iced::widget - Rust

Function iced::widget::lazy

source ·
pub fn lazy<'a, Message, Renderer, Dependency, View>(
+lazy in iced::widget - Rust

Function iced::widget::lazy

pub fn lazy<'a, Message, Renderer, Dependency, View>(
     dependency: Dependency,
     view: impl Fn(&Dependency) -> View + 'a
 ) -> Lazy<'a, Message, Renderer, Dependency, View>where
diff --git a/iced/widget/fn.mouse_area.html b/iced/widget/fn.mouse_area.html
index bf10a0e2026..b05adbc53f3 100644
--- a/iced/widget/fn.mouse_area.html
+++ b/iced/widget/fn.mouse_area.html
@@ -1,4 +1,4 @@
-mouse_area in iced::widget - Rust

Function iced::widget::mouse_area

source ·
pub fn mouse_area<'a, Message, Renderer>(
+mouse_area in iced::widget - Rust

Function iced::widget::mouse_area

pub fn mouse_area<'a, Message, Renderer>(
     widget: impl Into<Element<'a, Message, Renderer>>
 ) -> MouseArea<'a, Message, Renderer>where
     Renderer: Renderer,
Expand description

A container intercepting mouse events.

diff --git a/iced/widget/fn.pick_list.html b/iced/widget/fn.pick_list.html index 585e4ac3d27..02ef33399bb 100644 --- a/iced/widget/fn.pick_list.html +++ b/iced/widget/fn.pick_list.html @@ -1,4 +1,4 @@ -pick_list in iced::widget - Rust

Function iced::widget::pick_list

source ·
pub fn pick_list<'a, Message, Renderer, T>(
+pick_list in iced::widget - Rust

Function iced::widget::pick_list

pub fn pick_list<'a, Message, Renderer, T>(
     options: impl Into<Cow<'a, [T]>>,
     selected: Option<T>,
     on_selected: impl Fn(T) -> Message + 'a
diff --git a/iced/widget/fn.progress_bar.html b/iced/widget/fn.progress_bar.html
index 76acb1d13ca..e194bab95ae 100644
--- a/iced/widget/fn.progress_bar.html
+++ b/iced/widget/fn.progress_bar.html
@@ -1,4 +1,4 @@
-progress_bar in iced::widget - Rust

Function iced::widget::progress_bar

source ·
pub fn progress_bar<Renderer>(
+progress_bar in iced::widget - Rust

Function iced::widget::progress_bar

pub fn progress_bar<Renderer>(
     range: RangeInclusive<f32>,
     value: f32
 ) -> ProgressBar<Renderer>where
diff --git a/iced/widget/fn.radio.html b/iced/widget/fn.radio.html
index 68ea1a24bf5..3896b8a7129 100644
--- a/iced/widget/fn.radio.html
+++ b/iced/widget/fn.radio.html
@@ -1,4 +1,4 @@
-radio in iced::widget - Rust

Function iced::widget::radio

source ·
pub fn radio<Message, Renderer, V>(
+radio in iced::widget - Rust

Function iced::widget::radio

pub fn radio<Message, Renderer, V>(
     label: impl Into<String>,
     value: V,
     selected: Option<V>,
diff --git a/iced/widget/fn.responsive.html b/iced/widget/fn.responsive.html
index 94528c566b8..2225a9afe56 100644
--- a/iced/widget/fn.responsive.html
+++ b/iced/widget/fn.responsive.html
@@ -1,4 +1,4 @@
-responsive in iced::widget - Rust

Function iced::widget::responsive

source ·
pub fn responsive<'a, Message, Renderer>(
+responsive in iced::widget - Rust

Function iced::widget::responsive

pub fn responsive<'a, Message, Renderer>(
     f: impl Fn(Size<f32>) -> Element<'a, Message, Renderer> + 'a
 ) -> Responsive<'a, Message, Renderer>where
     Renderer: Renderer,
Expand description

Creates a new Responsive widget with a closure that produces its diff --git a/iced/widget/fn.row.html b/iced/widget/fn.row.html index 61a92105b0b..65a53d8dbd7 100644 --- a/iced/widget/fn.row.html +++ b/iced/widget/fn.row.html @@ -1,4 +1,4 @@ -row in iced::widget - Rust

Function iced::widget::row

source ·
pub fn row<Message, Renderer>(
+row in iced::widget - Rust

Function iced::widget::row

pub fn row<Message, Renderer>(
     children: Vec<Element<'_, Message, Renderer>, Global>
 ) -> Row<'_, Message, Renderer>
Expand description

Creates a new Row with the given children.

\ No newline at end of file diff --git a/iced/widget/fn.scrollable.html b/iced/widget/fn.scrollable.html index f55b93c4108..60e1cecf69c 100644 --- a/iced/widget/fn.scrollable.html +++ b/iced/widget/fn.scrollable.html @@ -1,4 +1,4 @@ -scrollable in iced::widget - Rust

Function iced::widget::scrollable

source ·
pub fn scrollable<'a, Message, Renderer>(
+scrollable in iced::widget - Rust

Function iced::widget::scrollable

pub fn scrollable<'a, Message, Renderer>(
     content: impl Into<Element<'a, Message, Renderer>>
 ) -> Scrollable<'a, Message, Renderer>where
     Renderer: Renderer,
diff --git a/iced/widget/fn.slider.html b/iced/widget/fn.slider.html
index c823c842dea..c0b0cd3f905 100644
--- a/iced/widget/fn.slider.html
+++ b/iced/widget/fn.slider.html
@@ -1,4 +1,4 @@
-slider in iced::widget - Rust

Function iced::widget::slider

source ·
pub fn slider<'a, T, Message, Renderer>(
+slider in iced::widget - Rust

Function iced::widget::slider

pub fn slider<'a, T, Message, Renderer>(
     range: RangeInclusive<T>,
     value: T,
     on_change: impl Fn(T) -> Message + 'a
diff --git a/iced/widget/fn.svg.html b/iced/widget/fn.svg.html
index 9042add665f..72430ddd7d2 100644
--- a/iced/widget/fn.svg.html
+++ b/iced/widget/fn.svg.html
@@ -1,4 +1,4 @@
-svg in iced::widget - Rust

Function iced::widget::svg

source ·
pub fn svg<Renderer>(handle: impl Into<Handle>) -> Svg<Renderer>where
+svg in iced::widget - Rust

Function iced::widget::svg

pub fn svg<Renderer>(handle: impl Into<Handle>) -> Svg<Renderer>where
     Renderer: Renderer,
     <Renderer as Renderer>::Theme: StyleSheet,
Available on crate feature svg only.
Expand description

Creates a new Svg widget from the given Handle.

\ No newline at end of file diff --git a/iced/widget/fn.text.html b/iced/widget/fn.text.html index 3f9d7d20f65..649f281ceac 100644 --- a/iced/widget/fn.text.html +++ b/iced/widget/fn.text.html @@ -1,4 +1,4 @@ -text in iced::widget - Rust

Function iced::widget::text

source ·
pub fn text<'a, Renderer>(text: impl ToString) -> Text<'a, Renderer>where
+text in iced::widget - Rust

Function iced::widget::text

pub fn text<'a, Renderer>(text: impl ToString) -> Text<'a, Renderer>where
     Renderer: Renderer,
     <Renderer as Renderer>::Theme: StyleSheet,
Expand description

Creates a new Text widget with the provided content.

\ No newline at end of file diff --git a/iced/widget/fn.text_input.html b/iced/widget/fn.text_input.html index 0dc64232378..28b2e37d4cf 100644 --- a/iced/widget/fn.text_input.html +++ b/iced/widget/fn.text_input.html @@ -1,4 +1,4 @@ -text_input in iced::widget - Rust

Function iced::widget::text_input

source ·
pub fn text_input<'a, Message, Renderer>(
+text_input in iced::widget - Rust

Function iced::widget::text_input

pub fn text_input<'a, Message, Renderer>(
     placeholder: &str,
     value: &str
 ) -> TextInput<'a, Message, Renderer>where
diff --git a/iced/widget/fn.toggler.html b/iced/widget/fn.toggler.html
index 828cd0aa9a5..512f5ce53d0 100644
--- a/iced/widget/fn.toggler.html
+++ b/iced/widget/fn.toggler.html
@@ -1,4 +1,4 @@
-toggler in iced::widget - Rust

Function iced::widget::toggler

source ·
pub fn toggler<'a, Message, Renderer>(
+toggler in iced::widget - Rust

Function iced::widget::toggler

pub fn toggler<'a, Message, Renderer>(
     label: impl Into<Option<String>>,
     is_checked: bool,
     f: impl Fn(bool) -> Message + 'a
diff --git a/iced/widget/fn.tooltip.html b/iced/widget/fn.tooltip.html
index 9a2116547f5..15917a04893 100644
--- a/iced/widget/fn.tooltip.html
+++ b/iced/widget/fn.tooltip.html
@@ -1,4 +1,4 @@
-tooltip in iced::widget - Rust

Function iced::widget::tooltip

source ·
pub fn tooltip<'a, Message, Renderer>(
+tooltip in iced::widget - Rust

Function iced::widget::tooltip

pub fn tooltip<'a, Message, Renderer>(
     content: impl Into<Element<'a, Message, Renderer>>,
     tooltip: impl ToString,
     position: Position
diff --git a/iced/widget/fn.vertical_rule.html b/iced/widget/fn.vertical_rule.html
index c18aea0a8e4..cc888480148 100644
--- a/iced/widget/fn.vertical_rule.html
+++ b/iced/widget/fn.vertical_rule.html
@@ -1,4 +1,4 @@
-vertical_rule in iced::widget - Rust

Function iced::widget::vertical_rule

source ·
pub fn vertical_rule<Renderer>(width: impl Into<Pixels>) -> Rule<Renderer>where
+vertical_rule in iced::widget - Rust

Function iced::widget::vertical_rule

pub fn vertical_rule<Renderer>(width: impl Into<Pixels>) -> Rule<Renderer>where
     Renderer: Renderer,
     <Renderer as Renderer>::Theme: StyleSheet,
Expand description

Creates a vertical Rule with the given width.

\ No newline at end of file diff --git a/iced/widget/fn.vertical_slider.html b/iced/widget/fn.vertical_slider.html index cb19089e5cb..e074133016e 100644 --- a/iced/widget/fn.vertical_slider.html +++ b/iced/widget/fn.vertical_slider.html @@ -1,4 +1,4 @@ -vertical_slider in iced::widget - Rust

Function iced::widget::vertical_slider

source ·
pub fn vertical_slider<'a, T, Message, Renderer>(
+vertical_slider in iced::widget - Rust

Function iced::widget::vertical_slider

pub fn vertical_slider<'a, T, Message, Renderer>(
     range: RangeInclusive<T>,
     value: T,
     on_change: impl Fn(T) -> Message + 'a
diff --git a/iced/widget/fn.vertical_space.html b/iced/widget/fn.vertical_space.html
index 9a4c46a1532..69b560e0d44 100644
--- a/iced/widget/fn.vertical_space.html
+++ b/iced/widget/fn.vertical_space.html
@@ -1,2 +1,2 @@
-vertical_space in iced::widget - Rust

Function iced::widget::vertical_space

source ·
pub fn vertical_space(height: impl Into<Length>) -> Space
Expand description

Creates a new vertical Space with the given Length.

+vertical_space in iced::widget - Rust

Function iced::widget::vertical_space

pub fn vertical_space(height: impl Into<Length>) -> Space
Expand description

Creates a new vertical Space with the given Length.

\ No newline at end of file diff --git a/iced/widget/image/fn.draw.html b/iced/widget/image/fn.draw.html index 8931e99d417..1bf977d54f8 100644 --- a/iced/widget/image/fn.draw.html +++ b/iced/widget/image/fn.draw.html @@ -1,4 +1,4 @@ -draw in iced::widget::image - Rust

Function iced::widget::image::draw

source ·
pub fn draw<Renderer, Handle>(
+draw in iced::widget::image - Rust

Function iced::widget::image::draw

pub fn draw<Renderer, Handle>(
     renderer: &mut Renderer,
     layout: Layout<'_>,
     handle: &Handle,
diff --git a/iced/widget/image/fn.layout.html b/iced/widget/image/fn.layout.html
index 150e8b90709..828187a5375 100644
--- a/iced/widget/image/fn.layout.html
+++ b/iced/widget/image/fn.layout.html
@@ -1,4 +1,4 @@
-layout in iced::widget::image - Rust

Function iced::widget::image::layout

source ·
pub fn layout<Renderer, Handle>(
+layout in iced::widget::image - Rust

Function iced::widget::image::layout

pub fn layout<Renderer, Handle>(
     renderer: &Renderer,
     limits: &Limits,
     handle: &Handle,
diff --git a/iced/widget/image/fn.viewer.html b/iced/widget/image/fn.viewer.html
index 9254afbac60..4ec9f0e37ac 100644
--- a/iced/widget/image/fn.viewer.html
+++ b/iced/widget/image/fn.viewer.html
@@ -1,2 +1,2 @@
-viewer in iced::widget::image - Rust

Function iced::widget::image::viewer

source ·
pub fn viewer<Handle>(handle: Handle) -> Viewer<Handle>
Available on crate feature image only.
Expand description

Creates a new Viewer with the given image Handle.

+viewer in iced::widget::image - Rust

Function iced::widget::image::viewer

pub fn viewer<Handle>(handle: Handle) -> Viewer<Handle>
Available on crate feature image only.
Expand description

Creates a new Viewer with the given image Handle.

\ No newline at end of file diff --git a/iced/widget/image/index.html b/iced/widget/image/index.html index 8f7e2e244ad..5770b2c01d2 100644 --- a/iced/widget/image/index.html +++ b/iced/widget/image/index.html @@ -1,2 +1,2 @@ -iced::widget::image - Rust

Module iced::widget::image

source ·
Available on crate feature image only.
Expand description

Display images in your user interface.

+iced::widget::image - Rust

Module iced::widget::image

Available on crate feature image only.
Expand description

Display images in your user interface.

Modules

  • Zoom and pan on an image.

Structs

  • A handle of some image data.
  • A frame that displays an image while keeping aspect ratio.
  • A frame that displays an image with the ability to zoom in/out and pan.

Functions

\ No newline at end of file diff --git a/iced/widget/image/struct.Image.html b/iced/widget/image/struct.Image.html index e2a70e32be9..8ecc140337f 100644 --- a/iced/widget/image/struct.Image.html +++ b/iced/widget/image/struct.Image.html @@ -1,16 +1,16 @@ -Image in iced::widget::image - Rust

Struct iced::widget::image::Image

source ·
pub struct Image<Handle> { /* private fields */ }
Available on crate feature image only.
Expand description

A frame that displays an image while keeping aspect ratio.

+Image in iced::widget::image - Rust

Struct iced::widget::image::Image

pub struct Image<Handle> { /* private fields */ }
Available on crate feature image only.
Expand description

A frame that displays an image while keeping aspect ratio.

Example

let image = Image::<image::Handle>::new("resources/ferris.png");
-

Implementations§

source§

impl<Handle> Image<Handle>

source

pub fn new<T>(handle: T) -> Image<Handle>where +

Implementations§

§

impl<Handle> Image<Handle>

pub fn new<T>(handle: T) -> Image<Handle>where T: Into<Handle>,

Creates a new Image with the given path.

-
source

pub fn width(self, width: impl Into<Length>) -> Image<Handle>

Sets the width of the Image boundaries.

-
source

pub fn height(self, height: impl Into<Length>) -> Image<Handle>

Sets the height of the Image boundaries.

-
source

pub fn content_fit(self, content_fit: ContentFit) -> Image<Handle>

Sets the ContentFit of the Image.

+

pub fn width(self, width: impl Into<Length>) -> Image<Handle>

Sets the width of the Image boundaries.

+

pub fn height(self, height: impl Into<Length>) -> Image<Handle>

Sets the height of the Image boundaries.

+

pub fn content_fit(self, content_fit: ContentFit) -> Image<Handle>

Sets the ContentFit of the Image.

Defaults to ContentFit::Contain

-

Trait Implementations§

source§

impl<Handle> Debug for Image<Handle>where - Handle: Debug,

source§

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

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

impl<Message, Renderer, Handle> Widget<Message, Renderer> for Image<Handle>where +

Trait Implementations§

§

impl<Handle> Debug for Image<Handle>where + Handle: Debug,

§

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

Formats the value using the given formatter. Read more
§

impl<Message, Renderer, Handle> Widget<Message, Renderer> for Image<Handle>where Renderer: Renderer<Handle = Handle>, - Handle: Clone + Hash,

source§

fn width(&self) -> Length

Returns the width of the Widget.
source§

fn height(&self) -> Length

Returns the height of the Widget.
source§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
source§

fn draw( + Handle: Clone + Hash,

§

fn width(&self) -> Length

Returns the width of the Widget.
§

fn height(&self) -> Length

Returns the height of the Widget.
§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
§

fn draw( &self, _state: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/image/struct.Viewer.html b/iced/widget/image/struct.Viewer.html index 53ab92b68dd..5667f249677 100644 --- a/iced/widget/image/struct.Viewer.html +++ b/iced/widget/image/struct.Viewer.html @@ -1,18 +1,18 @@ -Viewer in iced::widget::image - Rust

Struct iced::widget::image::Viewer

source ·
pub struct Viewer<Handle> { /* private fields */ }
Available on crate feature image only.
Expand description

A frame that displays an image with the ability to zoom in/out and pan.

-

Implementations§

source§

impl<Handle> Viewer<Handle>

source

pub fn new(handle: Handle) -> Viewer<Handle>

Creates a new Viewer with the given State.

-
source

pub fn padding(self, padding: impl Into<Pixels>) -> Viewer<Handle>

Sets the padding of the Viewer.

-
source

pub fn width(self, width: impl Into<Length>) -> Viewer<Handle>

Sets the width of the Viewer.

-
source

pub fn height(self, height: impl Into<Length>) -> Viewer<Handle>

Sets the height of the Viewer.

-
source

pub fn max_scale(self, max_scale: f32) -> Viewer<Handle>

Sets the max scale applied to the image of the Viewer.

+Viewer in iced::widget::image - Rust

Struct iced::widget::image::Viewer

pub struct Viewer<Handle> { /* private fields */ }
Available on crate feature image only.
Expand description

A frame that displays an image with the ability to zoom in/out and pan.

+

Implementations§

§

impl<Handle> Viewer<Handle>

pub fn new(handle: Handle) -> Viewer<Handle>

Creates a new Viewer with the given State.

+

pub fn padding(self, padding: impl Into<Pixels>) -> Viewer<Handle>

Sets the padding of the Viewer.

+

pub fn width(self, width: impl Into<Length>) -> Viewer<Handle>

Sets the width of the Viewer.

+

pub fn height(self, height: impl Into<Length>) -> Viewer<Handle>

Sets the height of the Viewer.

+

pub fn max_scale(self, max_scale: f32) -> Viewer<Handle>

Sets the max scale applied to the image of the Viewer.

Default is 10.0

-
source

pub fn min_scale(self, min_scale: f32) -> Viewer<Handle>

Sets the min scale applied to the image of the Viewer.

+

pub fn min_scale(self, min_scale: f32) -> Viewer<Handle>

Sets the min scale applied to the image of the Viewer.

Default is 0.25

-
source

pub fn scale_step(self, scale_step: f32) -> Viewer<Handle>

Sets the percentage the image of the Viewer will be scaled by +

pub fn scale_step(self, scale_step: f32) -> Viewer<Handle>

Sets the percentage the image of the Viewer will be scaled by when zoomed in / out.

Default is 0.10

-

Trait Implementations§

source§

impl<Message, Renderer, Handle> Widget<Message, Renderer> for Viewer<Handle>where +

Trait Implementations§

§

impl<Message, Renderer, Handle> Widget<Message, Renderer> for Viewer<Handle>where Renderer: Renderer<Handle = Handle>, - Handle: Clone + Hash,

source§

fn tag(&self) -> Tag

Returns the Tag of the Widget.
source§

fn state(&self) -> State

Returns the State of the Widget.
source§

fn width(&self) -> Length

Returns the width of the Widget.
source§

fn height(&self) -> Length

Returns the height of the Widget.
source§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
source§

fn on_event( + Handle: Clone + Hash,

§

fn tag(&self) -> Tag

Returns the Tag of the Widget.
§

fn state(&self) -> State

Returns the State of the Widget.
§

fn width(&self) -> Length

Returns the width of the Widget.
§

fn height(&self) -> Length

Returns the height of the Widget.
§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
§

fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -22,14 +22,14 @@ _clipboard: &mut dyn Clipboard, _shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status

Processes a runtime Event. Read more
source§

fn mouse_interaction( +) -> Status

Processes a runtime Event. Read more
§

fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, _renderer: &Renderer -) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
source§

fn draw( +) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
§

fn draw( &self, tree: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/image/viewer/fn.image_size.html b/iced/widget/image/viewer/fn.image_size.html index 4f4e2e1d0df..58ed9b617e5 100644 --- a/iced/widget/image/viewer/fn.image_size.html +++ b/iced/widget/image/viewer/fn.image_size.html @@ -1,4 +1,4 @@ -image_size in iced::widget::image::viewer - Rust

Function iced::widget::image::viewer::image_size

source ·
pub fn image_size<Renderer>(
+image_size in iced::widget::image::viewer - Rust

Function iced::widget::image::viewer::image_size

pub fn image_size<Renderer>(
     renderer: &Renderer,
     handle: &<Renderer as Renderer>::Handle,
     state: &State,
diff --git a/iced/widget/image/viewer/index.html b/iced/widget/image/viewer/index.html
index c2c7541e321..9335d092070 100644
--- a/iced/widget/image/viewer/index.html
+++ b/iced/widget/image/viewer/index.html
@@ -1,4 +1,4 @@
-iced::widget::image::viewer - Rust

Module iced::widget::image::viewer

source ·
Available on crate feature image only.
Expand description

Zoom and pan on an image.

+iced::widget::image::viewer - Rust

Module iced::widget::image::viewer

Available on crate feature image only.
Expand description

Zoom and pan on an image.

Structs

  • The local state of a Viewer.
  • A frame that displays an image with the ability to zoom in/out and pan.

Functions

  • Returns the bounds of the underlying image, given the bounds of the Viewer. Scaling will be applied and original aspect ratio will be respected.
\ No newline at end of file diff --git a/iced/widget/image/viewer/struct.State.html b/iced/widget/image/viewer/struct.State.html index 123f971e965..ed9a3bd4aa7 100644 --- a/iced/widget/image/viewer/struct.State.html +++ b/iced/widget/image/viewer/struct.State.html @@ -1,7 +1,7 @@ -State in iced::widget::image::viewer - Rust

Struct iced::widget::image::viewer::State

source ·
pub struct State { /* private fields */ }
Available on crate feature image only.
Expand description

The local state of a Viewer.

-

Implementations§

source§

impl State

source

pub fn new() -> State

Creates a new State.

-
source

pub fn is_cursor_grabbed(&self) -> bool

Returns if the cursor is currently grabbed by the Viewer.

-

Trait Implementations§

source§

impl Clone for State

source§

fn clone(&self) -> State

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 State

source§

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

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

impl Default for State

source§

fn default() -> State

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

impl Copy for State

Auto Trait Implementations§

§

impl RefUnwindSafe for State

§

impl Send for State

§

impl Sync for State

§

impl Unpin for State

§

impl UnwindSafe for State

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +State in iced::widget::image::viewer - Rust

Struct iced::widget::image::viewer::State

pub struct State { /* private fields */ }
Available on crate feature image only.
Expand description

The local state of a Viewer.

+

Implementations§

§

impl State

pub fn new() -> State

Creates a new State.

+

pub fn is_cursor_grabbed(&self) -> bool

Returns if the cursor is currently grabbed by the Viewer.

+

Trait Implementations§

§

impl Clone for State

§

fn clone(&self) -> State

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 State

§

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

Formats the value using the given formatter. Read more
§

impl Default for State

§

fn default() -> State

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

impl Copy for State

Auto Trait Implementations§

§

impl RefUnwindSafe for State

§

impl Send for State

§

impl Sync for State

§

impl Unpin for State

§

impl UnwindSafe for State

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/image/viewer/struct.Viewer.html b/iced/widget/image/viewer/struct.Viewer.html index bca7c84eac6..cba768dc859 100644 --- a/iced/widget/image/viewer/struct.Viewer.html +++ b/iced/widget/image/viewer/struct.Viewer.html @@ -1,18 +1,18 @@ -Viewer in iced::widget::image::viewer - Rust

Struct iced::widget::image::viewer::Viewer

source ·
pub struct Viewer<Handle> { /* private fields */ }
Available on crate feature image only.
Expand description

A frame that displays an image with the ability to zoom in/out and pan.

-

Implementations§

source§

impl<Handle> Viewer<Handle>

source

pub fn new(handle: Handle) -> Viewer<Handle>

Creates a new Viewer with the given State.

-
source

pub fn padding(self, padding: impl Into<Pixels>) -> Viewer<Handle>

Sets the padding of the Viewer.

-
source

pub fn width(self, width: impl Into<Length>) -> Viewer<Handle>

Sets the width of the Viewer.

-
source

pub fn height(self, height: impl Into<Length>) -> Viewer<Handle>

Sets the height of the Viewer.

-
source

pub fn max_scale(self, max_scale: f32) -> Viewer<Handle>

Sets the max scale applied to the image of the Viewer.

+Viewer in iced::widget::image::viewer - Rust

Struct iced::widget::image::viewer::Viewer

pub struct Viewer<Handle> { /* private fields */ }
Available on crate feature image only.
Expand description

A frame that displays an image with the ability to zoom in/out and pan.

+

Implementations§

§

impl<Handle> Viewer<Handle>

pub fn new(handle: Handle) -> Viewer<Handle>

Creates a new Viewer with the given State.

+

pub fn padding(self, padding: impl Into<Pixels>) -> Viewer<Handle>

Sets the padding of the Viewer.

+

pub fn width(self, width: impl Into<Length>) -> Viewer<Handle>

Sets the width of the Viewer.

+

pub fn height(self, height: impl Into<Length>) -> Viewer<Handle>

Sets the height of the Viewer.

+

pub fn max_scale(self, max_scale: f32) -> Viewer<Handle>

Sets the max scale applied to the image of the Viewer.

Default is 10.0

-
source

pub fn min_scale(self, min_scale: f32) -> Viewer<Handle>

Sets the min scale applied to the image of the Viewer.

+

pub fn min_scale(self, min_scale: f32) -> Viewer<Handle>

Sets the min scale applied to the image of the Viewer.

Default is 0.25

-
source

pub fn scale_step(self, scale_step: f32) -> Viewer<Handle>

Sets the percentage the image of the Viewer will be scaled by +

pub fn scale_step(self, scale_step: f32) -> Viewer<Handle>

Sets the percentage the image of the Viewer will be scaled by when zoomed in / out.

Default is 0.10

-

Trait Implementations§

source§

impl<Message, Renderer, Handle> Widget<Message, Renderer> for Viewer<Handle>where +

Trait Implementations§

§

impl<Message, Renderer, Handle> Widget<Message, Renderer> for Viewer<Handle>where Renderer: Renderer<Handle = Handle>, - Handle: Clone + Hash,

source§

fn tag(&self) -> Tag

Returns the Tag of the Widget.
source§

fn state(&self) -> State

Returns the State of the Widget.
source§

fn width(&self) -> Length

Returns the width of the Widget.
source§

fn height(&self) -> Length

Returns the height of the Widget.
source§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
source§

fn on_event( + Handle: Clone + Hash,

§

fn tag(&self) -> Tag

Returns the Tag of the Widget.
§

fn state(&self) -> State

Returns the State of the Widget.
§

fn width(&self) -> Length

Returns the width of the Widget.
§

fn height(&self) -> Length

Returns the height of the Widget.
§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
§

fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -22,14 +22,14 @@ _clipboard: &mut dyn Clipboard, _shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status

Processes a runtime Event. Read more
source§

fn mouse_interaction( +) -> Status

Processes a runtime Event. Read more
§

fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, _renderer: &Renderer -) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
source§

fn draw( +) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
§

fn draw( &self, tree: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/macro.column.html b/iced/widget/macro.column.html index 223c2064762..d52e7efd8b3 100644 --- a/iced/widget/macro.column.html +++ b/iced/widget/macro.column.html @@ -1,4 +1,4 @@ -column in iced::widget - Rust

Macro iced::widget::column

source ·
macro_rules! column {
+column in iced::widget - Rust

Macro iced::widget::column

macro_rules! column {
     () => { ... };
     ($($x:expr),+ $(,)?) => { ... };
 }
Expand description

Creates a Column with the given children.

diff --git a/iced/widget/macro.row.html b/iced/widget/macro.row.html index bf0eabdf2ae..daf98856c7b 100644 --- a/iced/widget/macro.row.html +++ b/iced/widget/macro.row.html @@ -1,4 +1,4 @@ -row in iced::widget - Rust

Macro iced::widget::row

source ·
macro_rules! row {
+row in iced::widget - Rust

Macro iced::widget::row

macro_rules! row {
     () => { ... };
     ($($x:expr),+ $(,)?) => { ... };
 }
Expand description

Creates a Row with the given children.

diff --git a/iced/widget/overlay/index.html b/iced/widget/overlay/index.html index b359a087fb7..cab1724e719 100644 --- a/iced/widget/overlay/index.html +++ b/iced/widget/overlay/index.html @@ -1,2 +1,2 @@ -iced::widget::overlay - Rust

Module iced::widget::overlay

source ·
Expand description

Display interactive elements on top of other widgets.

+iced::widget::overlay - Rust

Module iced::widget::overlay

Expand description

Display interactive elements on top of other widgets.

Modules

  • Build and show dropdown menus.
\ No newline at end of file diff --git a/iced/widget/overlay/menu/index.html b/iced/widget/overlay/menu/index.html index a9d5f2fda0b..19edafbaec0 100644 --- a/iced/widget/overlay/menu/index.html +++ b/iced/widget/overlay/menu/index.html @@ -1,2 +1,2 @@ -iced::widget::overlay::menu - Rust

Module iced::widget::overlay::menu

source ·
Expand description

Build and show dropdown menus.

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

Module iced::widget::overlay::menu

Expand description

Build and show dropdown menus.

Structs

Traits

\ No newline at end of file diff --git a/iced/widget/overlay/menu/struct.Menu.html b/iced/widget/overlay/menu/struct.Menu.html index 788acfc1e2e..7ea3763e597 100644 --- a/iced/widget/overlay/menu/struct.Menu.html +++ b/iced/widget/overlay/menu/struct.Menu.html @@ -1,11 +1,11 @@ -Menu in iced::widget::overlay::menu - Rust

Struct iced::widget::overlay::menu::Menu

source ·
pub struct Menu<'a, T, Message, Renderer = Renderer<Theme>>where
+Menu in iced::widget::overlay::menu - Rust

Struct iced::widget::overlay::menu::Menu

pub struct Menu<'a, T, Message, Renderer = Renderer<Theme>>where
     Renderer: Renderer,
     <Renderer as Renderer>::Theme: StyleSheet,{ /* private fields */ }
Expand description

A list of selectable options.

-

Implementations§

source§

impl<'a, T, Message, Renderer> Menu<'a, T, Message, Renderer>where +

Implementations§

§

impl<'a, T, Message, Renderer> Menu<'a, T, Message, Renderer>where T: ToString + Clone, Message: 'a, Renderer: Renderer + 'a, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet,

source

pub fn new( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet,

pub fn new( state: &'a mut State, options: &'a [T], hovered_option: &'a mut Option<usize>, @@ -13,27 +13,27 @@ on_option_hovered: Option<&'a dyn Fn(T) -> Message> ) -> Menu<'a, T, Message, Renderer>

Creates a new Menu with the given State, a list of options, and the message to produced when an option is selected.

-
source

pub fn width(self, width: f32) -> Menu<'a, T, Message, Renderer>

Sets the width of the Menu.

-
source

pub fn padding<P>(self, padding: P) -> Menu<'a, T, Message, Renderer>where +

pub fn width(self, width: f32) -> Menu<'a, T, Message, Renderer>

Sets the width of the Menu.

+

pub fn padding<P>(self, padding: P) -> Menu<'a, T, Message, Renderer>where P: Into<Padding>,

Sets the Padding of the Menu.

-
source

pub fn text_size( +

pub fn text_size( self, text_size: impl Into<Pixels> ) -> Menu<'a, T, Message, Renderer>

Sets the text size of the Menu.

-
source

pub fn text_line_height( +

pub fn text_line_height( self, line_height: impl Into<LineHeight> ) -> Menu<'a, T, Message, Renderer>

Sets the text [LineHeight] of the Menu.

-
source

pub fn text_shaping(self, shaping: Shaping) -> Menu<'a, T, Message, Renderer>

Sets the text::Shaping strategy of the Menu.

-
source

pub fn font( +

pub fn text_shaping(self, shaping: Shaping) -> Menu<'a, T, Message, Renderer>

Sets the text::Shaping strategy of the Menu.

+

pub fn font( self, font: impl Into<<Renderer as Renderer>::Font> ) -> Menu<'a, T, Message, Renderer>

Sets the font of the Menu.

-
source

pub fn style( +

pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Menu<'a, T, Message, Renderer>

Sets the style of the Menu.

-
source

pub fn overlay( +

pub fn overlay( self, position: Point, target_height: f32 diff --git a/iced/widget/overlay/menu/struct.State.html b/iced/widget/overlay/menu/struct.State.html index 70d73610f40..b906d266a8c 100644 --- a/iced/widget/overlay/menu/struct.State.html +++ b/iced/widget/overlay/menu/struct.State.html @@ -1,6 +1,6 @@ -State in iced::widget::overlay::menu - Rust

Struct iced::widget::overlay::menu::State

source ·
pub struct State { /* private fields */ }
Expand description

The local state of a Menu.

-

Implementations§

source§

impl State

source

pub fn new() -> State

Creates a new State for a Menu.

-

Trait Implementations§

source§

impl Debug for State

source§

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

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

impl Default for State

source§

fn default() -> State

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

Auto Trait Implementations§

§

impl !RefUnwindSafe for State

§

impl !Send for State

§

impl !Sync for State

§

impl Unpin for State

§

impl !UnwindSafe for State

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +State in iced::widget::overlay::menu - Rust

Struct iced::widget::overlay::menu::State

pub struct State { /* private fields */ }
Expand description

The local state of a Menu.

+

Implementations§

§

impl State

pub fn new() -> State

Creates a new State for a Menu.

+

Trait Implementations§

§

impl Debug for State

§

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

Formats the value using the given formatter. Read more
§

impl Default for State

§

fn default() -> State

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

Auto Trait Implementations§

§

impl !RefUnwindSafe for State

§

impl !Send for State

§

impl !Sync for State

§

impl Unpin for State

§

impl !UnwindSafe for State

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/pane_grid/enum.Axis.html b/iced/widget/pane_grid/enum.Axis.html index 2aeda91d9a0..66bb293e648 100644 --- a/iced/widget/pane_grid/enum.Axis.html +++ b/iced/widget/pane_grid/enum.Axis.html @@ -1,28 +1,28 @@ -Axis in iced::widget::pane_grid - Rust

Enum iced::widget::pane_grid::Axis

source ·
pub enum Axis {
+Axis in iced::widget::pane_grid - Rust

Enum iced::widget::pane_grid::Axis

pub enum Axis {
     Horizontal,
     Vertical,
 }
Expand description

A fixed reference line for the measurement of coordinates.

Variants§

§

Horizontal

The horizontal axis: —

§

Vertical

The vertical axis: |

-

Implementations§

Implementations§

§

impl Axis

pub fn split( &self, rectangle: &Rectangle<f32>, ratio: f32, spacing: f32 ) -> (Rectangle<f32>, Rectangle<f32>)

Splits the provided Rectangle on the current Axis with the given ratio and spacing.

-
source

pub fn split_line_bounds( +

pub fn split_line_bounds( &self, rectangle: Rectangle<f32>, ratio: f32, spacing: f32 ) -> Rectangle<f32>

Calculates the bounds of the split line in a Rectangle region.

-

Trait Implementations§

source§

impl Clone for Axis

source§

fn clone(&self) -> Axis

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 Axis

source§

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

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

impl Hash for Axis

source§

fn hash<__H>(&self, state: &mut __H)where +

Trait Implementations§

§

impl Clone for Axis

§

fn clone(&self) -> Axis

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 Axis

§

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

Formats the value using the given formatter. Read more
§

impl Hash for Axis

§

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 PartialEq<Axis> for Axis

source§

fn eq(&self, other: &Axis) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl PartialEq<Axis> for Axis

§

fn eq(&self, other: &Axis) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for Axis

source§

impl Eq for Axis

source§

impl StructuralEq for Axis

source§

impl StructuralPartialEq for Axis

Auto Trait Implementations§

§

impl RefUnwindSafe for Axis

§

impl Send for Axis

§

impl Sync for Axis

§

impl Unpin for Axis

§

impl UnwindSafe for Axis

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

§

impl Copy for Axis

§

impl Eq for Axis

§

impl StructuralEq for Axis

§

impl StructuralPartialEq for Axis

Auto Trait Implementations§

§

impl RefUnwindSafe for Axis

§

impl Send for Axis

§

impl Sync for Axis

§

impl Unpin for Axis

§

impl UnwindSafe for Axis

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/pane_grid/enum.Configuration.html b/iced/widget/pane_grid/enum.Configuration.html index 44c7f35116e..c6340754c55 100644 --- a/iced/widget/pane_grid/enum.Configuration.html +++ b/iced/widget/pane_grid/enum.Configuration.html @@ -1,4 +1,4 @@ -Configuration in iced::widget::pane_grid - Rust
§b: Box<Configuration<T>, Global>

The right/bottom Configuration of the split.

A split of the available space.

§

Pane(T)

A Pane.

-

Trait Implementations§

source§

impl<T> Clone for Configuration<T>where - T: Clone,

source§

fn clone(&self) -> Configuration<T>

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<T> Debug for Configuration<T>where - T: Debug,

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for Configuration<T>where +

Trait Implementations§

§

impl<T> Clone for Configuration<T>where + T: Clone,

§

fn clone(&self) -> Configuration<T>

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<T> Debug for Configuration<T>where + T: Debug,

§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for Configuration<T>where T: RefUnwindSafe,

§

impl<T> Send for Configuration<T>where T: Send,

§

impl<T> Sync for Configuration<T>where T: Sync,

§

impl<T> Unpin for Configuration<T>where diff --git a/iced/widget/pane_grid/enum.Contents.html b/iced/widget/pane_grid/enum.Contents.html index ebb2e42fdbe..4cf5bbd14f1 100644 --- a/iced/widget/pane_grid/enum.Contents.html +++ b/iced/widget/pane_grid/enum.Contents.html @@ -1,13 +1,13 @@ -Contents in iced::widget::pane_grid - Rust
pub enum Contents<'a, T> {
+Contents in iced::widget::pane_grid - Rust
pub enum Contents<'a, T> {
     All(Vec<(Pane, T), Global>, &'a Internal),
     Maximized(Pane, T, Node),
 }
Expand description

The visible contents of the PaneGrid

Variants§

§

All(Vec<(Pane, T), Global>, &'a Internal)

All panes are visible

§

Maximized(Pane, T, Node)

A maximized pane is visible

-

Implementations§

source§

impl<'a, T> Contents<'a, T>

source

pub fn layout(&self) -> &Node

Returns the layout Node of the Contents

-
source

pub fn iter(&self) -> Box<dyn Iterator<Item = (Pane, &T)> + '_, Global>

Returns an iterator over the values of the Contents

-

Trait Implementations§

source§

impl<'a, T> Debug for Contents<'a, T>where - T: Debug,

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, T> RefUnwindSafe for Contents<'a, T>where +

Implementations§

§

impl<'a, T> Contents<'a, T>

pub fn layout(&self) -> &Node

Returns the layout Node of the Contents

+

pub fn iter(&self) -> Box<dyn Iterator<Item = (Pane, &T)> + '_, Global>

Returns an iterator over the values of the Contents

+

Trait Implementations§

§

impl<'a, T> Debug for Contents<'a, T>where + T: Debug,

§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<'a, T> RefUnwindSafe for Contents<'a, T>where T: RefUnwindSafe,

§

impl<'a, T> Send for Contents<'a, T>where T: Send,

§

impl<'a, T> Sync for Contents<'a, T>where T: Sync,

§

impl<'a, T> Unpin for Contents<'a, T>where diff --git a/iced/widget/pane_grid/enum.Direction.html b/iced/widget/pane_grid/enum.Direction.html index 3ea67f96177..ca9df65cf72 100644 --- a/iced/widget/pane_grid/enum.Direction.html +++ b/iced/widget/pane_grid/enum.Direction.html @@ -1,4 +1,4 @@ -Direction in iced::widget::pane_grid - Rust

Trait Implementations§

source§

impl Clone for Direction

source§

fn clone(&self) -> Direction

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 Direction

source§

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

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

impl PartialEq<Direction> for Direction

source§

fn eq(&self, other: &Direction) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for Direction

§

fn clone(&self) -> Direction

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 Direction

§

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

Formats the value using the given formatter. Read more
§

impl PartialEq<Direction> for Direction

§

fn eq(&self, other: &Direction) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for Direction

source§

impl Eq for Direction

source§

impl StructuralEq for Direction

source§

impl StructuralPartialEq for Direction

Auto Trait Implementations§

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

§

impl Copy for Direction

§

impl Eq for Direction

§

impl StructuralEq for Direction

§

impl StructuralPartialEq for Direction

Auto Trait Implementations§

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/pane_grid/enum.DragEvent.html b/iced/widget/pane_grid/enum.DragEvent.html index 2730fb3007d..f6895bc80a0 100644 --- a/iced/widget/pane_grid/enum.DragEvent.html +++ b/iced/widget/pane_grid/enum.DragEvent.html @@ -1,4 +1,4 @@ -DragEvent in iced::widget::pane_grid - Rust

Trait Implementations§

source§

impl Clone for DragEvent

source§

fn clone(&self) -> DragEvent

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 DragEvent

source§

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

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

impl Copy for DragEvent

Auto Trait Implementations§

Blanket Implementations§

source§

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

Trait Implementations§

§

impl Clone for DragEvent

§

fn clone(&self) -> DragEvent

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 DragEvent

§

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

Formats the value using the given formatter. Read more
§

impl Copy for DragEvent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/pane_grid/enum.Edge.html b/iced/widget/pane_grid/enum.Edge.html index 5b64e4b6085..7928c5c801a 100644 --- a/iced/widget/pane_grid/enum.Edge.html +++ b/iced/widget/pane_grid/enum.Edge.html @@ -1,4 +1,4 @@ -Edge in iced::widget::pane_grid - Rust

Trait Implementations§

source§

impl Clone for Edge

source§

fn clone(&self) -> Edge

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 Edge

source§

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

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

impl Copy for Edge

Auto Trait Implementations§

§

impl RefUnwindSafe for Edge

§

impl Send for Edge

§

impl Sync for Edge

§

impl Unpin for Edge

§

impl UnwindSafe for Edge

Blanket Implementations§

source§

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

Trait Implementations§

§

impl Clone for Edge

§

fn clone(&self) -> Edge

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 Edge

§

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

Formats the value using the given formatter. Read more
§

impl Copy for Edge

Auto Trait Implementations§

§

impl RefUnwindSafe for Edge

§

impl Send for Edge

§

impl Sync for Edge

§

impl Unpin for Edge

§

impl UnwindSafe for Edge

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/pane_grid/enum.Node.html b/iced/widget/pane_grid/enum.Node.html index 9b1e03c8bdb..1841f0dfb3b 100644 --- a/iced/widget/pane_grid/enum.Node.html +++ b/iced/widget/pane_grid/enum.Node.html @@ -1,4 +1,4 @@ -Node in iced::widget::pane_grid - Rust
§b: Box<Node, Global>

The right/bottom Node of the split.

The region of this Node is split into two.

§

Pane(Pane)

The region of this Node is taken by a Pane.

-

Implementations§

source§

impl Node

source

pub fn splits(&self) -> impl Iterator<Item = &Split>

Returns an iterator over each Split in this Node.

-
source

pub fn pane_regions( +

Implementations§

§

impl Node

pub fn splits(&self) -> impl Iterator<Item = &Split>

Returns an iterator over each Split in this Node.

+

pub fn pane_regions( &self, spacing: f32, size: Size<f32> ) -> BTreeMap<Pane, Rectangle<f32>, Global>

Returns the rectangular region for each Pane in the Node given the spacing between panes and the total available space.

-
source

pub fn split_regions( +

pub fn split_regions( &self, spacing: f32, size: Size<f32> ) -> BTreeMap<Split, (Axis, Rectangle<f32>, f32), Global>

Returns the axis, rectangular region, and ratio for each Split in the Node given the spacing between panes and the total available space.

-

Trait Implementations§

source§

impl Clone for Node

source§

fn clone(&self) -> Node

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 Node

source§

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

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

impl Hash for Node

source§

fn hash<H>(&self, state: &mut H)where +

Trait Implementations§

§

impl Clone for Node

§

fn clone(&self) -> Node

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 Node

§

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

Formats the value using the given formatter. Read more
§

impl Hash for Node

§

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

Auto Trait Implementations§

§

impl RefUnwindSafe for Node

§

impl Send for Node

§

impl Sync for Node

§

impl Unpin for Node

§

impl UnwindSafe for Node

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere diff --git a/iced/widget/pane_grid/enum.Region.html b/iced/widget/pane_grid/enum.Region.html index 67be1e273c4..9ddccf26732 100644 --- a/iced/widget/pane_grid/enum.Region.html +++ b/iced/widget/pane_grid/enum.Region.html @@ -1,10 +1,10 @@ -Region in iced::widget::pane_grid - Rust
pub enum Region {
+Region in iced::widget::pane_grid - Rust
pub enum Region {
     Center,
     Edge(Edge),
 }
Expand description

The region of a Pane.

Variants§

§

Center

Center region.

§

Edge(Edge)

Edge region.

-

Trait Implementations§

source§

impl Clone for Region

source§

fn clone(&self) -> Region

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 Region

source§

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

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

impl Default for Region

source§

fn default() -> Region

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

impl Copy for Region

Auto Trait Implementations§

Blanket Implementations§

source§

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

Trait Implementations§

§

impl Clone for Region

§

fn clone(&self) -> Region

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 Region

§

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

Formats the value using the given formatter. Read more
§

impl Default for Region

§

fn default() -> Region

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

impl Copy for Region

Auto Trait Implementations§

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/pane_grid/enum.Target.html b/iced/widget/pane_grid/enum.Target.html index 90a801ae5ea..47ec6e4ae3f 100644 --- a/iced/widget/pane_grid/enum.Target.html +++ b/iced/widget/pane_grid/enum.Target.html @@ -1,10 +1,10 @@ -Target in iced::widget::pane_grid - Rust
pub enum Target {
+Target in iced::widget::pane_grid - Rust
pub enum Target {
     Edge(Edge),
     Pane(Pane, Region),
 }
Expand description

The Target area a pane can be dropped on.

Variants§

§

Edge(Edge)

An Edge of the full PaneGrid.

§

Pane(Pane, Region)

A single Pane of the PaneGrid.

-

Trait Implementations§

source§

impl Clone for Target

source§

fn clone(&self) -> Target

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 Target

source§

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

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

impl Copy for Target

Auto Trait Implementations§

Blanket Implementations§

source§

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

Trait Implementations§

§

impl Clone for Target

§

fn clone(&self) -> Target

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 Target

§

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

Formats the value using the given formatter. Read more
§

impl Copy for Target

Auto Trait Implementations§

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/pane_grid/fn.draw.html b/iced/widget/pane_grid/fn.draw.html index c89999be59d..f691b311f9e 100644 --- a/iced/widget/pane_grid/fn.draw.html +++ b/iced/widget/pane_grid/fn.draw.html @@ -1,4 +1,4 @@ -draw in iced::widget::pane_grid - Rust

Function iced::widget::pane_grid::draw

source ·
pub fn draw<Renderer, T>(
+draw in iced::widget::pane_grid - Rust

Function iced::widget::pane_grid::draw

pub fn draw<Renderer, T>(
     action: &Action,
     node: &Node,
     layout: Layout<'_>,
diff --git a/iced/widget/pane_grid/fn.layout.html b/iced/widget/pane_grid/fn.layout.html
index e8421fa6991..9aff780f306 100644
--- a/iced/widget/pane_grid/fn.layout.html
+++ b/iced/widget/pane_grid/fn.layout.html
@@ -1,4 +1,4 @@
-layout in iced::widget::pane_grid - Rust

Function iced::widget::pane_grid::layout

source ·
pub fn layout<Renderer, T>(
+layout in iced::widget::pane_grid - Rust

Function iced::widget::pane_grid::layout

pub fn layout<Renderer, T>(
     renderer: &Renderer,
     limits: &Limits,
     node: &Node,
diff --git a/iced/widget/pane_grid/fn.mouse_interaction.html b/iced/widget/pane_grid/fn.mouse_interaction.html
index f69c1a7ad34..07554e9547a 100644
--- a/iced/widget/pane_grid/fn.mouse_interaction.html
+++ b/iced/widget/pane_grid/fn.mouse_interaction.html
@@ -1,4 +1,4 @@
-mouse_interaction in iced::widget::pane_grid - Rust
pub fn mouse_interaction(
+mouse_interaction in iced::widget::pane_grid - Rust
pub fn mouse_interaction(
     action: &Action,
     node: &Node,
     layout: Layout<'_>,
diff --git a/iced/widget/pane_grid/fn.update.html b/iced/widget/pane_grid/fn.update.html
index ef3b59572b2..108927a493b 100644
--- a/iced/widget/pane_grid/fn.update.html
+++ b/iced/widget/pane_grid/fn.update.html
@@ -1,4 +1,4 @@
-update in iced::widget::pane_grid - Rust

Function iced::widget::pane_grid::update

source ·
pub fn update<Message, T, 'a>(
+update in iced::widget::pane_grid - Rust

Function iced::widget::pane_grid::update

pub fn update<Message, T, 'a>(
     action: &mut Action,
     node: &Node,
     event: &Event,
diff --git a/iced/widget/pane_grid/index.html b/iced/widget/pane_grid/index.html
index e0b12090791..b11863da027 100644
--- a/iced/widget/pane_grid/index.html
+++ b/iced/widget/pane_grid/index.html
@@ -1,4 +1,4 @@
-iced::widget::pane_grid - Rust

Module iced::widget::pane_grid

source ·
Expand description

Let your users split regions of your application and organize layout dynamically.

+iced::widget::pane_grid - Rust

Module iced::widget::pane_grid

Expand description

Let your users split regions of your application and organize layout dynamically.

Pane grid - Iced

Example

The pane_grid example showcases how to use a PaneGrid with resizing, diff --git a/iced/widget/pane_grid/state/enum.Action.html b/iced/widget/pane_grid/state/enum.Action.html index cf2b4df2838..31355de9ae6 100644 --- a/iced/widget/pane_grid/state/enum.Action.html +++ b/iced/widget/pane_grid/state/enum.Action.html @@ -1,4 +1,4 @@ -Action in iced::widget::pane_grid::state - Rust

Implementations§

source§

impl Action

source

pub fn picked_pane(&self) -> Option<(Pane, Point)>

Returns the current Pane that is being dragged, if any.

-
source

pub fn picked_split(&self) -> Option<(Split, Axis)>

Returns the current Split that is being dragged, if any.

-

Trait Implementations§

source§

impl Clone for Action

source§

fn clone(&self) -> Action

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 Action

source§

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

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

impl PartialEq<Action> for Action

source§

fn eq(&self, other: &Action) -> bool

This method tests for self and other values to be equal, and is used +

Implementations§

§

impl Action

pub fn picked_pane(&self) -> Option<(Pane, Point)>

Returns the current Pane that is being dragged, if any.

+

pub fn picked_split(&self) -> Option<(Split, Axis)>

Returns the current Split that is being dragged, if any.

+

Trait Implementations§

§

impl Clone for Action

§

fn clone(&self) -> Action

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 Action

§

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

Formats the value using the given formatter. Read more
§

impl PartialEq<Action> for Action

§

fn eq(&self, other: &Action) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for Action

source§

impl StructuralPartialEq for Action

Auto Trait Implementations§

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

§

impl Copy for Action

§

impl StructuralPartialEq for Action

Auto Trait Implementations§

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/pane_grid/state/index.html b/iced/widget/pane_grid/state/index.html index 295877f8776..2794ad0a9dc 100644 --- a/iced/widget/pane_grid/state/index.html +++ b/iced/widget/pane_grid/state/index.html @@ -1,2 +1,2 @@ -iced::widget::pane_grid::state - Rust

Module iced::widget::pane_grid::state

source ·
Expand description

The state of a PaneGrid.

+iced::widget::pane_grid::state - Rust

Module iced::widget::pane_grid::state

Expand description

The state of a PaneGrid.

Structs

Enums

\ No newline at end of file diff --git a/iced/widget/pane_grid/state/struct.Internal.html b/iced/widget/pane_grid/state/struct.Internal.html index 05eadd93129..f3db7fbd8d2 100644 --- a/iced/widget/pane_grid/state/struct.Internal.html +++ b/iced/widget/pane_grid/state/struct.Internal.html @@ -1,12 +1,12 @@ -Internal in iced::widget::pane_grid::state - Rust
pub struct Internal { /* private fields */ }
Expand description

The internal state of a PaneGrid.

-

Implementations§

source§

impl Internal

source

pub fn from_configuration<T>( +Internal in iced::widget::pane_grid::state - Rust
pub struct Internal { /* private fields */ }
Expand description

The internal state of a PaneGrid.

+

Implementations§

§

impl Internal

pub fn from_configuration<T>( panes: &mut HashMap<Pane, T, RandomState>, content: Configuration<T>, next_id: usize ) -> Internal

Initializes the Internal state of a PaneGrid from a Configuration.

-
source§

impl Internal

source

pub fn layout(&self) -> &Node

The layout Node of the Internal state

-

Trait Implementations§

source§

impl Clone for Internal

source§

fn clone(&self) -> Internal

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 Internal

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

§

impl Internal

pub fn layout(&self) -> &Node

The layout Node of the Internal state

+

Trait Implementations§

§

impl Clone for Internal

§

fn clone(&self) -> Internal

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 Internal

§

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 Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/pane_grid/state/struct.State.html b/iced/widget/pane_grid/state/struct.State.html index c02fa978012..93bc00422f5 100644 --- a/iced/widget/pane_grid/state/struct.State.html +++ b/iced/widget/pane_grid/state/struct.State.html @@ -1,4 +1,4 @@ -State in iced::widget::pane_grid::state - Rust

Fields§

§panes: HashMap<Pane, T, RandomState>

The panes of the PaneGrid.

§internal: Internal

The internal state of the PaneGrid.

-

Implementations§

source§

impl<T> State<T>

source

pub fn new(first_pane_state: T) -> (State<T>, Pane)

Creates a new State, initializing the first pane with the provided +

Implementations§

§

impl<T> State<T>

pub fn new(first_pane_state: T) -> (State<T>, Pane)

Creates a new State, initializing the first pane with the provided state.

Alongside the State, it returns the first Pane identifier.

-
source

pub fn with_configuration(config: impl Into<Configuration<T>>) -> State<T>

Creates a new State with the given Configuration.

-
source

pub fn len(&self) -> usize

Returns the total amount of panes in the State.

-
source

pub fn is_empty(&self) -> bool

Returns true if the amount of panes in the State is 0.

-
source

pub fn get(&self, pane: &Pane) -> Option<&T>

Returns the internal state of the given Pane, if it exists.

-
source

pub fn get_mut(&mut self, pane: &Pane) -> Option<&mut T>

Returns the internal state of the given Pane with mutability, if it +

pub fn with_configuration(config: impl Into<Configuration<T>>) -> State<T>

Creates a new State with the given Configuration.

+

pub fn len(&self) -> usize

Returns the total amount of panes in the State.

+

pub fn is_empty(&self) -> bool

Returns true if the amount of panes in the State is 0.

+

pub fn get(&self, pane: &Pane) -> Option<&T>

Returns the internal state of the given Pane, if it exists.

+

pub fn get_mut(&mut self, pane: &Pane) -> Option<&mut T>

Returns the internal state of the given Pane with mutability, if it exists.

-
source

pub fn iter(&self) -> impl Iterator<Item = (&Pane, &T)>

Returns an iterator over all the panes of the State, alongside its +

pub fn iter(&self) -> impl Iterator<Item = (&Pane, &T)>

Returns an iterator over all the panes of the State, alongside its internal state.

-
source

pub fn iter_mut(&mut self) -> impl Iterator<Item = (&Pane, &mut T)>

Returns a mutable iterator over all the panes of the State, +

pub fn iter_mut(&mut self) -> impl Iterator<Item = (&Pane, &mut T)>

Returns a mutable iterator over all the panes of the State, alongside its internal state.

-
source

pub fn layout(&self) -> &Node

Returns the layout of the State.

-
source

pub fn adjacent(&self, pane: &Pane, direction: Direction) -> Option<Pane>

Returns the adjacent Pane of another Pane in the given +

pub fn layout(&self) -> &Node

Returns the layout of the State.

+

pub fn adjacent(&self, pane: &Pane, direction: Direction) -> Option<Pane>

Returns the adjacent Pane of another Pane in the given direction, if there is one.

-
source

pub fn split( +

pub fn split( &mut self, axis: Axis, pane: &Pane, state: T ) -> Option<(Pane, Split)>

Splits the given Pane into two in the given Axis and initializing the new Pane with the provided internal state.

-
source

pub fn split_with(&mut self, target: &Pane, pane: &Pane, region: Region)

Split a target Pane with a given Pane on a given Region.

+

pub fn split_with(&mut self, target: &Pane, pane: &Pane, region: Region)

Split a target Pane with a given Pane on a given Region.

Panes will be swapped by default for Region::Center.

-
source

pub fn drop(&mut self, pane: &Pane, target: Target)

Drops the given Pane into the provided Target.

-
source

pub fn move_to_edge(&mut self, pane: &Pane, edge: Edge)

Move Pane to an Edge of the [PaneGrid].

-
source

pub fn swap(&mut self, a: &Pane, b: &Pane)

Swaps the position of the provided panes in the State.

+

pub fn drop(&mut self, pane: &Pane, target: Target)

Drops the given Pane into the provided Target.

+

pub fn move_to_edge(&mut self, pane: &Pane, edge: Edge)

Move Pane to an Edge of the [PaneGrid].

+

pub fn swap(&mut self, a: &Pane, b: &Pane)

Swaps the position of the provided panes in the State.

If you want to swap panes on drag and drop in your PaneGrid, you will need to call this method when handling a DragEvent.

-
source

pub fn resize(&mut self, split: &Split, ratio: f32)

Resizes two panes by setting the position of the provided Split.

+

pub fn resize(&mut self, split: &Split, ratio: f32)

Resizes two panes by setting the position of the provided Split.

The ratio is a value in [0, 1], representing the exact position of a Split between two panes.

If you want to enable resize interactions in your PaneGrid, you will need to call this method when handling a ResizeEvent.

-
source

pub fn close(&mut self, pane: &Pane) -> Option<(T, Pane)>

Closes the given Pane and returns its internal state and its closest +

pub fn close(&mut self, pane: &Pane) -> Option<(T, Pane)>

Closes the given Pane and returns its internal state and its closest sibling, if it exists.

-
source

pub fn maximize(&mut self, pane: &Pane)

Maximize the given Pane. Only this pane will be rendered by the +

pub fn maximize(&mut self, pane: &Pane)

Maximize the given Pane. Only this pane will be rendered by the PaneGrid until Self::restore() is called.

-
source

pub fn restore(&mut self)

Restore the currently maximized Pane to it’s normal size. All panes +

pub fn restore(&mut self)

Restore the currently maximized Pane to it’s normal size. All panes will be rendered by the PaneGrid.

-
source

pub fn maximized(&self) -> Option<Pane>

Returns the maximized Pane of the PaneGrid.

-

Trait Implementations§

source§

impl<T> Clone for State<T>where - T: Clone,

source§

fn clone(&self) -> State<T>

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<T> Debug for State<T>where - T: Debug,

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for State<T>where +

pub fn maximized(&self) -> Option<Pane>

Returns the maximized Pane of the PaneGrid.

+

Trait Implementations§

§

impl<T> Clone for State<T>where + T: Clone,

§

fn clone(&self) -> State<T>

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<T> Debug for State<T>where + T: Debug,

§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for State<T>where T: RefUnwindSafe,

§

impl<T> Send for State<T>where T: Send,

§

impl<T> Sync for State<T>where T: Sync,

§

impl<T> Unpin for State<T>where diff --git a/iced/widget/pane_grid/struct.Content.html b/iced/widget/pane_grid/struct.Content.html index be53c36206b..7823a8f8b16 100644 --- a/iced/widget/pane_grid/struct.Content.html +++ b/iced/widget/pane_grid/struct.Content.html @@ -1,22 +1,22 @@ -Content in iced::widget::pane_grid - Rust

Implementations§

§

impl<'a, Message, Renderer> Content<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source

pub fn new( + <Renderer as Renderer>::Theme: StyleSheet,

pub fn new( body: impl Into<Element<'a, Message, Renderer>> ) -> Content<'a, Message, Renderer>

Creates a new Content with the provided body.

-
source

pub fn title_bar( +

pub fn title_bar( self, title_bar: TitleBar<'a, Message, Renderer> ) -> Content<'a, Message, Renderer>

Sets the TitleBar of this Content.

-
source

pub fn style( +

pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Content<'a, Message, Renderer>

Sets the style of the Content.

-
source§

impl<'a, Message, Renderer> Content<'a, Message, Renderer>where +

§

impl<'a, Message, Renderer> Content<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source

pub fn draw( + <Renderer as Renderer>::Theme: StyleSheet,

pub fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -26,13 +26,13 @@ cursor: Cursor, viewport: &Rectangle<f32> )

Draws the Content with the provided Renderer and Layout.

-

Trait Implementations§

source§

impl<'a, Message, Renderer> Draggable for &Content<'a, Message, Renderer>where +

Trait Implementations§

§

impl<'a, Message, Renderer> Draggable for &Content<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

fn can_be_dragged_at(&self, layout: Layout<'_>, cursor_position: Point) -> bool

Returns whether the Draggable with the given Layout can be picked -at the provided cursor position.
source§

impl<'a, T, Message, Renderer> From<T> for Content<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

fn can_be_dragged_at(&self, layout: Layout<'_>, cursor_position: Point) -> bool

Returns whether the Draggable with the given Layout can be picked +at the provided cursor position.
§

impl<'a, T, Message, Renderer> From<T> for Content<'a, Message, Renderer>where T: Into<Element<'a, Message, Renderer>>, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

fn from(element: T) -> Content<'a, Message, Renderer>

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a, Message, Renderer = Renderer<Theme>> !RefUnwindSafe for Content<'a, Message, Renderer>

§

impl<'a, Message, Renderer = Renderer<Theme>> !Send for Content<'a, Message, Renderer>

§

impl<'a, Message, Renderer = Renderer<Theme>> !Sync for Content<'a, Message, Renderer>

§

impl<'a, Message, Renderer> Unpin for Content<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

§

fn from(element: T) -> Content<'a, Message, Renderer>

Converts to this type from the input type.

Auto Trait Implementations§

§

impl<'a, Message, Renderer = Renderer<Theme>> !RefUnwindSafe for Content<'a, Message, Renderer>

§

impl<'a, Message, Renderer = Renderer<Theme>> !Send for Content<'a, Message, Renderer>

§

impl<'a, Message, Renderer = Renderer<Theme>> !Sync for Content<'a, Message, Renderer>

§

impl<'a, Message, Renderer> Unpin for Content<'a, Message, Renderer>where <<Renderer as Renderer>::Theme as StyleSheet>::Style: Unpin,

§

impl<'a, Message, Renderer = Renderer<Theme>> !UnwindSafe for Content<'a, Message, Renderer>

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, diff --git a/iced/widget/pane_grid/struct.Pane.html b/iced/widget/pane_grid/struct.Pane.html index 4d86b3ad7a0..1276a838486 100644 --- a/iced/widget/pane_grid/struct.Pane.html +++ b/iced/widget/pane_grid/struct.Pane.html @@ -1,15 +1,15 @@ -Pane in iced::widget::pane_grid - Rust

Struct iced::widget::pane_grid::Pane

source ·
pub struct Pane(_);
Expand description

A rectangular region in a PaneGrid used to display widgets.

-

Trait Implementations§

source§

impl Clone for Pane

source§

fn clone(&self) -> Pane

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 Pane

source§

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

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

impl Hash for Pane

source§

fn hash<__H>(&self, state: &mut __H)where +Pane in iced::widget::pane_grid - Rust

Struct iced::widget::pane_grid::Pane

pub struct Pane(_);
Expand description

A rectangular region in a PaneGrid used to display widgets.

+

Trait Implementations§

§

impl Clone for Pane

§

fn clone(&self) -> Pane

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 Pane

§

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

Formats the value using the given formatter. Read more
§

impl Hash for Pane

§

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 Pane

source§

fn cmp(&self, other: &Pane) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for Pane

§

fn cmp(&self, other: &Pane) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere - Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Pane> for Pane

source§

fn eq(&self, other: &Pane) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
§

impl PartialEq<Pane> for Pane

§

fn eq(&self, other: &Pane) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Pane> for Pane

source§

fn partial_cmp(&self, other: &Pane) -> 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

This method 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

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd<Pane> for Pane

§

fn partial_cmp(&self, other: &Pane) -> 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

This method 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

This method 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

This method 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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Copy for Pane

source§

impl Eq for Pane

source§

impl StructuralEq for Pane

source§

impl StructuralPartialEq for Pane

Auto Trait Implementations§

§

impl RefUnwindSafe for Pane

§

impl Send for Pane

§

impl Sync for Pane

§

impl Unpin for Pane

§

impl UnwindSafe for Pane

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +operator. Read more

§

impl Copy for Pane

§

impl Eq for Pane

§

impl StructuralEq for Pane

§

impl StructuralPartialEq for Pane

Auto Trait Implementations§

§

impl RefUnwindSafe for Pane

§

impl Send for Pane

§

impl Sync for Pane

§

impl Unpin for Pane

§

impl UnwindSafe for Pane

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/pane_grid/struct.PaneGrid.html b/iced/widget/pane_grid/struct.PaneGrid.html index 602c73f0ff5..64a733e9758 100644 --- a/iced/widget/pane_grid/struct.PaneGrid.html +++ b/iced/widget/pane_grid/struct.PaneGrid.html @@ -1,4 +1,4 @@ -PaneGrid in iced::widget::pane_grid - Rust

Struct iced::widget::pane_grid::PaneGrid

source ·
pub struct PaneGrid<'a, Message, Renderer = Renderer<Theme>>where
+PaneGrid in iced::widget::pane_grid - Rust

Struct iced::widget::pane_grid::PaneGrid

pub struct PaneGrid<'a, Message, Renderer = Renderer<Theme>>where
     Renderer: Renderer,
     <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,{ /* private fields */ }
Expand description

A collection of panes distributed using either vertical or horizontal splits to completely fill the space available.

@@ -38,30 +38,30 @@

Example

}) .on_drag(Message::PaneDragged) .on_resize(10, Message::PaneResized);
-

Implementations§

source§

impl<'a, Message, Renderer> PaneGrid<'a, Message, Renderer>where +

Implementations§

§

impl<'a, Message, Renderer> PaneGrid<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

source

pub fn new<T>( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

pub fn new<T>( state: &'a State<T>, view: impl Fn(Pane, &'a T, bool) -> Content<'a, Message, Renderer> ) -> PaneGrid<'a, Message, Renderer>

Creates a PaneGrid with the given State and view function.

The view function will be called to display each Pane present in the State. bool is set if the pane is maximized.

-
source

pub fn width(self, width: impl Into<Length>) -> PaneGrid<'a, Message, Renderer>

Sets the width of the PaneGrid.

-
source

pub fn height( +

pub fn width(self, width: impl Into<Length>) -> PaneGrid<'a, Message, Renderer>

Sets the width of the PaneGrid.

+

pub fn height( self, height: impl Into<Length> ) -> PaneGrid<'a, Message, Renderer>

Sets the height of the PaneGrid.

-
source

pub fn spacing( +

pub fn spacing( self, amount: impl Into<Pixels> ) -> PaneGrid<'a, Message, Renderer>

Sets the spacing between the panes of the PaneGrid.

-
source

pub fn on_click<F>(self, f: F) -> PaneGrid<'a, Message, Renderer>where +

pub fn on_click<F>(self, f: F) -> PaneGrid<'a, Message, Renderer>where F: 'a + Fn(Pane) -> Message,

Sets the message that will be produced when a Pane of the PaneGrid is clicked.

-
source

pub fn on_drag<F>(self, f: F) -> PaneGrid<'a, Message, Renderer>where +

pub fn on_drag<F>(self, f: F) -> PaneGrid<'a, Message, Renderer>where F: 'a + Fn(DragEvent) -> Message,

Enables the drag and drop interactions of the PaneGrid, which will use the provided function to produce messages.

-
source

pub fn on_resize<F>( +

pub fn on_resize<F>( self, leeway: impl Into<Pixels>, f: F @@ -73,19 +73,19 @@

Example

The grabbable area of a split will have a length of spacing + leeway, properly centered. In other words, a length of (spacing + leeway) / 2.0 on either side of the split line.

-

source

pub fn style( +

pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> PaneGrid<'a, Message, Renderer>

Sets the style of the PaneGrid.

-

Trait Implementations§

source§

impl<'a, Message, Renderer> Widget<Message, Renderer> for PaneGrid<'a, Message, Renderer>where +

Trait Implementations§

§

impl<'a, Message, Renderer> Widget<Message, Renderer> for PaneGrid<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

source§

fn tag(&self) -> Tag

Returns the Tag of the Widget.
source§

fn state(&self) -> State

Returns the State of the Widget.
source§

fn children(&self) -> Vec<Tree, Global>

Returns the state Tree of the children of the Widget.
source§

fn diff(&self, tree: &mut Tree)

Reconciliates the Widget with the provided Tree.
source§

fn width(&self) -> Length

Returns the width of the Widget.
source§

fn height(&self) -> Length

Returns the height of the Widget.
source§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
source§

fn operate( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

§

fn tag(&self) -> Tag

Returns the Tag of the Widget.
§

fn state(&self) -> State

Returns the State of the Widget.
§

fn children(&self) -> Vec<Tree, Global>

Returns the state Tree of the children of the Widget.
§

fn diff(&self, tree: &mut Tree)

Reconciliates the Widget with the provided Tree.
§

fn width(&self) -> Length

Returns the width of the Widget.
§

fn height(&self) -> Length

Returns the height of the Widget.
§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
§

fn operate( &self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation<Message> -)

Applies an Operation to the Widget.
source§

fn on_event( +)

Applies an Operation to the Widget.
§

fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -95,14 +95,14 @@

Example

clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status
Processes a runtime Event. Read more
source§

fn mouse_interaction( +) -> Status

Processes a runtime Event. Read more
§

fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
source§

fn draw( +) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
§

fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -111,7 +111,7 @@

Example

layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32> -)
Draws the Widget using the associated Renderer.
source§

fn overlay<'b>( +)

Draws the Widget using the associated Renderer.
§

fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/pane_grid/struct.ResizeEvent.html b/iced/widget/pane_grid/struct.ResizeEvent.html index 03e578269b6..dfc84eed55b 100644 --- a/iced/widget/pane_grid/struct.ResizeEvent.html +++ b/iced/widget/pane_grid/struct.ResizeEvent.html @@ -1,4 +1,4 @@ -ResizeEvent in iced::widget::pane_grid - Rust
pub struct ResizeEvent {
+ResizeEvent in iced::widget::pane_grid - Rust
pub struct ResizeEvent {
     pub split: Split,
     pub ratio: f32,
 }
Expand description

An event produced during a resize interaction of a PaneGrid.

@@ -6,7 +6,7 @@
§ratio: f32

The new ratio of the Split.

The ratio is a value in [0, 1], representing the exact position of a Split between two panes.

-

Trait Implementations§

source§

impl Clone for ResizeEvent

source§

fn clone(&self) -> ResizeEvent

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 ResizeEvent

source§

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

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

impl Copy for ResizeEvent

Auto Trait Implementations§

Blanket Implementations§

source§

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

Trait Implementations§

§

impl Clone for ResizeEvent

§

fn clone(&self) -> ResizeEvent

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 ResizeEvent

§

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

Formats the value using the given formatter. Read more
§

impl Copy for ResizeEvent

Auto Trait Implementations§

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/pane_grid/struct.Split.html b/iced/widget/pane_grid/struct.Split.html index 97cbafb9e3b..d334490587e 100644 --- a/iced/widget/pane_grid/struct.Split.html +++ b/iced/widget/pane_grid/struct.Split.html @@ -1,15 +1,15 @@ -Split in iced::widget::pane_grid - Rust

Struct iced::widget::pane_grid::Split

source ·
pub struct Split(_);
Expand description

A divider that splits a region in a PaneGrid into two different panes.

-

Trait Implementations§

source§

impl Clone for Split

source§

fn clone(&self) -> Split

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 Split

source§

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

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

impl Hash for Split

source§

fn hash<__H>(&self, state: &mut __H)where +Split in iced::widget::pane_grid - Rust

Struct iced::widget::pane_grid::Split

pub struct Split(_);
Expand description

A divider that splits a region in a PaneGrid into two different panes.

+

Trait Implementations§

§

impl Clone for Split

§

fn clone(&self) -> Split

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 Split

§

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

Formats the value using the given formatter. Read more
§

impl Hash for Split

§

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 Split

source§

fn cmp(&self, other: &Split) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere + Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
§

impl Ord for Split

§

fn cmp(&self, other: &Split) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · source§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · source§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · source§

fn clamp(self, min: Self, max: Self) -> Selfwhere - Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Split> for Split

source§

fn eq(&self, other: &Split) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
§

impl PartialEq<Split> for Split

§

fn eq(&self, other: &Split) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Split> for Split

source§

fn partial_cmp(&self, other: &Split) -> 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

This method 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

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
§

impl PartialOrd<Split> for Split

§

fn partial_cmp(&self, other: &Split) -> 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

This method 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

This method 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

This method 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

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Copy for Split

source§

impl Eq for Split

source§

impl StructuralEq for Split

source§

impl StructuralPartialEq for Split

Auto Trait Implementations§

§

impl RefUnwindSafe for Split

§

impl Send for Split

§

impl Sync for Split

§

impl Unpin for Split

§

impl UnwindSafe for Split

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +operator. Read more

§

impl Copy for Split

§

impl Eq for Split

§

impl StructuralEq for Split

§

impl StructuralPartialEq for Split

Auto Trait Implementations§

§

impl RefUnwindSafe for Split

§

impl Send for Split

§

impl Sync for Split

§

impl Unpin for Split

§

impl UnwindSafe for Split

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/pane_grid/struct.State.html b/iced/widget/pane_grid/struct.State.html index 82ee1c9a899..0e8bbb56b8b 100644 --- a/iced/widget/pane_grid/struct.State.html +++ b/iced/widget/pane_grid/struct.State.html @@ -1,4 +1,4 @@ -State in iced::widget::pane_grid - Rust

Fields§

§panes: HashMap<Pane, T, RandomState>

The panes of the PaneGrid.

§internal: Internal

The internal state of the PaneGrid.

-

Implementations§

source§

impl<T> State<T>

source

pub fn new(first_pane_state: T) -> (State<T>, Pane)

Creates a new State, initializing the first pane with the provided +

Implementations§

§

impl<T> State<T>

pub fn new(first_pane_state: T) -> (State<T>, Pane)

Creates a new State, initializing the first pane with the provided state.

Alongside the State, it returns the first Pane identifier.

-
source

pub fn with_configuration(config: impl Into<Configuration<T>>) -> State<T>

Creates a new State with the given Configuration.

-
source

pub fn len(&self) -> usize

Returns the total amount of panes in the State.

-
source

pub fn is_empty(&self) -> bool

Returns true if the amount of panes in the State is 0.

-
source

pub fn get(&self, pane: &Pane) -> Option<&T>

Returns the internal state of the given Pane, if it exists.

-
source

pub fn get_mut(&mut self, pane: &Pane) -> Option<&mut T>

Returns the internal state of the given Pane with mutability, if it +

pub fn with_configuration(config: impl Into<Configuration<T>>) -> State<T>

Creates a new State with the given Configuration.

+

pub fn len(&self) -> usize

Returns the total amount of panes in the State.

+

pub fn is_empty(&self) -> bool

Returns true if the amount of panes in the State is 0.

+

pub fn get(&self, pane: &Pane) -> Option<&T>

Returns the internal state of the given Pane, if it exists.

+

pub fn get_mut(&mut self, pane: &Pane) -> Option<&mut T>

Returns the internal state of the given Pane with mutability, if it exists.

-
source

pub fn iter(&self) -> impl Iterator<Item = (&Pane, &T)>

Returns an iterator over all the panes of the State, alongside its +

pub fn iter(&self) -> impl Iterator<Item = (&Pane, &T)>

Returns an iterator over all the panes of the State, alongside its internal state.

-
source

pub fn iter_mut(&mut self) -> impl Iterator<Item = (&Pane, &mut T)>

Returns a mutable iterator over all the panes of the State, +

pub fn iter_mut(&mut self) -> impl Iterator<Item = (&Pane, &mut T)>

Returns a mutable iterator over all the panes of the State, alongside its internal state.

-
source

pub fn layout(&self) -> &Node

Returns the layout of the State.

-
source

pub fn adjacent(&self, pane: &Pane, direction: Direction) -> Option<Pane>

Returns the adjacent Pane of another Pane in the given +

pub fn layout(&self) -> &Node

Returns the layout of the State.

+

pub fn adjacent(&self, pane: &Pane, direction: Direction) -> Option<Pane>

Returns the adjacent Pane of another Pane in the given direction, if there is one.

-
source

pub fn split( +

pub fn split( &mut self, axis: Axis, pane: &Pane, state: T ) -> Option<(Pane, Split)>

Splits the given Pane into two in the given Axis and initializing the new Pane with the provided internal state.

-
source

pub fn split_with(&mut self, target: &Pane, pane: &Pane, region: Region)

Split a target Pane with a given Pane on a given Region.

+

pub fn split_with(&mut self, target: &Pane, pane: &Pane, region: Region)

Split a target Pane with a given Pane on a given Region.

Panes will be swapped by default for Region::Center.

-
source

pub fn drop(&mut self, pane: &Pane, target: Target)

Drops the given Pane into the provided Target.

-
source

pub fn move_to_edge(&mut self, pane: &Pane, edge: Edge)

Move Pane to an Edge of the [PaneGrid].

-
source

pub fn swap(&mut self, a: &Pane, b: &Pane)

Swaps the position of the provided panes in the State.

+

pub fn drop(&mut self, pane: &Pane, target: Target)

Drops the given Pane into the provided Target.

+

pub fn move_to_edge(&mut self, pane: &Pane, edge: Edge)

Move Pane to an Edge of the [PaneGrid].

+

pub fn swap(&mut self, a: &Pane, b: &Pane)

Swaps the position of the provided panes in the State.

If you want to swap panes on drag and drop in your PaneGrid, you will need to call this method when handling a DragEvent.

-
source

pub fn resize(&mut self, split: &Split, ratio: f32)

Resizes two panes by setting the position of the provided Split.

+

pub fn resize(&mut self, split: &Split, ratio: f32)

Resizes two panes by setting the position of the provided Split.

The ratio is a value in [0, 1], representing the exact position of a Split between two panes.

If you want to enable resize interactions in your PaneGrid, you will need to call this method when handling a ResizeEvent.

-
source

pub fn close(&mut self, pane: &Pane) -> Option<(T, Pane)>

Closes the given Pane and returns its internal state and its closest +

pub fn close(&mut self, pane: &Pane) -> Option<(T, Pane)>

Closes the given Pane and returns its internal state and its closest sibling, if it exists.

-
source

pub fn maximize(&mut self, pane: &Pane)

Maximize the given Pane. Only this pane will be rendered by the +

pub fn maximize(&mut self, pane: &Pane)

Maximize the given Pane. Only this pane will be rendered by the PaneGrid until Self::restore() is called.

-
source

pub fn restore(&mut self)

Restore the currently maximized Pane to it’s normal size. All panes +

pub fn restore(&mut self)

Restore the currently maximized Pane to it’s normal size. All panes will be rendered by the PaneGrid.

-
source

pub fn maximized(&self) -> Option<Pane>

Returns the maximized Pane of the PaneGrid.

-

Trait Implementations§

source§

impl<T> Clone for State<T>where - T: Clone,

source§

fn clone(&self) -> State<T>

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<T> Debug for State<T>where - T: Debug,

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for State<T>where +

pub fn maximized(&self) -> Option<Pane>

Returns the maximized Pane of the PaneGrid.

+

Trait Implementations§

§

impl<T> Clone for State<T>where + T: Clone,

§

fn clone(&self) -> State<T>

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<T> Debug for State<T>where + T: Debug,

§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl<T> RefUnwindSafe for State<T>where T: RefUnwindSafe,

§

impl<T> Send for State<T>where T: Send,

§

impl<T> Sync for State<T>where T: Sync,

§

impl<T> Unpin for State<T>where diff --git a/iced/widget/pane_grid/struct.TitleBar.html b/iced/widget/pane_grid/struct.TitleBar.html index f89586004fa..2923e4595e8 100644 --- a/iced/widget/pane_grid/struct.TitleBar.html +++ b/iced/widget/pane_grid/struct.TitleBar.html @@ -1,27 +1,27 @@ -TitleBar in iced::widget::pane_grid - Rust

Implementations§

§

impl<'a, Message, Renderer> TitleBar<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source

pub fn new<E>(content: E) -> TitleBar<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

pub fn new<E>(content: E) -> TitleBar<'a, Message, Renderer>where E: Into<Element<'a, Message, Renderer>>,

Creates a new TitleBar with the given content.

-
source

pub fn controls( +

pub fn controls( self, controls: impl Into<Element<'a, Message, Renderer>> ) -> TitleBar<'a, Message, Renderer>

Sets the controls of the TitleBar.

-
source

pub fn padding<P>(self, padding: P) -> TitleBar<'a, Message, Renderer>where +

pub fn padding<P>(self, padding: P) -> TitleBar<'a, Message, Renderer>where P: Into<Padding>,

Sets the Padding of the TitleBar.

-
source

pub fn style( +

pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> TitleBar<'a, Message, Renderer>

Sets the style of the TitleBar.

-
source

pub fn always_show_controls(self) -> TitleBar<'a, Message, Renderer>

Sets whether or not the controls attached to this TitleBar are +

pub fn always_show_controls(self) -> TitleBar<'a, Message, Renderer>

Sets whether or not the controls attached to this TitleBar are always visible.

By default, the controls are only visible when the Pane of this TitleBar is hovered.

-
source§

impl<'a, Message, Renderer> TitleBar<'a, Message, Renderer>where +

§

impl<'a, Message, Renderer> TitleBar<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source

pub fn draw( + <Renderer as Renderer>::Theme: StyleSheet,

pub fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -32,7 +32,7 @@ viewport: &Rectangle<f32>, show_controls: bool )

Draws the TitleBar with the provided Renderer and Layout.

-
source

pub fn is_over_pick_area( +

pub fn is_over_pick_area( &self, layout: Layout<'_>, cursor_position: Point diff --git a/iced/widget/pane_grid/trait.Draggable.html b/iced/widget/pane_grid/trait.Draggable.html index 4644c756608..7bc9843653f 100644 --- a/iced/widget/pane_grid/trait.Draggable.html +++ b/iced/widget/pane_grid/trait.Draggable.html @@ -1,9 +1,9 @@ -Draggable in iced::widget::pane_grid - Rust
pub trait Draggable {
+Draggable in iced::widget::pane_grid - Rust
pub trait Draggable {
     // Required method
     fn can_be_dragged_at(&self, layout: Layout<'_>, cursor: Point) -> bool;
 }
Expand description

A pane that can be dragged.

-

Required Methods§

source

fn can_be_dragged_at(&self, layout: Layout<'_>, cursor: Point) -> bool

Returns whether the Draggable with the given Layout can be picked +

Required Methods§

fn can_be_dragged_at(&self, layout: Layout<'_>, cursor: Point) -> bool

Returns whether the Draggable with the given Layout can be picked at the provided cursor position.

-

Implementors§

source§

impl<'a, Message, Renderer> Draggable for &Content<'a, Message, Renderer>where +

Implementors§

§

impl<'a, Message, Renderer> Draggable for &Content<'a, Message, Renderer>where Renderer: Renderer, <Renderer as Renderer>::Theme: StyleSheet,

\ No newline at end of file diff --git a/iced/widget/pick_list/enum.Handle.html b/iced/widget/pick_list/enum.Handle.html index f151eb37b4b..4e70af58f15 100644 --- a/iced/widget/pick_list/enum.Handle.html +++ b/iced/widget/pick_list/enum.Handle.html @@ -1,4 +1,4 @@ -Handle in iced::widget::pick_list - Rust
§open: Icon<Font>

The Icon used when PickList is open.

A custom dynamic handle.

§

None

No handle will be shown.

-

Trait Implementations§

source§

impl<Font> Clone for Handle<Font>where - Font: Clone,

source§

fn clone(&self) -> Handle<Font>

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<Font> Debug for Handle<Font>where - Font: Debug,

source§

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

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

impl<Font> Default for Handle<Font>

source§

fn default() -> Handle<Font>

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

impl<Font> PartialEq<Handle<Font>> for Handle<Font>where - Font: PartialEq<Font>,

source§

fn eq(&self, other: &Handle<Font>) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl<Font> Clone for Handle<Font>where + Font: Clone,

§

fn clone(&self) -> Handle<Font>

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<Font> Debug for Handle<Font>where + Font: Debug,

§

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

Formats the value using the given formatter. Read more
§

impl<Font> Default for Handle<Font>

§

fn default() -> Handle<Font>

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

impl<Font> PartialEq<Handle<Font>> for Handle<Font>where + Font: PartialEq<Font>,

§

fn eq(&self, other: &Handle<Font>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<Font> StructuralPartialEq for Handle<Font>

Auto Trait Implementations§

§

impl<Font> RefUnwindSafe for Handle<Font>where +sufficient, and should not be overridden without very good reason.

§

impl<Font> StructuralPartialEq for Handle<Font>

Auto Trait Implementations§

§

impl<Font> RefUnwindSafe for Handle<Font>where Font: RefUnwindSafe,

§

impl<Font> Send for Handle<Font>where Font: Send,

§

impl<Font> Sync for Handle<Font>where Font: Sync,

§

impl<Font> Unpin for Handle<Font>where diff --git a/iced/widget/pick_list/fn.draw.html b/iced/widget/pick_list/fn.draw.html index 3e27f6726bc..5e02b6a61d2 100644 --- a/iced/widget/pick_list/fn.draw.html +++ b/iced/widget/pick_list/fn.draw.html @@ -1,4 +1,4 @@ -draw in iced::widget::pick_list - Rust

Function iced::widget::pick_list::draw

source ·
pub fn draw<'a, T, Renderer>(
+draw in iced::widget::pick_list - Rust

Function iced::widget::pick_list::draw

pub fn draw<'a, T, Renderer>(
     renderer: &mut Renderer,
     theme: &<Renderer as Renderer>::Theme,
     layout: Layout<'_>,
diff --git a/iced/widget/pick_list/fn.layout.html b/iced/widget/pick_list/fn.layout.html
index e7d187b2d05..1469510c023 100644
--- a/iced/widget/pick_list/fn.layout.html
+++ b/iced/widget/pick_list/fn.layout.html
@@ -1,4 +1,4 @@
-layout in iced::widget::pick_list - Rust

Function iced::widget::pick_list::layout

source ·
pub fn layout<Renderer, T>(
+layout in iced::widget::pick_list - Rust

Function iced::widget::pick_list::layout

pub fn layout<Renderer, T>(
     renderer: &Renderer,
     limits: &Limits,
     width: Length,
diff --git a/iced/widget/pick_list/fn.mouse_interaction.html b/iced/widget/pick_list/fn.mouse_interaction.html
index 16688fe71e2..9692f2b3655 100644
--- a/iced/widget/pick_list/fn.mouse_interaction.html
+++ b/iced/widget/pick_list/fn.mouse_interaction.html
@@ -1,2 +1,2 @@
-mouse_interaction in iced::widget::pick_list - Rust
pub fn mouse_interaction(layout: Layout<'_>, cursor: Cursor) -> Interaction
Expand description

Returns the current mouse::Interaction of a PickList.

+mouse_interaction in iced::widget::pick_list - Rust
pub fn mouse_interaction(layout: Layout<'_>, cursor: Cursor) -> Interaction
Expand description

Returns the current mouse::Interaction of a PickList.

\ No newline at end of file diff --git a/iced/widget/pick_list/fn.overlay.html b/iced/widget/pick_list/fn.overlay.html index 620f2fe4db0..a8168c0cf4c 100644 --- a/iced/widget/pick_list/fn.overlay.html +++ b/iced/widget/pick_list/fn.overlay.html @@ -1,4 +1,4 @@ -overlay in iced::widget::pick_list - Rust

Function iced::widget::pick_list::overlay

source ·
pub fn overlay<'a, T, Message, Renderer>(
+overlay in iced::widget::pick_list - Rust

Function iced::widget::pick_list::overlay

pub fn overlay<'a, T, Message, Renderer>(
     layout: Layout<'_>,
     state: &'a mut State,
     padding: Padding,
diff --git a/iced/widget/pick_list/fn.update.html b/iced/widget/pick_list/fn.update.html
index b1d8be80097..aa121520d1f 100644
--- a/iced/widget/pick_list/fn.update.html
+++ b/iced/widget/pick_list/fn.update.html
@@ -1,4 +1,4 @@
-update in iced::widget::pick_list - Rust

Function iced::widget::pick_list::update

source ·
pub fn update<'a, T, Message>(
+update in iced::widget::pick_list - Rust

Function iced::widget::pick_list::update

pub fn update<'a, T, Message>(
     event: Event,
     layout: Layout<'_>,
     cursor: Cursor,
diff --git a/iced/widget/pick_list/index.html b/iced/widget/pick_list/index.html
index a7d25390275..b0b09570a62 100644
--- a/iced/widget/pick_list/index.html
+++ b/iced/widget/pick_list/index.html
@@ -1,3 +1,3 @@
-iced::widget::pick_list - Rust

Module iced::widget::pick_list

source ·
Expand description

Display a dropdown list of selectable values.

+iced::widget::pick_list - Rust

Module iced::widget::pick_list

Expand description

Display a dropdown list of selectable values.

Structs

Enums

Traits

  • A set of rules that dictate the style of a container.

Functions

\ No newline at end of file diff --git a/iced/widget/pick_list/struct.Icon.html b/iced/widget/pick_list/struct.Icon.html index 5396056a030..010728b3c14 100644 --- a/iced/widget/pick_list/struct.Icon.html +++ b/iced/widget/pick_list/struct.Icon.html @@ -1,4 +1,4 @@ -Icon in iced::widget::pick_list - Rust

Struct iced::widget::pick_list::Icon

source ·
pub struct Icon<Font> {
+Icon in iced::widget::pick_list - Rust

Struct iced::widget::pick_list::Icon

pub struct Icon<Font> {
     pub font: Font,
     pub code_point: char,
     pub size: Option<f32>,
@@ -10,12 +10,12 @@
 
§size: Option<f32>

Font size of the content.

§line_height: LineHeight

Line height of the content.

§shaping: Shaping

The shaping strategy of the icon.

-

Trait Implementations§

source§

impl<Font> Clone for Icon<Font>where - Font: Clone,

source§

fn clone(&self) -> Icon<Font>

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<Font> Debug for Icon<Font>where - Font: Debug,

source§

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

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

impl<Font> PartialEq<Icon<Font>> for Icon<Font>where - Font: PartialEq<Font>,

source§

fn eq(&self, other: &Icon<Font>) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl<Font> Clone for Icon<Font>where + Font: Clone,

§

fn clone(&self) -> Icon<Font>

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<Font> Debug for Icon<Font>where + Font: Debug,

§

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

Formats the value using the given formatter. Read more
§

impl<Font> PartialEq<Icon<Font>> for Icon<Font>where + Font: PartialEq<Font>,

§

fn eq(&self, other: &Icon<Font>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl<Font> StructuralPartialEq for Icon<Font>

Auto Trait Implementations§

§

impl<Font> RefUnwindSafe for Icon<Font>where +sufficient, and should not be overridden without very good reason.

§

impl<Font> StructuralPartialEq for Icon<Font>

Auto Trait Implementations§

§

impl<Font> RefUnwindSafe for Icon<Font>where Font: RefUnwindSafe,

§

impl<Font> Send for Icon<Font>where Font: Send,

§

impl<Font> Sync for Icon<Font>where Font: Sync,

§

impl<Font> Unpin for Icon<Font>where diff --git a/iced/widget/pick_list/struct.PickList.html b/iced/widget/pick_list/struct.PickList.html index bf077c8bad2..9c3b051c3f9 100644 --- a/iced/widget/pick_list/struct.PickList.html +++ b/iced/widget/pick_list/struct.PickList.html @@ -1,60 +1,60 @@ -PickList in iced::widget::pick_list - Rust

Implementations§

§

impl<'a, T, Message, Renderer> PickList<'a, T, Message, Renderer>where T: 'a + ToString + Eq, [T]: ToOwned<Owned = Vec<T, Global>>, Renderer: Renderer, <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet, - <<Renderer as Renderer>::Theme as StyleSheet>::Style: From<<<Renderer as Renderer>::Theme as StyleSheet>::Style>,

source

pub const DEFAULT_PADDING: Padding = Padding::new(5.0)

The default padding of a PickList.

-
source

pub fn new( + <<Renderer as Renderer>::Theme as StyleSheet>::Style: From<<<Renderer as Renderer>::Theme as StyleSheet>::Style>,

pub const DEFAULT_PADDING: Padding = Padding::new(5.0)

The default padding of a PickList.

+

pub fn new( options: impl Into<Cow<'a, [T]>>, selected: Option<T>, on_selected: impl Fn(T) -> Message + 'a ) -> PickList<'a, T, Message, Renderer>

Creates a new PickList with the given list of options, the current selected value, and the message to produce when an option is selected.

-
source

pub fn placeholder( +

pub fn placeholder( self, placeholder: impl Into<String> ) -> PickList<'a, T, Message, Renderer>

Sets the placeholder of the PickList.

-
source

pub fn width( +

pub fn width( self, width: impl Into<Length> ) -> PickList<'a, T, Message, Renderer>

Sets the width of the PickList.

-
source

pub fn padding<P>(self, padding: P) -> PickList<'a, T, Message, Renderer>where +

pub fn padding<P>(self, padding: P) -> PickList<'a, T, Message, Renderer>where P: Into<Padding>,

Sets the Padding of the PickList.

-
source

pub fn text_size( +

pub fn text_size( self, size: impl Into<Pixels> ) -> PickList<'a, T, Message, Renderer>

Sets the text size of the PickList.

-
source

pub fn text_line_height( +

pub fn text_line_height( self, line_height: impl Into<LineHeight> ) -> PickList<'a, T, Message, Renderer>

Sets the text [LineHeight] of the PickList.

-
source

pub fn text_shaping( +

pub fn text_shaping( self, shaping: Shaping ) -> PickList<'a, T, Message, Renderer>

Sets the text::Shaping strategy of the PickList.

-
source

pub fn font( +

pub fn font( self, font: impl Into<<Renderer as Renderer>::Font> ) -> PickList<'a, T, Message, Renderer>

Sets the font of the PickList.

-
source

pub fn handle( +

pub fn handle( self, handle: Handle<<Renderer as Renderer>::Font> ) -> PickList<'a, T, Message, Renderer>

Sets the Handle of the PickList.

-
source

pub fn style( +

pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> PickList<'a, T, Message, Renderer>

Sets the style of the PickList.

-

Trait Implementations§

source§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for PickList<'a, T, Message, Renderer>where +

Trait Implementations§

§

impl<'a, T, Message, Renderer> Widget<Message, Renderer> for PickList<'a, T, Message, Renderer>where T: 'a + Clone + ToString + Eq + 'static, [T]: ToOwned<Owned = Vec<T, Global>>, Message: 'a, Renderer: Renderer + 'a, <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet, - <<Renderer as Renderer>::Theme as StyleSheet>::Style: From<<<Renderer as Renderer>::Theme as StyleSheet>::Style>,

source§

fn tag(&self) -> Tag

Returns the Tag of the Widget.
source§

fn state(&self) -> State

Returns the State of the Widget.
source§

fn width(&self) -> Length

Returns the width of the Widget.
source§

fn height(&self) -> Length

Returns the height of the Widget.
source§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
source§

fn on_event( + <<Renderer as Renderer>::Theme as StyleSheet>::Style: From<<<Renderer as Renderer>::Theme as StyleSheet>::Style>,

§

fn tag(&self) -> Tag

Returns the Tag of the Widget.
§

fn state(&self) -> State

Returns the State of the Widget.
§

fn width(&self) -> Length

Returns the width of the Widget.
§

fn height(&self) -> Length

Returns the height of the Widget.
§

fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
§

fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -64,14 +64,14 @@ _clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status

Processes a runtime Event. Read more
source§

fn mouse_interaction( +) -> Status

Processes a runtime Event. Read more
§

fn mouse_interaction( &self, _tree: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, _renderer: &Renderer -) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
source§

fn draw( +) -> Interaction

Returns the current mouse::Interaction of the Widget. Read more
§

fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -80,7 +80,7 @@ layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32> -)

Draws the Widget using the associated Renderer.
source§

fn overlay<'b>( +)

Draws the Widget using the associated Renderer.
§

fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/pick_list/struct.State.html b/iced/widget/pick_list/struct.State.html index b6b70574e7a..0d682bd12d8 100644 --- a/iced/widget/pick_list/struct.State.html +++ b/iced/widget/pick_list/struct.State.html @@ -1,6 +1,6 @@ -State in iced::widget::pick_list - Rust

Struct iced::widget::pick_list::State

source ·
pub struct State { /* private fields */ }
Expand description

The local state of a PickList.

-

Implementations§

source§

impl State

source

pub fn new() -> State

Creates a new State for a PickList.

-

Trait Implementations§

source§

impl Debug for State

source§

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

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

impl Default for State

source§

fn default() -> State

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

Auto Trait Implementations§

§

impl !RefUnwindSafe for State

§

impl !Send for State

§

impl !Sync for State

§

impl Unpin for State

§

impl !UnwindSafe for State

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +State in iced::widget::pick_list - Rust

Struct iced::widget::pick_list::State

pub struct State { /* private fields */ }
Expand description

The local state of a PickList.

+

Implementations§

§

impl State

pub fn new() -> State

Creates a new State for a PickList.

+

Trait Implementations§

§

impl Debug for State

§

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

Formats the value using the given formatter. Read more
§

impl Default for State

§

fn default() -> State

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

Auto Trait Implementations§

§

impl !RefUnwindSafe for State

§

impl !Send for State

§

impl !Sync for State

§

impl Unpin for State

§

impl !UnwindSafe for State

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/progress_bar/index.html b/iced/widget/progress_bar/index.html index aa189e915f0..279f3e82d9c 100644 --- a/iced/widget/progress_bar/index.html +++ b/iced/widget/progress_bar/index.html @@ -1,2 +1,2 @@ -iced::widget::progress_bar - Rust

Module iced::widget::progress_bar

source ·
Expand description

Provide progress feedback to your users.

+iced::widget::progress_bar - Rust

Module iced::widget::progress_bar

Expand description

Provide progress feedback to your users.

Structs

Traits

  • A set of rules that dictate the style of a progress bar.
\ No newline at end of file diff --git a/iced/widget/progress_bar/struct.ProgressBar.html b/iced/widget/progress_bar/struct.ProgressBar.html index f26a3edfac1..849e4dc4444 100644 --- a/iced/widget/progress_bar/struct.ProgressBar.html +++ b/iced/widget/progress_bar/struct.ProgressBar.html @@ -1,4 +1,4 @@ -ProgressBar in iced::widget::progress_bar - Rust

Progress bar drawn with iced_wgpu

-

Implementations§

source§

impl<Renderer> ProgressBar<Renderer>where +

Implementations§

§

impl<Renderer> ProgressBar<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source

pub const DEFAULT_HEIGHT: f32 = 30f32

The default height of a ProgressBar.

-
source

pub fn new(range: RangeInclusive<f32>, value: f32) -> ProgressBar<Renderer>

Creates a new ProgressBar.

+ <Renderer as Renderer>::Theme: StyleSheet,

pub const DEFAULT_HEIGHT: f32 = 30f32

The default height of a ProgressBar.

+

pub fn new(range: RangeInclusive<f32>, value: f32) -> ProgressBar<Renderer>

Creates a new ProgressBar.

It expects:

  • an inclusive range of possible values
  • the current value of the ProgressBar
-
source

pub fn width(self, width: impl Into<Length>) -> ProgressBar<Renderer>

Sets the width of the ProgressBar.

-
source

pub fn height(self, height: impl Into<Length>) -> ProgressBar<Renderer>

Sets the height of the ProgressBar.

-
source

pub fn style( +

pub fn width(self, width: impl Into<Length>) -> ProgressBar<Renderer>

Sets the width of the ProgressBar.

+

pub fn height(self, height: impl Into<Length>) -> ProgressBar<Renderer>

Sets the height of the ProgressBar.

+

pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> ProgressBar<Renderer>

Sets the style of the ProgressBar.

-

Trait Implementations§

source§

impl<Message, Renderer> Widget<Message, Renderer> for ProgressBar<Renderer>where +

Trait Implementations§

§

impl<Message, Renderer> Widget<Message, Renderer> for ProgressBar<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source§

fn width(&self) -> Length

Returns the width of the Widget.
source§

fn height(&self) -> Length

Returns the height of the Widget.
source§

fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
source§

fn draw( + <Renderer as Renderer>::Theme: StyleSheet,

§

fn width(&self) -> Length

Returns the width of the Widget.
§

fn height(&self) -> Length

Returns the height of the Widget.
§

fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
§

fn draw( &self, _state: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/qr_code/enum.Error.html b/iced/widget/qr_code/enum.Error.html index 11bf4193894..577149d175c 100644 --- a/iced/widget/qr_code/enum.Error.html +++ b/iced/widget/qr_code/enum.Error.html @@ -1,4 +1,4 @@ -Error in iced::widget::qr_code - Rust

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<(), Error>

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

impl Display for Error

source§

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

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

impl Error for Error

1.30.0 · source§

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

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, demand: &mut Demand<'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<QrError> for Error

source§

fn from(error: QrError) -> Error

Converts to this type from the input type.
source§

impl PartialEq<Error> for Error

source§

fn eq(&self, other: &Error) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for Error

§

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
§

impl Debug for Error

§

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

Formats the value using the given formatter. Read more
§

impl Display for Error

§

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

Formats the value using the given formatter. Read more
§

impl Error for Error

1.30.0 · source§

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

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, demand: &mut Demand<'a>)

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

impl From<QrError> for Error

§

fn from(error: QrError) -> Error

Converts to this type from the input type.
§

impl PartialEq<Error> for Error

§

fn eq(&self, other: &Error) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for Error

source§

impl Eq for Error

source§

impl StructuralEq for Error

source§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

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 Swhere +sufficient, and should not be overridden without very good reason.

§

impl Copy for Error

§

impl Eq for Error

§

impl StructuralEq for Error

§

impl StructuralPartialEq for Error

Auto Trait Implementations§

§

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 Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/qr_code/enum.ErrorCorrection.html b/iced/widget/qr_code/enum.ErrorCorrection.html index edc4c9bab8a..ef0aca41e3b 100644 --- a/iced/widget/qr_code/enum.ErrorCorrection.html +++ b/iced/widget/qr_code/enum.ErrorCorrection.html @@ -1,4 +1,4 @@ -ErrorCorrection in iced::widget::qr_code - Rust

Trait Implementations§

source§

impl Clone for ErrorCorrection

source§

fn clone(&self) -> ErrorCorrection

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 ErrorCorrection

source§

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

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

impl PartialEq<ErrorCorrection> for ErrorCorrection

source§

fn eq(&self, other: &ErrorCorrection) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for ErrorCorrection

§

fn clone(&self) -> ErrorCorrection

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 ErrorCorrection

§

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

Formats the value using the given formatter. Read more
§

impl PartialEq<ErrorCorrection> for ErrorCorrection

§

fn eq(&self, other: &ErrorCorrection) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for ErrorCorrection

source§

impl Eq for ErrorCorrection

source§

impl StructuralEq for ErrorCorrection

source§

impl StructuralPartialEq for ErrorCorrection

Auto Trait Implementations§

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

§

impl Copy for ErrorCorrection

§

impl Eq for ErrorCorrection

§

impl StructuralEq for ErrorCorrection

§

impl StructuralPartialEq for ErrorCorrection

Auto Trait Implementations§

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/qr_code/enum.Version.html b/iced/widget/qr_code/enum.Version.html index 02a0f2d22a0..1244edfb151 100644 --- a/iced/widget/qr_code/enum.Version.html +++ b/iced/widget/qr_code/enum.Version.html @@ -1,4 +1,4 @@ -Version in iced::widget::qr_code - Rust

Enum iced::widget::qr_code::Version

source ·
pub enum Version {
+Version in iced::widget::qr_code - Rust

Enum iced::widget::qr_code::Version

pub enum Version {
     Normal(u8),
     Micro(u8),
 }
Available on crate feature qr_code only.
Expand description

The size of a QRCode.

@@ -6,9 +6,9 @@ information the QRCode can carry.

Variants§

§

Normal(u8)

A normal QR code version. It should be between 1 and 40.

§

Micro(u8)

A micro QR code version. It should be between 1 and 4.

-

Trait Implementations§

source§

impl Clone for Version

source§

fn clone(&self) -> Version

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 Version

source§

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

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

impl PartialEq<Version> for Version

source§

fn eq(&self, other: &Version) -> bool

This method tests for self and other values to be equal, and is used +

Trait Implementations§

§

impl Clone for Version

§

fn clone(&self) -> Version

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 Version

§

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

Formats the value using the given formatter. Read more
§

impl PartialEq<Version> for Version

§

fn eq(&self, other: &Version) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl Copy for Version

source§

impl Eq for Version

source§

impl StructuralEq for Version

source§

impl StructuralPartialEq for Version

Auto Trait Implementations§

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

§

impl Copy for Version

§

impl Eq for Version

§

impl StructuralEq for Version

§

impl StructuralPartialEq for Version

Auto Trait Implementations§

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/qr_code/index.html b/iced/widget/qr_code/index.html index 14b116cb720..3069d05b0b7 100644 --- a/iced/widget/qr_code/index.html +++ b/iced/widget/qr_code/index.html @@ -1,3 +1,3 @@ -iced::widget::qr_code - Rust

Module iced::widget::qr_code

source ·
Available on crate feature qr_code only.
Expand description

Encode and display information in a QR code.

+iced::widget::qr_code - Rust

Module iced::widget::qr_code

Available on crate feature qr_code only.
Expand description

Encode and display information in a QR code.

Structs

  • A type of matrix barcode consisting of squares arranged in a grid which can be read by an imaging device, such as a camera.
  • The state of a QRCode.

Enums

\ No newline at end of file diff --git a/iced/widget/qr_code/struct.QRCode.html b/iced/widget/qr_code/struct.QRCode.html index d4899c32e46..f8abdd9ce2c 100644 --- a/iced/widget/qr_code/struct.QRCode.html +++ b/iced/widget/qr_code/struct.QRCode.html @@ -1,9 +1,9 @@ -QRCode in iced::widget::qr_code - Rust

Struct iced::widget::qr_code::QRCode

source ·
pub struct QRCode<'a> { /* private fields */ }
Available on crate feature qr_code only.
Expand description

A type of matrix barcode consisting of squares arranged in a grid which +QRCode in iced::widget::qr_code - Rust

Struct iced::widget::qr_code::QRCode

pub struct QRCode<'a> { /* private fields */ }
Available on crate feature qr_code only.
Expand description

A type of matrix barcode consisting of squares arranged in a grid which can be read by an imaging device, such as a camera.

-

Implementations§

source§

impl<'a> QRCode<'a>

source

pub fn new(state: &'a State) -> QRCode<'a>

Creates a new QRCode with the provided State.

-
source

pub fn color(self, dark: Color, light: Color) -> QRCode<'a>

Sets both the dark and light Colors of the QRCode.

-
source

pub fn cell_size(self, cell_size: u16) -> QRCode<'a>

Sets the size of the squares of the grid cell of the QRCode.

-

Trait Implementations§

source§

impl<'a> Debug for QRCode<'a>

source§

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

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

impl<'a, Message, Theme> Widget<Message, Renderer<Theme>> for QRCode<'a>

source§

fn width(&self) -> Length

Returns the width of the Widget.
source§

fn height(&self) -> Length

Returns the height of the Widget.
source§

fn layout(&self, _renderer: &Renderer<Theme>, _limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
source§

fn draw( +

Implementations§

§

impl<'a> QRCode<'a>

pub fn new(state: &'a State) -> QRCode<'a>

Creates a new QRCode with the provided State.

+

pub fn color(self, dark: Color, light: Color) -> QRCode<'a>

Sets both the dark and light Colors of the QRCode.

+

pub fn cell_size(self, cell_size: u16) -> QRCode<'a>

Sets the size of the squares of the grid cell of the QRCode.

+

Trait Implementations§

§

impl<'a> Debug for QRCode<'a>

§

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

Formats the value using the given formatter. Read more
§

impl<'a, Message, Theme> Widget<Message, Renderer<Theme>> for QRCode<'a>

§

fn width(&self) -> Length

Returns the width of the Widget.
§

fn height(&self) -> Length

Returns the height of the Widget.
§

fn layout(&self, _renderer: &Renderer<Theme>, _limits: &Limits) -> Node

Returns the layout::Node of the Widget. Read more
§

fn draw( &self, _state: &Tree, renderer: &mut Renderer<Theme>, diff --git a/iced/widget/qr_code/struct.State.html b/iced/widget/qr_code/struct.State.html index 0437903d911..8f5bd2a51cb 100644 --- a/iced/widget/qr_code/struct.State.html +++ b/iced/widget/qr_code/struct.State.html @@ -1,19 +1,19 @@ -State in iced::widget::qr_code - Rust

Struct iced::widget::qr_code::State

source ·
pub struct State { /* private fields */ }
Available on crate feature qr_code only.
Expand description

The state of a QRCode.

+State in iced::widget::qr_code - Rust

Struct iced::widget::qr_code::State

pub struct State { /* private fields */ }
Available on crate feature qr_code only.
Expand description

The state of a QRCode.

It stores the data that will be displayed.

-

Implementations§

source§

impl State

source

pub fn new(data: impl AsRef<[u8]>) -> Result<State, Error>

Creates a new State with the provided data.

+

Implementations§

§

impl State

pub fn new(data: impl AsRef<[u8]>) -> Result<State, Error>

Creates a new State with the provided data.

This method uses an ErrorCorrection::Medium and chooses the smallest size to display the data.

-
source

pub fn with_error_correction( +

pub fn with_error_correction( data: impl AsRef<[u8]>, error_correction: ErrorCorrection ) -> Result<State, Error>

Creates a new State with the provided ErrorCorrection.

-
source

pub fn with_version( +

pub fn with_version( data: impl AsRef<[u8]>, version: Version, error_correction: ErrorCorrection ) -> Result<State, Error>

Creates a new State with the provided Version and ErrorCorrection.

-

Trait Implementations§

source§

impl Debug for State

source§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for State

§

impl Send for State

§

impl !Sync for State

§

impl Unpin for State

§

impl !UnwindSafe for State

Blanket Implementations§

source§

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

Trait Implementations§

§

impl Debug for State

§

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

Formats the value using the given formatter. Read more

Auto Trait Implementations§

§

impl !RefUnwindSafe for State

§

impl Send for State

§

impl !Sync for State

§

impl Unpin for State

§

impl !UnwindSafe for State

Blanket Implementations§

source§

impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/radio/index.html b/iced/widget/radio/index.html index 58ed656b450..b43e9e76b0f 100644 --- a/iced/widget/radio/index.html +++ b/iced/widget/radio/index.html @@ -1,2 +1,2 @@ -iced::widget::radio - Rust

Module iced::widget::radio

source ·
Expand description

Create choices using radio buttons.

+iced::widget::radio - Rust

Module iced::widget::radio

Expand description

Create choices using radio buttons.

Structs

  • The appearance of a radio button.
  • A circular button representing a choice.

Traits

  • A set of rules that dictate the style of a radio button.
\ No newline at end of file diff --git a/iced/widget/radio/struct.Radio.html b/iced/widget/radio/struct.Radio.html index 2c90547504a..e9e84b59675 100644 --- a/iced/widget/radio/struct.Radio.html +++ b/iced/widget/radio/struct.Radio.html @@ -1,4 +1,4 @@ -Radio in iced::widget::radio - Rust
-

Implementations§

source§

impl<Message, Renderer> Radio<Message, Renderer>where +

Implementations§

§

impl<Message, Renderer> Radio<Message, Renderer>where Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

source

pub const DEFAULT_SIZE: f32 = 28f32

The default size of a Radio button.

-
source

pub const DEFAULT_SPACING: f32 = 15f32

The default spacing of a Radio button.

-
source

pub fn new<F, V>( + <Renderer as Renderer>::Theme: StyleSheet,

pub const DEFAULT_SIZE: f32 = 28f32

The default size of a Radio button.

+

pub const DEFAULT_SPACING: f32 = 15f32

The default spacing of a Radio button.

+

pub fn new<F, V>( label: impl Into<String>, value: V, selected: Option<V>, @@ -67,27 +67,27 @@

Example

  • a function that will be called when the Radio is selected. It receives the value of the radio and must produce a Message.
  • -
    source

    pub fn size(self, size: impl Into<Pixels>) -> Radio<Message, Renderer>

    Sets the size of the Radio button.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Radio<Message, Renderer>

    Sets the width of the Radio button.

    -
    source

    pub fn spacing(self, spacing: impl Into<Pixels>) -> Radio<Message, Renderer>

    Sets the spacing between the Radio button and the text.

    -
    source

    pub fn text_size(self, text_size: impl Into<Pixels>) -> Radio<Message, Renderer>

    Sets the text size of the Radio button.

    -
    source

    pub fn text_line_height( +

    pub fn size(self, size: impl Into<Pixels>) -> Radio<Message, Renderer>

    Sets the size of the Radio button.

    +

    pub fn width(self, width: impl Into<Length>) -> Radio<Message, Renderer>

    Sets the width of the Radio button.

    +

    pub fn spacing(self, spacing: impl Into<Pixels>) -> Radio<Message, Renderer>

    Sets the spacing between the Radio button and the text.

    +

    pub fn text_size(self, text_size: impl Into<Pixels>) -> Radio<Message, Renderer>

    Sets the text size of the Radio button.

    +

    pub fn text_line_height( self, line_height: impl Into<LineHeight> ) -> Radio<Message, Renderer>

    Sets the text [LineHeight] of the Radio button.

    -
    source

    pub fn text_shaping(self, shaping: Shaping) -> Radio<Message, Renderer>

    Sets the text::Shaping strategy of the Radio button.

    -
    source

    pub fn font( +

    pub fn text_shaping(self, shaping: Shaping) -> Radio<Message, Renderer>

    Sets the text::Shaping strategy of the Radio button.

    +

    pub fn font( self, font: impl Into<<Renderer as Renderer>::Font> ) -> Radio<Message, Renderer>

    Sets the text font of the Radio button.

    -
    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Radio<Message, Renderer>

    Sets the style of the Radio button.

    -

    Trait Implementations§

    source§

    impl<Message, Renderer> Widget<Message, Renderer> for Radio<Message, Renderer>where +

    Trait Implementations§

    §

    impl<Message, Renderer> Widget<Message, Renderer> for Radio<Message, Renderer>where Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn on_event( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn on_event( &mut self, _state: &mut Tree, event: Event, @@ -97,14 +97,14 @@

    Example

    _clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status
    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, _state: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, _renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, _state: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/rule/index.html b/iced/widget/rule/index.html index 0a0651d8b6d..c1c298f7b75 100644 --- a/iced/widget/rule/index.html +++ b/iced/widget/rule/index.html @@ -1,2 +1,2 @@ -iced::widget::rule - Rust

    Module iced::widget::rule

    source ·
    Expand description

    Display a horizontal or vertical rule for dividing content.

    +iced::widget::rule - Rust

    Module iced::widget::rule

    Expand description

    Display a horizontal or vertical rule for dividing content.

    Structs

    • The appearance of a rule.
    • Display a horizontal or vertical rule for dividing content.

    Enums

    Traits

    • A set of rules that dictate the style of a rule.
    \ No newline at end of file diff --git a/iced/widget/rule/struct.Rule.html b/iced/widget/rule/struct.Rule.html index ad9c0626d60..394d19dbef2 100644 --- a/iced/widget/rule/struct.Rule.html +++ b/iced/widget/rule/struct.Rule.html @@ -1,17 +1,17 @@ -Rule in iced::widget::rule - Rust

    Implementations§

    §

    impl<Renderer> Rule<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub fn horizontal(height: impl Into<Pixels>) -> Rule<Renderer>

    Creates a horizontal Rule with the given height.

    -
    source

    pub fn vertical(width: impl Into<Pixels>) -> Rule<Renderer>

    Creates a vertical Rule with the given width.

    -
    source

    pub fn style( + <Renderer as Renderer>::Theme: StyleSheet,

    pub fn horizontal(height: impl Into<Pixels>) -> Rule<Renderer>

    Creates a horizontal Rule with the given height.

    +

    pub fn vertical(width: impl Into<Pixels>) -> Rule<Renderer>

    Creates a vertical Rule with the given width.

    +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Rule<Renderer>

    Sets the style of the Rule.

    -

    Trait Implementations§

    source§

    impl<Message, Renderer> Widget<Message, Renderer> for Rule<Renderer>where +

    Trait Implementations§

    §

    impl<Message, Renderer> Widget<Message, Renderer> for Rule<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn draw( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn draw( &self, _state: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/scrollable/enum.Alignment.html b/iced/widget/scrollable/enum.Alignment.html index 36f2cc70047..da38b15be49 100644 --- a/iced/widget/scrollable/enum.Alignment.html +++ b/iced/widget/scrollable/enum.Alignment.html @@ -1,12 +1,12 @@ -Alignment in iced::widget::scrollable - Rust
    pub enum Alignment {
    +Alignment in iced::widget::scrollable - Rust
    pub enum Alignment {
         Start,
         End,
     }
    Expand description

    Alignment of the scrollable’s content relative to it’s Viewport in one direction.

    Variants§

    §

    Start

    Content is aligned to the start of the Viewport.

    §

    End

    Content is aligned to the end of the Viewport

    -

    Trait Implementations§

    source§

    impl Clone for Alignment

    source§

    fn clone(&self) -> Alignment

    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 Alignment

    source§

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

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

    impl Default for Alignment

    source§

    fn default() -> Alignment

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

    impl PartialEq<Alignment> for Alignment

    source§

    fn eq(&self, other: &Alignment) -> bool

    This method tests for self and other values to be equal, and is used +

    Trait Implementations§

    §

    impl Clone for Alignment

    §

    fn clone(&self) -> Alignment

    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 Alignment

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Default for Alignment

    §

    fn default() -> Alignment

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

    impl PartialEq<Alignment> for Alignment

    §

    fn eq(&self, other: &Alignment) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for Alignment

    source§

    impl Eq for Alignment

    source§

    impl StructuralEq for Alignment

    source§

    impl StructuralPartialEq for Alignment

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

    §

    impl Copy for Alignment

    §

    impl Eq for Alignment

    §

    impl StructuralEq for Alignment

    §

    impl StructuralPartialEq for Alignment

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/scrollable/enum.Direction.html b/iced/widget/scrollable/enum.Direction.html index a856eadc122..cbd477d8818 100644 --- a/iced/widget/scrollable/enum.Direction.html +++ b/iced/widget/scrollable/enum.Direction.html @@ -1,4 +1,4 @@ -Direction in iced::widget::scrollable - Rust

    Implementations§

    source§

    impl Direction

    source

    pub fn horizontal(&self) -> Option<&Properties>

    Returns the Properties of the horizontal scrollbar, if any.

    -
    source

    pub fn vertical(&self) -> Option<&Properties>

    Returns the Properties of the vertical scrollbar, if any.

    -

    Trait Implementations§

    source§

    impl Clone for Direction

    source§

    fn clone(&self) -> Direction

    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 Direction

    source§

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

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

    impl Default for Direction

    source§

    fn default() -> Direction

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

    impl PartialEq<Direction> for Direction

    source§

    fn eq(&self, other: &Direction) -> bool

    This method tests for self and other values to be equal, and is used +

    Implementations§

    §

    impl Direction

    pub fn horizontal(&self) -> Option<&Properties>

    Returns the Properties of the horizontal scrollbar, if any.

    +

    pub fn vertical(&self) -> Option<&Properties>

    Returns the Properties of the vertical scrollbar, if any.

    +

    Trait Implementations§

    §

    impl Clone for Direction

    §

    fn clone(&self) -> Direction

    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 Direction

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Default for Direction

    §

    fn default() -> Direction

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

    impl PartialEq<Direction> for Direction

    §

    fn eq(&self, other: &Direction) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for Direction

    source§

    impl StructuralPartialEq for Direction

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

    §

    impl Copy for Direction

    §

    impl StructuralPartialEq for Direction

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/scrollable/fn.draw.html b/iced/widget/scrollable/fn.draw.html index 7effcc81cbf..1fe07349ed8 100644 --- a/iced/widget/scrollable/fn.draw.html +++ b/iced/widget/scrollable/fn.draw.html @@ -1,4 +1,4 @@ -draw in iced::widget::scrollable - Rust

    Function iced::widget::scrollable::draw

    source ·
    pub fn draw<Renderer>(
    +draw in iced::widget::scrollable - Rust

    Function iced::widget::scrollable::draw

    pub fn draw<Renderer>(
         state: &State,
         renderer: &mut Renderer,
         theme: &<Renderer as Renderer>::Theme,
    diff --git a/iced/widget/scrollable/fn.layout.html b/iced/widget/scrollable/fn.layout.html
    index f56cfadf047..81b37877de9 100644
    --- a/iced/widget/scrollable/fn.layout.html
    +++ b/iced/widget/scrollable/fn.layout.html
    @@ -1,4 +1,4 @@
    -layout in iced::widget::scrollable - Rust

    Function iced::widget::scrollable::layout

    source ·
    pub fn layout<Renderer>(
    +layout in iced::widget::scrollable - Rust

    Function iced::widget::scrollable::layout

    pub fn layout<Renderer>(
         renderer: &Renderer,
         limits: &Limits,
         width: Length,
    diff --git a/iced/widget/scrollable/fn.mouse_interaction.html b/iced/widget/scrollable/fn.mouse_interaction.html
    index 921f9187303..cb3b3f17f86 100644
    --- a/iced/widget/scrollable/fn.mouse_interaction.html
    +++ b/iced/widget/scrollable/fn.mouse_interaction.html
    @@ -1,4 +1,4 @@
    -mouse_interaction in iced::widget::scrollable - Rust
    pub fn mouse_interaction(
    +mouse_interaction in iced::widget::scrollable - Rust
    pub fn mouse_interaction(
         state: &State,
         layout: Layout<'_>,
         cursor: Cursor,
    diff --git a/iced/widget/scrollable/fn.scroll_to.html b/iced/widget/scrollable/fn.scroll_to.html
    index 47f5cf5655b..61fdb754b65 100644
    --- a/iced/widget/scrollable/fn.scroll_to.html
    +++ b/iced/widget/scrollable/fn.scroll_to.html
    @@ -1,4 +1,4 @@
    -scroll_to in iced::widget::scrollable - Rust

    Function iced::widget::scrollable::scroll_to

    source ·
    pub fn scroll_to<Message>(id: Id, offset: AbsoluteOffset) -> Command<Message>where
    +scroll_to in iced::widget::scrollable - Rust

    Function iced::widget::scrollable::scroll_to

    pub fn scroll_to<Message>(id: Id, offset: AbsoluteOffset) -> Command<Message>where
         Message: 'static,
    Expand description

    Produces a Command that scrolls the Scrollable with the given Id to the provided AbsoluteOffset along the x & y axis.

    \ No newline at end of file diff --git a/iced/widget/scrollable/fn.snap_to.html b/iced/widget/scrollable/fn.snap_to.html index 11b87dca75e..2398f001f09 100644 --- a/iced/widget/scrollable/fn.snap_to.html +++ b/iced/widget/scrollable/fn.snap_to.html @@ -1,4 +1,4 @@ -snap_to in iced::widget::scrollable - Rust

    Function iced::widget::scrollable::snap_to

    source ·
    pub fn snap_to<Message>(id: Id, offset: RelativeOffset) -> Command<Message>where
    +snap_to in iced::widget::scrollable - Rust

    Function iced::widget::scrollable::snap_to

    pub fn snap_to<Message>(id: Id, offset: RelativeOffset) -> Command<Message>where
         Message: 'static,
    Expand description

    Produces a Command that snaps the Scrollable with the given Id to the provided percentage along the x & y axis.

    \ No newline at end of file diff --git a/iced/widget/scrollable/fn.update.html b/iced/widget/scrollable/fn.update.html index 2e7b2a4113c..7a8a614d2cb 100644 --- a/iced/widget/scrollable/fn.update.html +++ b/iced/widget/scrollable/fn.update.html @@ -1,4 +1,4 @@ -update in iced::widget::scrollable - Rust

    Function iced::widget::scrollable::update

    source ·
    pub fn update<Message>(
    +update in iced::widget::scrollable - Rust

    Function iced::widget::scrollable::update

    pub fn update<Message>(
         state: &mut State,
         event: Event,
         layout: Layout<'_>,
    diff --git a/iced/widget/scrollable/index.html b/iced/widget/scrollable/index.html
    index 27f09d7758e..290d93f8d0c 100644
    --- a/iced/widget/scrollable/index.html
    +++ b/iced/widget/scrollable/index.html
    @@ -1,4 +1,4 @@
    -iced::widget::scrollable - Rust

    Module iced::widget::scrollable

    source ·
    Expand description

    Navigate an endless amount of content with a scrollbar.

    +iced::widget::scrollable - Rust

    Module iced::widget::scrollable

    Expand description

    Navigate an endless amount of content with a scrollbar.

    Structs

    Enums

    Traits

    • A set of rules that dictate the style of a scrollable.

    Functions

    Feeds a slice of this type into the given Hasher. Read more
    §

    impl PartialEq<Id> for Id

    §

    fn eq(&self, other: &Id) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Eq for Id

    source§

    impl StructuralEq for Id

    source§

    impl StructuralPartialEq for Id

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Id

    §

    impl Send for Id

    §

    impl Sync for Id

    §

    impl Unpin for Id

    §

    impl UnwindSafe for Id

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

    §

    impl Eq for Id

    §

    impl StructuralEq for Id

    §

    impl StructuralPartialEq for Id

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Id

    §

    impl Send for Id

    §

    impl Sync for Id

    §

    impl Unpin for Id

    §

    impl UnwindSafe for Id

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/scrollable/struct.Properties.html b/iced/widget/scrollable/struct.Properties.html index 075c2d8905f..2723cb34244 100644 --- a/iced/widget/scrollable/struct.Properties.html +++ b/iced/widget/scrollable/struct.Properties.html @@ -1,12 +1,12 @@ -Properties in iced::widget::scrollable - Rust
    pub struct Properties { /* private fields */ }
    Expand description

    Properties of a scrollbar within a Scrollable.

    -

    Implementations§

    source§

    impl Properties

    source

    pub fn new() -> Properties

    Creates new Properties for use in a Scrollable.

    -
    source

    pub fn width(self, width: impl Into<Pixels>) -> Properties

    Sets the scrollbar width of the Scrollable .

    -
    source

    pub fn margin(self, margin: impl Into<Pixels>) -> Properties

    Sets the scrollbar margin of the Scrollable .

    -
    source

    pub fn scroller_width(self, scroller_width: impl Into<Pixels>) -> Properties

    Sets the scroller width of the Scrollable .

    -
    source

    pub fn alignment(self, alignment: Alignment) -> Properties

    Sets the alignment of the Scrollable .

    -

    Trait Implementations§

    source§

    impl Clone for Properties

    source§

    fn clone(&self) -> Properties

    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 Properties

    source§

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

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

    impl Default for Properties

    source§

    fn default() -> Properties

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

    impl PartialEq<Properties> for Properties

    source§

    fn eq(&self, other: &Properties) -> bool

    This method tests for self and other values to be equal, and is used +Properties in iced::widget::scrollable - Rust
    pub struct Properties { /* private fields */ }
    Expand description

    Properties of a scrollbar within a Scrollable.

    +

    Implementations§

    §

    impl Properties

    pub fn new() -> Properties

    Creates new Properties for use in a Scrollable.

    +

    pub fn width(self, width: impl Into<Pixels>) -> Properties

    Sets the scrollbar width of the Scrollable .

    +

    pub fn margin(self, margin: impl Into<Pixels>) -> Properties

    Sets the scrollbar margin of the Scrollable .

    +

    pub fn scroller_width(self, scroller_width: impl Into<Pixels>) -> Properties

    Sets the scroller width of the Scrollable .

    +

    pub fn alignment(self, alignment: Alignment) -> Properties

    Sets the alignment of the Scrollable .

    +

    Trait Implementations§

    §

    impl Clone for Properties

    §

    fn clone(&self) -> Properties

    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 Properties

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Default for Properties

    §

    fn default() -> Properties

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

    impl PartialEq<Properties> for Properties

    §

    fn eq(&self, other: &Properties) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for Properties

    source§

    impl StructuralPartialEq for Properties

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

    §

    impl Copy for Properties

    §

    impl StructuralPartialEq for Properties

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/scrollable/struct.Scrollable.html b/iced/widget/scrollable/struct.Scrollable.html index 584ccdfd952..5af7e05a41d 100644 --- a/iced/widget/scrollable/struct.Scrollable.html +++ b/iced/widget/scrollable/struct.Scrollable.html @@ -1,43 +1,43 @@ -Scrollable in iced::widget::scrollable - Rust
    pub struct Scrollable<'a, Message, Renderer = Renderer<Theme>>where
    +Scrollable in iced::widget::scrollable - Rust
    pub struct Scrollable<'a, Message, Renderer = Renderer<Theme>>where
         Renderer: Renderer,
         <Renderer as Renderer>::Theme: StyleSheet,{ /* private fields */ }
    Expand description

    A widget that can vertically display an infinite amount of content with a scrollbar.

    -

    Implementations§

    source§

    impl<'a, Message, Renderer> Scrollable<'a, Message, Renderer>where +

    Implementations§

    §

    impl<'a, Message, Renderer> Scrollable<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub fn new( + <Renderer as Renderer>::Theme: StyleSheet,

    pub fn new( content: impl Into<Element<'a, Message, Renderer>> ) -> Scrollable<'a, Message, Renderer>

    Creates a new Scrollable.

    -
    source

    pub fn id(self, id: Id) -> Scrollable<'a, Message, Renderer>

    Sets the Id of the Scrollable.

    -
    source

    pub fn width( +

    pub fn id(self, id: Id) -> Scrollable<'a, Message, Renderer>

    Sets the Id of the Scrollable.

    +

    pub fn width( self, width: impl Into<Length> ) -> Scrollable<'a, Message, Renderer>

    Sets the width of the Scrollable.

    -
    source

    pub fn height( +

    pub fn height( self, height: impl Into<Length> ) -> Scrollable<'a, Message, Renderer>

    Sets the height of the Scrollable.

    -
    source

    pub fn direction( +

    pub fn direction( self, direction: Direction ) -> Scrollable<'a, Message, Renderer>

    Sets the Direction of the Scrollable .

    -
    source

    pub fn on_scroll( +

    pub fn on_scroll( self, f: impl Fn(Viewport) -> Message + 'a ) -> Scrollable<'a, Message, Renderer>

    Sets a function to call when the Scrollable is scrolled.

    The function takes the Viewport of the Scrollable

    -
    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Scrollable<'a, Message, Renderer>

    Sets the style of the Scrollable .

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Scrollable<'a, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Scrollable<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    source§

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn operate( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    §

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn operate( &self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation<Message> -)

    Applies an Operation to the Widget.
    source§

    fn on_event( +)

    Applies an Operation to the Widget.
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -47,7 +47,7 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status

    Processes a runtime Event. Read more
    source§

    fn draw( +) -> Status

    Processes a runtime Event. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -56,14 +56,14 @@ layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32> -)

    Draws the Widget using the associated Renderer.
    source§

    fn mouse_interaction( +)

    Draws the Widget using the associated Renderer.
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn overlay<'b>( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/scrollable/struct.State.html b/iced/widget/scrollable/struct.State.html index 54cf715a2c7..1adb0f9e364 100644 --- a/iced/widget/scrollable/struct.State.html +++ b/iced/widget/scrollable/struct.State.html @@ -1,6 +1,6 @@ -State in iced::widget::scrollable - Rust

    Struct iced::widget::scrollable::State

    source ·
    pub struct State { /* private fields */ }
    Expand description

    The local state of a Scrollable.

    -

    Implementations§

    source§

    impl State

    source

    pub fn new() -> State

    Creates a new State with the scrollbar(s) at the beginning.

    -
    source

    pub fn scroll( +State in iced::widget::scrollable - Rust

    Struct iced::widget::scrollable::State

    pub struct State { /* private fields */ }
    Expand description

    The local state of a Scrollable.

    +

    Implementations§

    §

    impl State

    pub fn new() -> State

    Creates a new State with the scrollbar(s) at the beginning.

    +

    pub fn scroll( &mut self, delta: Vector<f32>, direction: Direction, @@ -8,7 +8,7 @@ content_bounds: Rectangle<f32> )

    Apply a scrolling offset to the current State, given the bounds of the Scrollable and its contents.

    -
    source

    pub fn scroll_y_to( +

    pub fn scroll_y_to( &mut self, percentage: f32, bounds: Rectangle<f32>, @@ -16,7 +16,7 @@ )

    Scrolls the Scrollable to a relative amount along the y axis.

    0 represents scrollbar at the beginning, while 1 represents scrollbar at the end.

    -
    source

    pub fn scroll_x_to( +

    pub fn scroll_x_to( &mut self, percentage: f32, bounds: Rectangle<f32>, @@ -24,12 +24,12 @@ )

    Scrolls the Scrollable to a relative amount along the x axis.

    0 represents scrollbar at the beginning, while 1 represents scrollbar at the end.

    -
    source

    pub fn snap_to(&mut self, offset: RelativeOffset)

    Snaps the scroll position to a RelativeOffset.

    -
    source

    pub fn scroll_to(&mut self, offset: AbsoluteOffset)

    Scroll to the provided AbsoluteOffset.

    -
    source

    pub fn unsnap(&mut self, bounds: Rectangle<f32>, content_bounds: Rectangle<f32>)

    Unsnaps the current scroll position, if snapped, given the bounds of the +

    pub fn snap_to(&mut self, offset: RelativeOffset)

    Snaps the scroll position to a RelativeOffset.

    +

    pub fn scroll_to(&mut self, offset: AbsoluteOffset)

    Scroll to the provided AbsoluteOffset.

    +

    pub fn unsnap(&mut self, bounds: Rectangle<f32>, content_bounds: Rectangle<f32>)

    Unsnaps the current scroll position, if snapped, given the bounds of the Scrollable and its contents.

    -
    source

    pub fn scrollers_grabbed(&self) -> bool

    Returns whether any scroller is currently grabbed or not.

    -

    Trait Implementations§

    source§

    impl Clone for State

    source§

    fn clone(&self) -> State

    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 State

    source§

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

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

    impl Default for State

    source§

    fn default() -> State

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

    impl Scrollable for State

    source§

    fn snap_to(&mut self, offset: RelativeOffset)

    Snaps the scroll of the widget to the given percentage along the horizontal & vertical axis.
    source§

    fn scroll_to(&mut self, offset: AbsoluteOffset)

    Scroll the widget to the given AbsoluteOffset along the horizontal & vertical axis.
    source§

    impl Copy for State

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for State

    §

    impl Send for State

    §

    impl Sync for State

    §

    impl Unpin for State

    §

    impl UnwindSafe for State

    Blanket Implementations§

    source§

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

    pub fn scrollers_grabbed(&self) -> bool

    Returns whether any scroller is currently grabbed or not.

    +

    Trait Implementations§

    §

    impl Clone for State

    §

    fn clone(&self) -> State

    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 State

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Default for State

    §

    fn default() -> State

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

    impl Scrollable for State

    §

    fn snap_to(&mut self, offset: RelativeOffset)

    Snaps the scroll of the widget to the given percentage along the horizontal & vertical axis.
    §

    fn scroll_to(&mut self, offset: AbsoluteOffset)

    Scroll the widget to the given AbsoluteOffset along the horizontal & vertical axis.
    §

    impl Copy for State

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for State

    §

    impl Send for State

    §

    impl Sync for State

    §

    impl Unpin for State

    §

    impl UnwindSafe for State

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/scrollable/struct.Viewport.html b/iced/widget/scrollable/struct.Viewport.html index bfb7997468d..29f055db610 100644 --- a/iced/widget/scrollable/struct.Viewport.html +++ b/iced/widget/scrollable/struct.Viewport.html @@ -1,11 +1,11 @@ -Viewport in iced::widget::scrollable - Rust
    pub struct Viewport { /* private fields */ }
    Expand description

    The current Viewport of the Scrollable.

    -

    Implementations§

    source§

    impl Viewport

    source

    pub fn absolute_offset(&self) -> AbsoluteOffset

    Returns the AbsoluteOffset of the current Viewport.

    -
    source

    pub fn absolute_offset_reversed(&self) -> AbsoluteOffset

    Returns the AbsoluteOffset of the current Viewport, but with its +Viewport in iced::widget::scrollable - Rust

    pub struct Viewport { /* private fields */ }
    Expand description

    The current Viewport of the Scrollable.

    +

    Implementations§

    §

    impl Viewport

    pub fn absolute_offset(&self) -> AbsoluteOffset

    Returns the AbsoluteOffset of the current Viewport.

    +

    pub fn absolute_offset_reversed(&self) -> AbsoluteOffset

    Returns the AbsoluteOffset of the current Viewport, but with its alignment reversed.

    This method can be useful to switch the alignment of a Scrollable while maintaining its scrolling position.

    -
    source

    pub fn relative_offset(&self) -> RelativeOffset

    Returns the RelativeOffset of the current 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
    source§

    impl Copy for Viewport

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    pub fn relative_offset(&self) -> RelativeOffset

    Returns the RelativeOffset of the current 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
    §

    impl Copy for Viewport

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/slider/fn.draw.html b/iced/widget/slider/fn.draw.html index 221e5c7b2ef..88879caf2f5 100644 --- a/iced/widget/slider/fn.draw.html +++ b/iced/widget/slider/fn.draw.html @@ -1,4 +1,4 @@ -draw in iced::widget::slider - Rust

    Function iced::widget::slider::draw

    source ·
    pub fn draw<T, R>(
    +draw in iced::widget::slider - Rust

    Function iced::widget::slider::draw

    pub fn draw<T, R>(
         renderer: &mut R,
         layout: Layout<'_>,
         cursor: Cursor,
    diff --git a/iced/widget/slider/fn.mouse_interaction.html b/iced/widget/slider/fn.mouse_interaction.html
    index 4cbe70586ea..5714bc9051e 100644
    --- a/iced/widget/slider/fn.mouse_interaction.html
    +++ b/iced/widget/slider/fn.mouse_interaction.html
    @@ -1,4 +1,4 @@
    -mouse_interaction in iced::widget::slider - Rust
    pub fn mouse_interaction(
    +mouse_interaction in iced::widget::slider - Rust
    pub fn mouse_interaction(
         layout: Layout<'_>,
         cursor: Cursor,
         state: &State
    diff --git a/iced/widget/slider/fn.update.html b/iced/widget/slider/fn.update.html
    index 0825bf26b2e..e682d2293dc 100644
    --- a/iced/widget/slider/fn.update.html
    +++ b/iced/widget/slider/fn.update.html
    @@ -1,4 +1,4 @@
    -update in iced::widget::slider - Rust

    Function iced::widget::slider::update

    source ·
    pub fn update<Message, T>(
    +update in iced::widget::slider - Rust

    Function iced::widget::slider::update

    pub fn update<Message, T>(
         event: Event,
         layout: Layout<'_>,
         cursor: Cursor,
    diff --git a/iced/widget/slider/index.html b/iced/widget/slider/index.html
    index 6904dec192e..660b53a8cc9 100644
    --- a/iced/widget/slider/index.html
    +++ b/iced/widget/slider/index.html
    @@ -1,4 +1,4 @@
    -iced::widget::slider - Rust

    Module iced::widget::slider

    source ·
    Expand description

    Display an interactive selector of a single value from a range of values.

    +iced::widget::slider - Rust

    Module iced::widget::slider

    Expand description

    Display an interactive selector of a single value from a range of values.

    A Slider has some local State.

    Structs

    • The appearance of a slider.
    • The appearance of the handle of a slider.
    • The appearance of a slider rail
    • An horizontal bar and a handle that selects a single value from a range of values.
    • The local state of a Slider.

    Enums

    Traits

    • A set of rules that dictate the style of a slider.

    Functions

    Implementations§

    source§

    impl<'a, T, Message, Renderer> Slider<'a, T, Message, Renderer>where +

    Implementations§

    §

    impl<'a, T, Message, Renderer> Slider<'a, T, Message, Renderer>where T: Copy + From<u8> + PartialOrd<T>, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub const DEFAULT_HEIGHT: f32 = 22f32

    The default height of a Slider.

    -
    source

    pub fn new<F>( + <Renderer as Renderer>::Theme: StyleSheet,

    pub const DEFAULT_HEIGHT: f32 = 22f32

    The default height of a Slider.

    +

    pub fn new<F>( range: RangeInclusive<T>, value: T, on_change: F @@ -34,26 +34,26 @@

    Example

    It receives the new value of the Slider and must produce a Message. -

    source

    pub fn on_release(self, on_release: Message) -> Slider<'a, T, Message, Renderer>

    Sets the release message of the Slider. +

    pub fn on_release(self, on_release: Message) -> Slider<'a, T, Message, Renderer>

    Sets the release message of the Slider. This is called when the mouse is released from the slider.

    Typically, the user’s interaction with the slider is finished when this message is produced. This is useful if you need to spawn a long-running task from the slider’s result, where the default on_change message could create too many events.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Slider<'a, T, Message, Renderer>

    Sets the width of the Slider.

    -
    source

    pub fn height( +

    pub fn width(self, width: impl Into<Length>) -> Slider<'a, T, Message, Renderer>

    Sets the width of the Slider.

    +

    pub fn height( self, height: impl Into<Pixels> ) -> Slider<'a, T, Message, Renderer>

    Sets the height of the Slider.

    -
    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Slider<'a, T, Message, Renderer>

    Sets the style of the Slider.

    -
    source

    pub fn step(self, step: T) -> Slider<'a, T, Message, Renderer>

    Sets the step size of the Slider.

    -

    Trait Implementations§

    source§

    impl<'a, T, Message, Renderer> Widget<Message, Renderer> for Slider<'a, T, Message, Renderer>where +

    pub fn step(self, step: T) -> Slider<'a, T, Message, Renderer>

    Sets the step size of the Slider.

    +

    Trait Implementations§

    §

    impl<'a, T, Message, Renderer> Widget<Message, Renderer> for Slider<'a, T, Message, Renderer>where T: Copy + Into<f64> + FromPrimitive, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn on_event( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -63,7 +63,7 @@

    Example

    _clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status
    Processes a runtime Event. Read more
    source§

    fn draw( +) -> Status

    Processes a runtime Event. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -72,7 +72,7 @@

    Example

    layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32> -)
    Draws the Widget using the associated Renderer.
    source§

    fn mouse_interaction( +)

    Draws the Widget using the associated Renderer.
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, diff --git a/iced/widget/slider/struct.State.html b/iced/widget/slider/struct.State.html index f84477c8158..c2a0a8d244a 100644 --- a/iced/widget/slider/struct.State.html +++ b/iced/widget/slider/struct.State.html @@ -1,8 +1,8 @@ -State in iced::widget::slider - Rust

    Struct iced::widget::slider::State

    source ·
    pub struct State { /* private fields */ }
    Expand description

    The local state of a Slider.

    -

    Implementations§

    source§

    impl State

    source

    pub fn new() -> State

    Creates a new State.

    -

    Trait Implementations§

    source§

    impl Clone for State

    source§

    fn clone(&self) -> State

    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 State

    source§

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

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

    impl Default for State

    source§

    fn default() -> State

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

    impl PartialEq<State> for State

    source§

    fn eq(&self, other: &State) -> bool

    This method tests for self and other values to be equal, and is used +State in iced::widget::slider - Rust

    Struct iced::widget::slider::State

    pub struct State { /* private fields */ }
    Expand description

    The local state of a Slider.

    +

    Implementations§

    §

    impl State

    pub fn new() -> State

    Creates a new State.

    +

    Trait Implementations§

    §

    impl Clone for State

    §

    fn clone(&self) -> State

    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 State

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Default for State

    §

    fn default() -> State

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

    impl PartialEq<State> for State

    §

    fn eq(&self, other: &State) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for State

    source§

    impl Eq for State

    source§

    impl StructuralEq for State

    source§

    impl StructuralPartialEq for State

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for State

    §

    impl Send for State

    §

    impl Sync for State

    §

    impl Unpin for State

    §

    impl UnwindSafe for State

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

    §

    impl Copy for State

    §

    impl Eq for State

    §

    impl StructuralEq for State

    §

    impl StructuralPartialEq for State

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for State

    §

    impl Send for State

    §

    impl Sync for State

    §

    impl Unpin for State

    §

    impl UnwindSafe for State

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/space/index.html b/iced/widget/space/index.html index 855537d7a2b..b041a1621d6 100644 --- a/iced/widget/space/index.html +++ b/iced/widget/space/index.html @@ -1,2 +1,2 @@ -iced::widget::space - Rust

    Module iced::widget::space

    source ·
    Expand description

    Distribute content vertically.

    +iced::widget::space - Rust

    Module iced::widget::space

    Expand description

    Distribute content vertically.

    Structs

    • An amount of empty space.
    \ No newline at end of file diff --git a/iced/widget/space/struct.Space.html b/iced/widget/space/struct.Space.html index 7d8ae3cc33e..b2c3f287204 100644 --- a/iced/widget/space/struct.Space.html +++ b/iced/widget/space/struct.Space.html @@ -1,10 +1,10 @@ -Space in iced::widget::space - Rust

    Struct iced::widget::space::Space

    source ·
    pub struct Space { /* private fields */ }
    Expand description

    An amount of empty space.

    +Space in iced::widget::space - Rust

    Struct iced::widget::space::Space

    pub struct Space { /* private fields */ }
    Expand description

    An amount of empty space.

    It can be useful if you want to fill some space with nothing.

    -

    Implementations§

    source§

    impl Space

    source

    pub fn new(width: impl Into<Length>, height: impl Into<Length>) -> Space

    Creates an amount of empty Space with the given width and height.

    -
    source

    pub fn with_width(width: impl Into<Length>) -> Space

    Creates an amount of horizontal Space.

    -
    source

    pub fn with_height(height: impl Into<Length>) -> Space

    Creates an amount of vertical Space.

    -

    Trait Implementations§

    source§

    impl Debug for Space

    source§

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

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

    impl<Message, Renderer> Widget<Message, Renderer> for Spacewhere - Renderer: Renderer,

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn draw( +

    Implementations§

    §

    impl Space

    pub fn new(width: impl Into<Length>, height: impl Into<Length>) -> Space

    Creates an amount of empty Space with the given width and height.

    +

    pub fn with_width(width: impl Into<Length>) -> Space

    Creates an amount of horizontal Space.

    +

    pub fn with_height(height: impl Into<Length>) -> Space

    Creates an amount of vertical Space.

    +

    Trait Implementations§

    §

    impl Debug for Space

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<Message, Renderer> Widget<Message, Renderer> for Spacewhere + Renderer: Renderer,

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn draw( &self, _state: &Tree, _renderer: &mut Renderer, diff --git a/iced/widget/struct.Button.html b/iced/widget/struct.Button.html index bd57eb2cde3..dcc653898cd 100644 --- a/iced/widget/struct.Button.html +++ b/iced/widget/struct.Button.html @@ -1,4 +1,4 @@ -Button in iced::widget - Rust

    Struct iced::widget::Button

    source ·
    pub struct Button<'a, Message, Renderer = Renderer<Theme>>where
    +Button in iced::widget - Rust

    Struct iced::widget::Button

    pub struct Button<'a, Message, Renderer = Renderer<Theme>>where
         Renderer: Renderer,
         <Renderer as Renderer>::Theme: StyleSheet,{ /* private fields */ }
    Expand description

    A generic widget that produces a message when pressed.

    @@ -23,37 +23,37 @@ fn enabled_button<'a>() -> Button<'a, Message> { disabled_button().on_press(Message::ButtonPressed) }
    -

    Implementations§

    source§

    impl<'a, Message, Renderer> Button<'a, Message, Renderer>where +

    Implementations§

    §

    impl<'a, Message, Renderer> Button<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub fn new( + <Renderer as Renderer>::Theme: StyleSheet,

    pub fn new( content: impl Into<Element<'a, Message, Renderer>> ) -> Button<'a, Message, Renderer>

    Creates a new Button with the given content.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Button<'a, Message, Renderer>

    Sets the width of the Button.

    -
    source

    pub fn height(self, height: impl Into<Length>) -> Button<'a, Message, Renderer>

    Sets the height of the Button.

    -
    source

    pub fn padding<P>(self, padding: P) -> Button<'a, Message, Renderer>where +

    pub fn width(self, width: impl Into<Length>) -> Button<'a, Message, Renderer>

    Sets the width of the Button.

    +

    pub fn height(self, height: impl Into<Length>) -> Button<'a, Message, Renderer>

    Sets the height of the Button.

    +

    pub fn padding<P>(self, padding: P) -> Button<'a, Message, Renderer>where P: Into<Padding>,

    Sets the Padding of the Button.

    -
    source

    pub fn on_press(self, on_press: Message) -> Button<'a, Message, Renderer>

    Sets the message that will be produced when the Button is pressed.

    +

    pub fn on_press(self, on_press: Message) -> Button<'a, Message, Renderer>

    Sets the message that will be produced when the Button is pressed.

    Unless on_press is called, the Button will be disabled.

    -
    source

    pub fn on_press_maybe( +

    pub fn on_press_maybe( self, on_press: Option<Message> ) -> Button<'a, Message, Renderer>

    Sets the message that will be produced when the Button is pressed, if Some.

    If None, the Button will be disabled.

    -
    source

    pub fn style( +

    pub fn style( self, style: <<Renderer as Renderer>::Theme as StyleSheet>::Style ) -> Button<'a, Message, Renderer>

    Sets the style variant of this Button.

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Button<'a, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Button<'a, Message, Renderer>where Message: 'a + Clone, Renderer: 'a + Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    source§

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn operate( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    §

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn operate( &self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation<Message> -)

    Applies an Operation to the Widget.
    source§

    fn on_event( +)

    Applies an Operation to the Widget.
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -63,7 +63,7 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status

    Processes a runtime Event. Read more
    source§

    fn draw( +) -> Status

    Processes a runtime Event. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -72,14 +72,14 @@ layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32> -)

    Draws the Widget using the associated Renderer.
    source§

    fn mouse_interaction( +)

    Draws the Widget using the associated Renderer.
    §

    fn mouse_interaction( &self, _tree: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, _renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn overlay<'b>( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/struct.Canvas.html b/iced/widget/struct.Canvas.html index b1a33aa8114..5e5499ba581 100644 --- a/iced/widget/struct.Canvas.html +++ b/iced/widget/struct.Canvas.html @@ -1,4 +1,4 @@ -Canvas in iced::widget - Rust
    -

    Implementations§

    source§

    impl<P, Message, Renderer> Canvas<P, Message, Renderer>where +

    Implementations§

    §

    impl<P, Message, Renderer> Canvas<P, Message, Renderer>where Renderer: Renderer, - P: Program<Message, Renderer>,

    source

    pub fn new(program: P) -> Canvas<P, Message, Renderer>

    Available on crate feature canvas only.

    Creates a new Canvas.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Canvas<P, Message, Renderer>

    Available on crate feature canvas only.

    Sets the width of the Canvas.

    -
    source

    pub fn height(self, height: impl Into<Length>) -> Canvas<P, Message, Renderer>

    Available on crate feature canvas only.

    Sets the height of the Canvas.

    -

    Trait Implementations§

    source§

    impl<P, Message, Renderer> Debug for Canvas<P, Message, Renderer>where + P: Program<Message, Renderer>,

    pub fn new(program: P) -> Canvas<P, Message, Renderer>

    Available on crate feature canvas only.

    Creates a new Canvas.

    +

    pub fn width(self, width: impl Into<Length>) -> Canvas<P, Message, Renderer>

    Available on crate feature canvas only.

    Sets the width of the Canvas.

    +

    pub fn height(self, height: impl Into<Length>) -> Canvas<P, Message, Renderer>

    Available on crate feature canvas only.

    Sets the height of the Canvas.

    +

    Trait Implementations§

    §

    impl<P, Message, Renderer> Debug for Canvas<P, Message, Renderer>where P: Debug + Program<Message, Renderer>, Message: Debug, - Renderer: Debug + Renderer,

    source§

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

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

    impl<P, Message, Renderer> Widget<Message, Renderer> for Canvas<P, Message, Renderer>where + Renderer: Debug + Renderer,

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<P, Message, Renderer> Widget<Message, Renderer> for Canvas<P, Message, Renderer>where Renderer: Renderer, - P: Program<Message, 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 width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn on_event( + P: Program<Message, Renderer>,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -51,14 +51,14 @@

    Drawing a si _clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status

    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, _renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/struct.Checkbox.html b/iced/widget/struct.Checkbox.html index 5a474d1688b..c1f3194046e 100644 --- a/iced/widget/struct.Checkbox.html +++ b/iced/widget/struct.Checkbox.html @@ -1,4 +1,4 @@ -Checkbox in iced::widget - Rust

    Checkbox drawn by iced_wgpu

    -

    Implementations§

    source§

    impl<'a, Message, Renderer> Checkbox<'a, Message, Renderer>where +

    Implementations§

    §

    impl<'a, Message, Renderer> Checkbox<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    source

    pub fn new<F>( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    pub fn new<F>( label: impl Into<String>, is_checked: bool, f: F @@ -26,36 +26,36 @@

    Example

    will receive the new state of the Checkbox and must produce a Message. -

    source

    pub fn size(self, size: impl Into<Pixels>) -> Checkbox<'a, Message, Renderer>

    Sets the size of the Checkbox.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Checkbox<'a, Message, Renderer>

    Sets the width of the Checkbox.

    -
    source

    pub fn spacing( +

    pub fn size(self, size: impl Into<Pixels>) -> Checkbox<'a, Message, Renderer>

    Sets the size of the Checkbox.

    +

    pub fn width(self, width: impl Into<Length>) -> Checkbox<'a, Message, Renderer>

    Sets the width of the Checkbox.

    +

    pub fn spacing( self, spacing: impl Into<Pixels> ) -> Checkbox<'a, Message, Renderer>

    Sets the spacing between the Checkbox and the text.

    -
    source

    pub fn text_size( +

    pub fn text_size( self, text_size: impl Into<Pixels> ) -> Checkbox<'a, Message, Renderer>

    Sets the text size of the Checkbox.

    -
    source

    pub fn text_line_height( +

    pub fn text_line_height( self, line_height: impl Into<LineHeight> ) -> Checkbox<'a, Message, Renderer>

    Sets the text [LineHeight] of the Checkbox.

    -
    source

    pub fn text_shaping(self, shaping: Shaping) -> Checkbox<'a, Message, Renderer>

    Sets the text::Shaping strategy of the Checkbox.

    -
    source

    pub fn font( +

    pub fn text_shaping(self, shaping: Shaping) -> Checkbox<'a, Message, Renderer>

    Sets the text::Shaping strategy of the Checkbox.

    +

    pub fn font( self, font: impl Into<<Renderer as Renderer>::Font> ) -> Checkbox<'a, Message, Renderer>

    Sets the Font of the text of the Checkbox.

    -
    source

    pub fn icon( +

    pub fn icon( self, icon: Icon<<Renderer as Renderer>::Font> ) -> Checkbox<'a, Message, Renderer>

    Sets the Icon of the Checkbox.

    -
    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Checkbox<'a, Message, Renderer>

    Sets the style of the Checkbox.

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Checkbox<'a, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Checkbox<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn on_event( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn on_event( &mut self, _tree: &mut Tree, event: Event, @@ -65,14 +65,14 @@

    Example

    _clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status
    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, _tree: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, _renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, _tree: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/struct.Column.html b/iced/widget/struct.Column.html index 2a6aebf4d41..0a4ea598de2 100644 --- a/iced/widget/struct.Column.html +++ b/iced/widget/struct.Column.html @@ -1,33 +1,33 @@ -Column in iced::widget - Rust

    Struct iced::widget::Column

    source ·
    pub struct Column<'a, Message, Renderer = Renderer<Theme>> { /* private fields */ }
    Expand description

    A container that distributes its contents vertically.

    -

    Implementations§

    source§

    impl<'a, Message, Renderer> Column<'a, Message, Renderer>

    source

    pub fn new() -> Column<'a, Message, Renderer>

    Creates an empty Column.

    -
    source

    pub fn with_children( +Column in iced::widget - Rust

    Struct iced::widget::Column

    pub struct Column<'a, Message, Renderer = Renderer<Theme>> { /* private fields */ }
    Expand description

    A container that distributes its contents vertically.

    +

    Implementations§

    §

    impl<'a, Message, Renderer> Column<'a, Message, Renderer>

    pub fn new() -> Column<'a, Message, Renderer>

    Creates an empty Column.

    +

    pub fn with_children( children: Vec<Element<'a, Message, Renderer>, Global> ) -> Column<'a, Message, Renderer>

    Creates a Column with the given elements.

    -
    source

    pub fn spacing(self, amount: impl Into<Pixels>) -> Column<'a, Message, Renderer>

    Sets the vertical spacing between elements.

    +

    pub fn spacing(self, amount: impl Into<Pixels>) -> Column<'a, Message, Renderer>

    Sets the vertical spacing between elements.

    Custom margins per element do not exist in iced. You should use this method instead! While less flexible, it helps you keep spacing between elements consistent.

    -
    source

    pub fn padding<P>(self, padding: P) -> Column<'a, Message, Renderer>where +

    pub fn padding<P>(self, padding: P) -> Column<'a, Message, Renderer>where P: Into<Padding>,

    Sets the Padding of the Column.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Column<'a, Message, Renderer>

    Sets the width of the Column.

    -
    source

    pub fn height(self, height: impl Into<Length>) -> Column<'a, Message, Renderer>

    Sets the height of the Column.

    -
    source

    pub fn max_width( +

    pub fn width(self, width: impl Into<Length>) -> Column<'a, Message, Renderer>

    Sets the width of the Column.

    +

    pub fn height(self, height: impl Into<Length>) -> Column<'a, Message, Renderer>

    Sets the height of the Column.

    +

    pub fn max_width( self, max_width: impl Into<Pixels> ) -> Column<'a, Message, Renderer>

    Sets the maximum width of the Column.

    -
    source

    pub fn align_items(self, align: Alignment) -> Column<'a, Message, Renderer>

    Sets the horizontal alignment of the contents of the Column .

    -
    source

    pub fn push( +

    pub fn align_items(self, align: Alignment) -> Column<'a, Message, Renderer>

    Sets the horizontal alignment of the contents of the Column .

    +

    pub fn push( self, child: impl Into<Element<'a, Message, Renderer>> ) -> Column<'a, Message, Renderer>

    Adds an element to the Column.

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Default for Column<'a, Message, Renderer>

    source§

    fn default() -> Column<'a, Message, Renderer>

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

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Column<'a, Message, Renderer>where - Renderer: Renderer,

    source§

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    source§

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn operate( +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Default for Column<'a, Message, Renderer>

    §

    fn default() -> Column<'a, Message, Renderer>

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

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Column<'a, Message, Renderer>where + Renderer: Renderer,

    §

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    §

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn operate( &self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation<Message> -)

    Applies an Operation to the Widget.
    source§

    fn on_event( +)

    Applies an Operation to the Widget.
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -37,14 +37,14 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status

    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -53,7 +53,7 @@ layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32> -)

    Draws the Widget using the associated Renderer.
    source§

    fn overlay<'b>( +)

    Draws the Widget using the associated Renderer.
    §

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/struct.ComboBox.html b/iced/widget/struct.ComboBox.html index ffc6514b864..3bb92f9c778 100644 --- a/iced/widget/struct.ComboBox.html +++ b/iced/widget/struct.ComboBox.html @@ -1,13 +1,13 @@ -ComboBox in iced::widget - Rust

    Struct iced::widget::ComboBox

    source ·
    pub struct ComboBox<'a, T, Message, Renderer = Renderer<Theme>>where
    +ComboBox in iced::widget - Rust

    Struct iced::widget::ComboBox

    pub struct ComboBox<'a, T, Message, Renderer = Renderer<Theme>>where
         Renderer: Renderer,
         <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,{ /* private fields */ }
    Expand description

    A widget for searching and selecting a single value from a list of options.

    This widget is composed by a TextInput that can be filled with the text to search for corresponding values from the list of options that are displayed as a [Menu].

    -

    Implementations§

    source§

    impl<'a, T, Message, Renderer> ComboBox<'a, T, Message, Renderer>where +

    Implementations§

    §

    impl<'a, T, Message, Renderer> ComboBox<'a, T, Message, Renderer>where T: Display + Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    source

    pub fn new( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    pub fn new( state: &'a State<T>, placeholder: &str, selection: Option<&T>, @@ -15,49 +15,49 @@ ) -> ComboBox<'a, T, Message, Renderer>

    Creates a new ComboBox with the given list of options, a placeholder, the current selected value, and the message to produce when an option is selected.

    -
    source

    pub fn on_input( +

    pub fn on_input( self, on_input: impl Fn(String) -> Message + 'static ) -> ComboBox<'a, T, Message, Renderer>

    Sets the message that should be produced when some text is typed into the TextInput of the ComboBox.

    -
    source

    pub fn on_option_hovered( +

    pub fn on_option_hovered( self, on_option_hovered: impl Fn(T) -> Message + 'static ) -> ComboBox<'a, T, Message, Renderer>

    Sets the message that will be produced when an option of the ComboBox is hovered using the arrow keys.

    -
    source

    pub fn on_close(self, message: Message) -> ComboBox<'a, T, Message, Renderer>

    Sets the message that will be produced when the outside area +

    pub fn on_close(self, message: Message) -> ComboBox<'a, T, Message, Renderer>

    Sets the message that will be produced when the outside area of the ComboBox is pressed.

    -
    source

    pub fn padding( +

    pub fn padding( self, padding: impl Into<Padding> ) -> ComboBox<'a, T, Message, Renderer>

    Sets the Padding of the ComboBox.

    -
    source

    pub fn style<S>(self, style: S) -> ComboBox<'a, T, Message, Renderer>where +

    pub fn style<S>(self, style: S) -> ComboBox<'a, T, Message, Renderer>where S: Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> + Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> + Clone,

    Sets the style of the ComboBox.

    -
    source

    pub fn text_input_style<S>(self, style: S) -> ComboBox<'a, T, Message, Renderer>where +

    pub fn text_input_style<S>(self, style: S) -> ComboBox<'a, T, Message, Renderer>where S: Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> + Clone,

    Sets the style of the TextInput of the ComboBox.

    -
    source

    pub fn font( +

    pub fn font( self, font: <Renderer as Renderer>::Font ) -> ComboBox<'a, T, Message, Renderer>

    Sets the [Font] of the ComboBox.

    -
    source

    pub fn icon( +

    pub fn icon( self, icon: Icon<<Renderer as Renderer>::Font> ) -> ComboBox<'a, T, Message, Renderer>

    Sets the [Icon] of the ComboBox.

    -
    source

    pub fn is_focused(&self) -> bool

    Returns whether the ComboBox is currently focused or not.

    -
    source

    pub fn size(self, size: f32) -> ComboBox<'a, T, Message, Renderer>

    Sets the text sixe of the ComboBox.

    -
    source

    pub fn line_height( +

    pub fn is_focused(&self) -> bool

    Returns whether the ComboBox is currently focused or not.

    +

    pub fn size(self, size: f32) -> ComboBox<'a, T, Message, Renderer>

    Sets the text sixe of the ComboBox.

    +

    pub fn line_height( self, line_height: impl Into<LineHeight> ) -> ComboBox<'a, T, Message, Renderer>

    Sets the LineHeight of the ComboBox.

    -
    source

    pub fn width( +

    pub fn width( self, width: impl Into<Length> ) -> ComboBox<'a, T, Message, Renderer>

    Sets the width of the ComboBox.

    -

    Trait Implementations§

    source§

    impl<'a, T, Message, Renderer> Widget<Message, Renderer> for ComboBox<'a, T, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, T, Message, Renderer> Widget<Message, Renderer> for ComboBox<'a, T, Message, Renderer>where T: Display + Clone + 'static, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet,

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn on_event( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet,

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -67,14 +67,14 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status

    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, _tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, _tree: &Tree, renderer: &mut Renderer, @@ -83,7 +83,7 @@ layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32> -)

    Draws the Widget using the associated Renderer.
    source§

    fn overlay<'b>( +)

    Draws the Widget using the associated Renderer.
    §

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/struct.Container.html b/iced/widget/struct.Container.html index c21a64cbcb1..164fd29c5f2 100644 --- a/iced/widget/struct.Container.html +++ b/iced/widget/struct.Container.html @@ -1,44 +1,44 @@ -Container in iced::widget - Rust

    Struct iced::widget::Container

    source ·
    pub struct Container<'a, Message, Renderer = Renderer<Theme>>where
    +Container in iced::widget - Rust

    Struct iced::widget::Container

    pub struct Container<'a, Message, Renderer = Renderer<Theme>>where
         Renderer: Renderer,
         <Renderer as Renderer>::Theme: StyleSheet,{ /* private fields */ }
    Expand description

    An element decorating some content.

    It is normally used for alignment purposes.

    -

    Implementations§

    source§

    impl<'a, Message, Renderer> Container<'a, Message, Renderer>where +

    Implementations§

    §

    impl<'a, Message, Renderer> Container<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub fn new<T>(content: T) -> Container<'a, Message, Renderer>where + <Renderer as Renderer>::Theme: StyleSheet,

    pub fn new<T>(content: T) -> Container<'a, Message, Renderer>where T: Into<Element<'a, Message, Renderer>>,

    Creates an empty Container.

    -
    source

    pub fn id(self, id: Id) -> Container<'a, Message, Renderer>

    Sets the Id of the Container.

    -
    source

    pub fn padding<P>(self, padding: P) -> Container<'a, Message, Renderer>where +

    pub fn id(self, id: Id) -> Container<'a, Message, Renderer>

    Sets the Id of the Container.

    +

    pub fn padding<P>(self, padding: P) -> Container<'a, Message, Renderer>where P: Into<Padding>,

    Sets the Padding of the Container.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Container<'a, Message, Renderer>

    Sets the width of the Container.

    -
    source

    pub fn height( +

    pub fn width(self, width: impl Into<Length>) -> Container<'a, Message, Renderer>

    Sets the width of the Container.

    +

    pub fn height( self, height: impl Into<Length> ) -> Container<'a, Message, Renderer>

    Sets the height of the Container.

    -
    source

    pub fn max_width( +

    pub fn max_width( self, max_width: impl Into<Pixels> ) -> Container<'a, Message, Renderer>

    Sets the maximum width of the Container.

    -
    source

    pub fn max_height( +

    pub fn max_height( self, max_height: impl Into<Pixels> ) -> Container<'a, Message, Renderer>

    Sets the maximum height of the Container.

    -
    source

    pub fn align_x(self, alignment: Horizontal) -> Container<'a, Message, Renderer>

    Sets the content alignment for the horizontal axis of the Container.

    -
    source

    pub fn align_y(self, alignment: Vertical) -> Container<'a, Message, Renderer>

    Sets the content alignment for the vertical axis of the Container.

    -
    source

    pub fn center_x(self) -> Container<'a, Message, Renderer>

    Centers the contents in the horizontal axis of the Container.

    -
    source

    pub fn center_y(self) -> Container<'a, Message, Renderer>

    Centers the contents in the vertical axis of the Container.

    -
    source

    pub fn style( +

    pub fn align_x(self, alignment: Horizontal) -> Container<'a, Message, Renderer>

    Sets the content alignment for the horizontal axis of the Container.

    +

    pub fn align_y(self, alignment: Vertical) -> Container<'a, Message, Renderer>

    Sets the content alignment for the vertical axis of the Container.

    +

    pub fn center_x(self) -> Container<'a, Message, Renderer>

    Centers the contents in the horizontal axis of the Container.

    +

    pub fn center_y(self) -> Container<'a, Message, Renderer>

    Centers the contents in the vertical axis of the Container.

    +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Container<'a, Message, Renderer>

    Sets the style of the Container.

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Container<'a, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Container<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    source§

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn operate( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    §

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn operate( &self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation<Message> -)

    Applies an Operation to the Widget.
    source§

    fn on_event( +)

    Applies an Operation to the Widget.
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -48,14 +48,14 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status

    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -64,7 +64,7 @@ layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32> -)

    Draws the Widget using the associated Renderer.
    source§

    fn overlay<'b>( +)

    Draws the Widget using the associated Renderer.
    §

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/struct.Image.html b/iced/widget/struct.Image.html index 3870785f8cb..cecb9cac056 100644 --- a/iced/widget/struct.Image.html +++ b/iced/widget/struct.Image.html @@ -1,16 +1,16 @@ -Image in iced::widget - Rust

    Struct iced::widget::Image

    source ·
    pub struct Image<Handle> { /* private fields */ }
    Expand description

    A frame that displays an image while keeping aspect ratio.

    +Image in iced::widget - Rust

    Struct iced::widget::Image

    pub struct Image<Handle> { /* private fields */ }
    Expand description

    A frame that displays an image while keeping aspect ratio.

    Example

    let image = Image::<image::Handle>::new("resources/ferris.png");
    -

    Implementations§

    source§

    impl<Handle> Image<Handle>

    source

    pub fn new<T>(handle: T) -> Image<Handle>where +

    Implementations§

    §

    impl<Handle> Image<Handle>

    pub fn new<T>(handle: T) -> Image<Handle>where T: Into<Handle>,

    Available on crate feature image only.

    Creates a new Image with the given path.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Image<Handle>

    Available on crate feature image only.

    Sets the width of the Image boundaries.

    -
    source

    pub fn height(self, height: impl Into<Length>) -> Image<Handle>

    Available on crate feature image only.

    Sets the height of the Image boundaries.

    -
    source

    pub fn content_fit(self, content_fit: ContentFit) -> Image<Handle>

    Available on crate feature image only.

    Sets the ContentFit of the Image.

    +

    pub fn width(self, width: impl Into<Length>) -> Image<Handle>

    Available on crate feature image only.

    Sets the width of the Image boundaries.

    +

    pub fn height(self, height: impl Into<Length>) -> Image<Handle>

    Available on crate feature image only.

    Sets the height of the Image boundaries.

    +

    pub fn content_fit(self, content_fit: ContentFit) -> Image<Handle>

    Available on crate feature image only.

    Sets the ContentFit of the Image.

    Defaults to ContentFit::Contain

    -

    Trait Implementations§

    source§

    impl<Handle> Debug for Image<Handle>where - Handle: Debug,

    source§

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

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

    impl<Message, Renderer, Handle> Widget<Message, Renderer> for Image<Handle>where +

    Trait Implementations§

    §

    impl<Handle> Debug for Image<Handle>where + Handle: Debug,

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<Message, Renderer, Handle> Widget<Message, Renderer> for Image<Handle>where Renderer: Renderer<Handle = Handle>, - Handle: Clone + Hash,

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn draw( + Handle: Clone + Hash,

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn draw( &self, _state: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/struct.Lazy.html b/iced/widget/struct.Lazy.html index 98e8863a7f4..621035d7de4 100644 --- a/iced/widget/struct.Lazy.html +++ b/iced/widget/struct.Lazy.html @@ -1,22 +1,22 @@ -Lazy in iced::widget - Rust

    Struct iced::widget::Lazy

    source ·
    pub struct Lazy<'a, Message, Renderer, Dependency, View> { /* private fields */ }
    Expand description

    A widget that only rebuilds its contents when necessary.

    -

    Implementations§

    source§

    impl<'a, Message, Renderer, Dependency, View> Lazy<'a, Message, Renderer, Dependency, View>where +Lazy in iced::widget - Rust

    Struct iced::widget::Lazy

    pub struct Lazy<'a, Message, Renderer, Dependency, View> { /* private fields */ }
    Expand description

    A widget that only rebuilds its contents when necessary.

    +

    Implementations§

    §

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

    source

    pub fn new( + View: Into<Element<'static, Message, Renderer>>,

    pub fn new( dependency: Dependency, view: impl Fn(&Dependency) -> View + 'a ) -> Lazy<'a, Message, 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, Renderer, Dependency, View> Widget<Message, Renderer> for Lazy<'a, Message, Renderer, Dependency, View>where +

    Trait Implementations§

    §

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

    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    source§

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn operate( + Renderer: Renderer + 'static,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    §

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn operate( &self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation<Message> -)

    Applies an Operation to the Widget.
    source§

    fn on_event( +)

    Applies an Operation to the Widget.
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -26,14 +26,14 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status

    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -42,7 +42,7 @@ layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32> -)

    Draws the Widget using the associated Renderer.
    source§

    fn overlay<'b>( +)

    Draws the Widget using the associated Renderer.
    §

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/struct.MouseArea.html b/iced/widget/struct.MouseArea.html index 0d77b3c5a39..85795b57acd 100644 --- a/iced/widget/struct.MouseArea.html +++ b/iced/widget/struct.MouseArea.html @@ -1,34 +1,34 @@ -MouseArea in iced::widget - Rust

    Struct iced::widget::MouseArea

    source ·
    pub struct MouseArea<'a, Message, Renderer> { /* private fields */ }
    Expand description

    Emit messages on mouse events.

    -

    Implementations§

    source§

    impl<'a, Message, Renderer> MouseArea<'a, Message, Renderer>

    source

    pub fn on_press(self, message: Message) -> MouseArea<'a, Message, Renderer>

    The message to emit on a left button press.

    -
    source

    pub fn on_release(self, message: Message) -> MouseArea<'a, Message, Renderer>

    The message to emit on a left button release.

    -
    source

    pub fn on_right_press( +MouseArea in iced::widget - Rust

    Struct iced::widget::MouseArea

    pub struct MouseArea<'a, Message, Renderer> { /* private fields */ }
    Expand description

    Emit messages on mouse events.

    +

    Implementations§

    §

    impl<'a, Message, Renderer> MouseArea<'a, Message, Renderer>

    pub fn on_press(self, message: Message) -> MouseArea<'a, Message, Renderer>

    The message to emit on a left button press.

    +

    pub fn on_release(self, message: Message) -> MouseArea<'a, Message, Renderer>

    The message to emit on a left button release.

    +

    pub fn on_right_press( self, message: Message ) -> MouseArea<'a, Message, Renderer>

    The message to emit on a right button press.

    -
    source

    pub fn on_right_release( +

    pub fn on_right_release( self, message: Message ) -> MouseArea<'a, Message, Renderer>

    The message to emit on a right button release.

    -
    source

    pub fn on_middle_press( +

    pub fn on_middle_press( self, message: Message ) -> MouseArea<'a, Message, Renderer>

    The message to emit on a middle button press.

    -
    source

    pub fn on_middle_release( +

    pub fn on_middle_release( self, message: Message ) -> MouseArea<'a, Message, Renderer>

    The message to emit on a middle button release.

    -

    source§

    impl<'a, Message, Renderer> MouseArea<'a, Message, Renderer>

    source

    pub fn new( +

    §

    impl<'a, Message, Renderer> MouseArea<'a, Message, Renderer>

    pub fn new( content: impl Into<Element<'a, Message, Renderer>> ) -> MouseArea<'a, Message, Renderer>

    Creates a MouseArea with the given content.

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Widget<Message, Renderer> for MouseArea<'a, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Widget<Message, Renderer> for MouseArea<'a, Message, Renderer>where Renderer: Renderer, - Message: Clone,

    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    source§

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn operate( + Message: Clone,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    §

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn operate( &self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation<Message> -)

    Applies an Operation to the Widget.
    source§

    fn on_event( +)

    Applies an Operation to the Widget.
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -38,14 +38,14 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status

    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -54,7 +54,7 @@ layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32> -)

    Draws the Widget using the associated Renderer.
    source§

    fn overlay<'b>( +)

    Draws the Widget using the associated Renderer.
    §

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/struct.PaneGrid.html b/iced/widget/struct.PaneGrid.html index 79226eaa244..2de7823dbee 100644 --- a/iced/widget/struct.PaneGrid.html +++ b/iced/widget/struct.PaneGrid.html @@ -1,4 +1,4 @@ -PaneGrid in iced::widget - Rust

    Struct iced::widget::PaneGrid

    source ·
    pub struct PaneGrid<'a, Message, Renderer = Renderer<Theme>>where
    +PaneGrid in iced::widget - Rust

    Struct iced::widget::PaneGrid

    pub struct PaneGrid<'a, Message, Renderer = Renderer<Theme>>where
         Renderer: Renderer,
         <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,{ /* private fields */ }
    Expand description

    A collection of panes distributed using either vertical or horizontal splits to completely fill the space available.

    @@ -38,30 +38,30 @@

    Example

    }) .on_drag(Message::PaneDragged) .on_resize(10, Message::PaneResized);
    -

    Implementations§

    source§

    impl<'a, Message, Renderer> PaneGrid<'a, Message, Renderer>where +

    Implementations§

    §

    impl<'a, Message, Renderer> PaneGrid<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    source

    pub fn new<T>( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    pub fn new<T>( state: &'a State<T>, view: impl Fn(Pane, &'a T, bool) -> Content<'a, Message, Renderer> ) -> PaneGrid<'a, Message, Renderer>

    Creates a PaneGrid with the given State and view function.

    The view function will be called to display each Pane present in the State. bool is set if the pane is maximized.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> PaneGrid<'a, Message, Renderer>

    Sets the width of the PaneGrid.

    -
    source

    pub fn height( +

    pub fn width(self, width: impl Into<Length>) -> PaneGrid<'a, Message, Renderer>

    Sets the width of the PaneGrid.

    +

    pub fn height( self, height: impl Into<Length> ) -> PaneGrid<'a, Message, Renderer>

    Sets the height of the PaneGrid.

    -
    source

    pub fn spacing( +

    pub fn spacing( self, amount: impl Into<Pixels> ) -> PaneGrid<'a, Message, Renderer>

    Sets the spacing between the panes of the PaneGrid.

    -
    source

    pub fn on_click<F>(self, f: F) -> PaneGrid<'a, Message, Renderer>where +

    pub fn on_click<F>(self, f: F) -> PaneGrid<'a, Message, Renderer>where F: 'a + Fn(Pane) -> Message,

    Sets the message that will be produced when a Pane of the PaneGrid is clicked.

    -
    source

    pub fn on_drag<F>(self, f: F) -> PaneGrid<'a, Message, Renderer>where +

    pub fn on_drag<F>(self, f: F) -> PaneGrid<'a, Message, Renderer>where F: 'a + Fn(DragEvent) -> Message,

    Enables the drag and drop interactions of the PaneGrid, which will use the provided function to produce messages.

    -
    source

    pub fn on_resize<F>( +

    pub fn on_resize<F>( self, leeway: impl Into<Pixels>, f: F @@ -73,19 +73,19 @@

    Example

    The grabbable area of a split will have a length of spacing + leeway, properly centered. In other words, a length of (spacing + leeway) / 2.0 on either side of the split line.

    -

    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> PaneGrid<'a, Message, Renderer>

    Sets the style of the PaneGrid.

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Widget<Message, Renderer> for PaneGrid<'a, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Widget<Message, Renderer> for PaneGrid<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    source§

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn operate( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    §

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn operate( &self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation<Message> -)

    Applies an Operation to the Widget.
    source§

    fn on_event( +)

    Applies an Operation to the Widget.
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -95,14 +95,14 @@

    Example

    clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status
    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -111,7 +111,7 @@

    Example

    layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32> -)
    Draws the Widget using the associated Renderer.
    source§

    fn overlay<'b>( +)

    Draws the Widget using the associated Renderer.
    §

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/struct.PickList.html b/iced/widget/struct.PickList.html index 96c44b1184c..1e9691cb3f2 100644 --- a/iced/widget/struct.PickList.html +++ b/iced/widget/struct.PickList.html @@ -1,60 +1,60 @@ -PickList in iced::widget - Rust

    Implementations§

    §

    impl<'a, T, Message, Renderer> PickList<'a, T, Message, Renderer>where T: 'a + ToString + Eq, [T]: ToOwned<Owned = Vec<T, Global>>, Renderer: Renderer, <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet, - <<Renderer as Renderer>::Theme as StyleSheet>::Style: From<<<Renderer as Renderer>::Theme as StyleSheet>::Style>,

    source

    pub const DEFAULT_PADDING: Padding = Padding::new(5.0)

    The default padding of a PickList.

    -
    source

    pub fn new( + <<Renderer as Renderer>::Theme as StyleSheet>::Style: From<<<Renderer as Renderer>::Theme as StyleSheet>::Style>,

    pub const DEFAULT_PADDING: Padding = Padding::new(5.0)

    The default padding of a PickList.

    +

    pub fn new( options: impl Into<Cow<'a, [T]>>, selected: Option<T>, on_selected: impl Fn(T) -> Message + 'a ) -> PickList<'a, T, Message, Renderer>

    Creates a new PickList with the given list of options, the current selected value, and the message to produce when an option is selected.

    -
    source

    pub fn placeholder( +

    pub fn placeholder( self, placeholder: impl Into<String> ) -> PickList<'a, T, Message, Renderer>

    Sets the placeholder of the PickList.

    -
    source

    pub fn width( +

    pub fn width( self, width: impl Into<Length> ) -> PickList<'a, T, Message, Renderer>

    Sets the width of the PickList.

    -
    source

    pub fn padding<P>(self, padding: P) -> PickList<'a, T, Message, Renderer>where +

    pub fn padding<P>(self, padding: P) -> PickList<'a, T, Message, Renderer>where P: Into<Padding>,

    Sets the Padding of the PickList.

    -
    source

    pub fn text_size( +

    pub fn text_size( self, size: impl Into<Pixels> ) -> PickList<'a, T, Message, Renderer>

    Sets the text size of the PickList.

    -
    source

    pub fn text_line_height( +

    pub fn text_line_height( self, line_height: impl Into<LineHeight> ) -> PickList<'a, T, Message, Renderer>

    Sets the text [LineHeight] of the PickList.

    -
    source

    pub fn text_shaping( +

    pub fn text_shaping( self, shaping: Shaping ) -> PickList<'a, T, Message, Renderer>

    Sets the text::Shaping strategy of the PickList.

    -
    source

    pub fn font( +

    pub fn font( self, font: impl Into<<Renderer as Renderer>::Font> ) -> PickList<'a, T, Message, Renderer>

    Sets the font of the PickList.

    -
    source

    pub fn handle( +

    pub fn handle( self, handle: Handle<<Renderer as Renderer>::Font> ) -> PickList<'a, T, Message, Renderer>

    Sets the Handle of the PickList.

    -
    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> PickList<'a, T, Message, Renderer>

    Sets the style of the PickList.

    -

    Trait Implementations§

    source§

    impl<'a, T, Message, Renderer> Widget<Message, Renderer> for PickList<'a, T, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, T, Message, Renderer> Widget<Message, Renderer> for PickList<'a, T, Message, Renderer>where T: 'a + Clone + ToString + Eq + 'static, [T]: ToOwned<Owned = Vec<T, Global>>, Message: 'a, Renderer: Renderer + 'a, <Renderer as Renderer>::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet, - <<Renderer as Renderer>::Theme as StyleSheet>::Style: From<<<Renderer as Renderer>::Theme as StyleSheet>::Style>,

    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn on_event( + <<Renderer as Renderer>::Theme as StyleSheet>::Style: From<<<Renderer as Renderer>::Theme as StyleSheet>::Style>,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -64,14 +64,14 @@ _clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status

    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, _tree: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, _renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -80,7 +80,7 @@ layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32> -)

    Draws the Widget using the associated Renderer.
    source§

    fn overlay<'b>( +)

    Draws the Widget using the associated Renderer.
    §

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/struct.ProgressBar.html b/iced/widget/struct.ProgressBar.html index 351d595c061..818865cf242 100644 --- a/iced/widget/struct.ProgressBar.html +++ b/iced/widget/struct.ProgressBar.html @@ -1,4 +1,4 @@ -ProgressBar in iced::widget - Rust

    Progress bar drawn with iced_wgpu

    -

    Implementations§

    source§

    impl<Renderer> ProgressBar<Renderer>where +

    Implementations§

    §

    impl<Renderer> ProgressBar<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub const DEFAULT_HEIGHT: f32 = 30f32

    The default height of a ProgressBar.

    -
    source

    pub fn new(range: RangeInclusive<f32>, value: f32) -> ProgressBar<Renderer>

    Creates a new ProgressBar.

    + <Renderer as Renderer>::Theme: StyleSheet,

    pub const DEFAULT_HEIGHT: f32 = 30f32

    The default height of a ProgressBar.

    +

    pub fn new(range: RangeInclusive<f32>, value: f32) -> ProgressBar<Renderer>

    Creates a new ProgressBar.

    It expects:

    • an inclusive range of possible values
    • the current value of the ProgressBar
    -
    source

    pub fn width(self, width: impl Into<Length>) -> ProgressBar<Renderer>

    Sets the width of the ProgressBar.

    -
    source

    pub fn height(self, height: impl Into<Length>) -> ProgressBar<Renderer>

    Sets the height of the ProgressBar.

    -
    source

    pub fn style( +

    pub fn width(self, width: impl Into<Length>) -> ProgressBar<Renderer>

    Sets the width of the ProgressBar.

    +

    pub fn height(self, height: impl Into<Length>) -> ProgressBar<Renderer>

    Sets the height of the ProgressBar.

    +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> ProgressBar<Renderer>

    Sets the style of the ProgressBar.

    -

    Trait Implementations§

    source§

    impl<Message, Renderer> Widget<Message, Renderer> for ProgressBar<Renderer>where +

    Trait Implementations§

    §

    impl<Message, Renderer> Widget<Message, Renderer> for ProgressBar<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn draw( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn draw( &self, _state: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/struct.QRCode.html b/iced/widget/struct.QRCode.html index 3c3e91c2383..91ac4c9ad8f 100644 --- a/iced/widget/struct.QRCode.html +++ b/iced/widget/struct.QRCode.html @@ -1,9 +1,9 @@ -QRCode in iced::widget - Rust

    Struct iced::widget::QRCode

    source ·
    pub struct QRCode<'a> { /* private fields */ }
    Expand description

    A type of matrix barcode consisting of squares arranged in a grid which +QRCode in iced::widget - Rust

    Struct iced::widget::QRCode

    pub struct QRCode<'a> { /* private fields */ }
    Expand description

    A type of matrix barcode consisting of squares arranged in a grid which can be read by an imaging device, such as a camera.

    -

    Implementations§

    source§

    impl<'a> QRCode<'a>

    source

    pub fn new(state: &'a State) -> QRCode<'a>

    Available on crate feature qr_code only.

    Creates a new QRCode with the provided State.

    -
    source

    pub fn color(self, dark: Color, light: Color) -> QRCode<'a>

    Available on crate feature qr_code only.

    Sets both the dark and light Colors of the QRCode.

    -
    source

    pub fn cell_size(self, cell_size: u16) -> QRCode<'a>

    Available on crate feature qr_code only.

    Sets the size of the squares of the grid cell of the QRCode.

    -

    Trait Implementations§

    source§

    impl<'a> Debug for QRCode<'a>

    source§

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

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

    impl<'a, Message, Theme> Widget<Message, Renderer<Theme>> for QRCode<'a>

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, _renderer: &Renderer<Theme>, _limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn draw( +

    Implementations§

    §

    impl<'a> QRCode<'a>

    pub fn new(state: &'a State) -> QRCode<'a>

    Available on crate feature qr_code only.

    Creates a new QRCode with the provided State.

    +

    pub fn color(self, dark: Color, light: Color) -> QRCode<'a>

    Available on crate feature qr_code only.

    Sets both the dark and light Colors of the QRCode.

    +

    pub fn cell_size(self, cell_size: u16) -> QRCode<'a>

    Available on crate feature qr_code only.

    Sets the size of the squares of the grid cell of the QRCode.

    +

    Trait Implementations§

    §

    impl<'a> Debug for QRCode<'a>

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<'a, Message, Theme> Widget<Message, Renderer<Theme>> for QRCode<'a>

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, _renderer: &Renderer<Theme>, _limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn draw( &self, _state: &Tree, renderer: &mut Renderer<Theme>, diff --git a/iced/widget/struct.Radio.html b/iced/widget/struct.Radio.html index 732549a9862..002dc718267 100644 --- a/iced/widget/struct.Radio.html +++ b/iced/widget/struct.Radio.html @@ -1,4 +1,4 @@ -Radio in iced::widget - Rust
    -

    Implementations§

    source§

    impl<Message, Renderer> Radio<Message, Renderer>where +

    Implementations§

    §

    impl<Message, Renderer> Radio<Message, Renderer>where Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub const DEFAULT_SIZE: f32 = 28f32

    The default size of a Radio button.

    -
    source

    pub const DEFAULT_SPACING: f32 = 15f32

    The default spacing of a Radio button.

    -
    source

    pub fn new<F, V>( + <Renderer as Renderer>::Theme: StyleSheet,

    pub const DEFAULT_SIZE: f32 = 28f32

    The default size of a Radio button.

    +

    pub const DEFAULT_SPACING: f32 = 15f32

    The default spacing of a Radio button.

    +

    pub fn new<F, V>( label: impl Into<String>, value: V, selected: Option<V>, @@ -67,27 +67,27 @@

    Example

  • a function that will be called when the Radio is selected. It receives the value of the radio and must produce a Message.
  • -
    source

    pub fn size(self, size: impl Into<Pixels>) -> Radio<Message, Renderer>

    Sets the size of the Radio button.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Radio<Message, Renderer>

    Sets the width of the Radio button.

    -
    source

    pub fn spacing(self, spacing: impl Into<Pixels>) -> Radio<Message, Renderer>

    Sets the spacing between the Radio button and the text.

    -
    source

    pub fn text_size(self, text_size: impl Into<Pixels>) -> Radio<Message, Renderer>

    Sets the text size of the Radio button.

    -
    source

    pub fn text_line_height( +

    pub fn size(self, size: impl Into<Pixels>) -> Radio<Message, Renderer>

    Sets the size of the Radio button.

    +

    pub fn width(self, width: impl Into<Length>) -> Radio<Message, Renderer>

    Sets the width of the Radio button.

    +

    pub fn spacing(self, spacing: impl Into<Pixels>) -> Radio<Message, Renderer>

    Sets the spacing between the Radio button and the text.

    +

    pub fn text_size(self, text_size: impl Into<Pixels>) -> Radio<Message, Renderer>

    Sets the text size of the Radio button.

    +

    pub fn text_line_height( self, line_height: impl Into<LineHeight> ) -> Radio<Message, Renderer>

    Sets the text [LineHeight] of the Radio button.

    -
    source

    pub fn text_shaping(self, shaping: Shaping) -> Radio<Message, Renderer>

    Sets the text::Shaping strategy of the Radio button.

    -
    source

    pub fn font( +

    pub fn text_shaping(self, shaping: Shaping) -> Radio<Message, Renderer>

    Sets the text::Shaping strategy of the Radio button.

    +

    pub fn font( self, font: impl Into<<Renderer as Renderer>::Font> ) -> Radio<Message, Renderer>

    Sets the text font of the Radio button.

    -
    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Radio<Message, Renderer>

    Sets the style of the Radio button.

    -

    Trait Implementations§

    source§

    impl<Message, Renderer> Widget<Message, Renderer> for Radio<Message, Renderer>where +

    Trait Implementations§

    §

    impl<Message, Renderer> Widget<Message, Renderer> for Radio<Message, Renderer>where Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn on_event( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn on_event( &mut self, _state: &mut Tree, event: Event, @@ -97,14 +97,14 @@

    Example

    _clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status
    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, _state: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, _renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, _state: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/struct.Responsive.html b/iced/widget/struct.Responsive.html index 637f6d67adc..40328b39bbf 100644 --- a/iced/widget/struct.Responsive.html +++ b/iced/widget/struct.Responsive.html @@ -1,22 +1,22 @@ -Responsive in iced::widget - Rust

    Struct iced::widget::Responsive

    source ·
    pub struct Responsive<'a, Message, Renderer = Renderer<Theme>> { /* private fields */ }
    Expand description

    A widget that is aware of its dimensions.

    +Responsive in iced::widget - Rust

    Struct iced::widget::Responsive

    pub struct Responsive<'a, Message, Renderer = Renderer<Theme>> { /* private fields */ }
    Expand description

    A widget that is aware of its dimensions.

    A Responsive widget will always try to fill all the available space of its parent.

    -

    Implementations§

    source§

    impl<'a, Message, Renderer> Responsive<'a, Message, Renderer>where - Renderer: Renderer,

    source

    pub fn new( +

    Implementations§

    §

    impl<'a, Message, Renderer> Responsive<'a, Message, Renderer>where + Renderer: Renderer,

    pub fn new( view: impl Fn(Size<f32>) -> Element<'a, Message, Renderer> + 'a ) -> Responsive<'a, Message, Renderer>

    Creates a new Responsive widget with a closure that produces its contents.

    The view closure will be provided with the current Size of the Responsive widget and, therefore, can be used to build the contents of the widget in a responsive way.

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Responsive<'a, Message, Renderer>where - Renderer: 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 width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn operate( +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Responsive<'a, Message, Renderer>where + Renderer: Renderer,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn operate( &self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation<Message> -)

    Applies an Operation to the Widget.
    source§

    fn on_event( +)

    Applies an Operation to the Widget.
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -26,7 +26,7 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status

    Processes a runtime Event. Read more
    source§

    fn draw( +) -> Status

    Processes a runtime Event. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -35,14 +35,14 @@ layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32> -)

    Draws the Widget using the associated Renderer.
    source§

    fn mouse_interaction( +)

    Draws the Widget using the associated Renderer.
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn overlay<'b>( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/struct.Row.html b/iced/widget/struct.Row.html index 8575a7762f4..47afca6f383 100644 --- a/iced/widget/struct.Row.html +++ b/iced/widget/struct.Row.html @@ -1,29 +1,29 @@ -Row in iced::widget - Rust

    Struct iced::widget::Row

    source ·
    pub struct Row<'a, Message, Renderer = Renderer<Theme>> { /* private fields */ }
    Expand description

    A container that distributes its contents horizontally.

    -

    Implementations§

    source§

    impl<'a, Message, Renderer> Row<'a, Message, Renderer>

    source

    pub fn new() -> Row<'a, Message, Renderer>

    Creates an empty Row.

    -
    source

    pub fn with_children( +Row in iced::widget - Rust

    Struct iced::widget::Row

    pub struct Row<'a, Message, Renderer = Renderer<Theme>> { /* private fields */ }
    Expand description

    A container that distributes its contents horizontally.

    +

    Implementations§

    §

    impl<'a, Message, Renderer> Row<'a, Message, Renderer>

    pub fn new() -> Row<'a, Message, Renderer>

    Creates an empty Row.

    +

    pub fn with_children( children: Vec<Element<'a, Message, Renderer>, Global> ) -> Row<'a, Message, Renderer>

    Creates a Row with the given elements.

    -
    source

    pub fn spacing(self, amount: impl Into<Pixels>) -> Row<'a, Message, Renderer>

    Sets the horizontal spacing between elements.

    +

    pub fn spacing(self, amount: impl Into<Pixels>) -> Row<'a, Message, Renderer>

    Sets the horizontal spacing between elements.

    Custom margins per element do not exist in iced. You should use this method instead! While less flexible, it helps you keep spacing between elements consistent.

    -
    source

    pub fn padding<P>(self, padding: P) -> Row<'a, Message, Renderer>where +

    pub fn padding<P>(self, padding: P) -> Row<'a, Message, Renderer>where P: Into<Padding>,

    Sets the Padding of the Row.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Row<'a, Message, Renderer>

    Sets the width of the Row.

    -
    source

    pub fn height(self, height: impl Into<Length>) -> Row<'a, Message, Renderer>

    Sets the height of the Row.

    -
    source

    pub fn align_items(self, align: Alignment) -> Row<'a, Message, Renderer>

    Sets the vertical alignment of the contents of the Row .

    -
    source

    pub fn push( +

    pub fn width(self, width: impl Into<Length>) -> Row<'a, Message, Renderer>

    Sets the width of the Row.

    +

    pub fn height(self, height: impl Into<Length>) -> Row<'a, Message, Renderer>

    Sets the height of the Row.

    +

    pub fn align_items(self, align: Alignment) -> Row<'a, Message, Renderer>

    Sets the vertical alignment of the contents of the Row .

    +

    pub fn push( self, child: impl Into<Element<'a, Message, Renderer>> ) -> Row<'a, Message, Renderer>

    Adds an [Element] to the Row.

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Default for Row<'a, Message, Renderer>

    source§

    fn default() -> Row<'a, Message, Renderer>

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

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Row<'a, Message, Renderer>where - Renderer: Renderer,

    source§

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    source§

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn operate( +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Default for Row<'a, Message, Renderer>

    §

    fn default() -> Row<'a, Message, Renderer>

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

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Row<'a, Message, Renderer>where + Renderer: Renderer,

    §

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    §

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn operate( &self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation<Message> -)

    Applies an Operation to the Widget.
    source§

    fn on_event( +)

    Applies an Operation to the Widget.
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -33,14 +33,14 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status

    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -49,7 +49,7 @@ layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32> -)

    Draws the Widget using the associated Renderer.
    source§

    fn overlay<'b>( +)

    Draws the Widget using the associated Renderer.
    §

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/struct.Rule.html b/iced/widget/struct.Rule.html index 55d99f444e7..12b6ac61f18 100644 --- a/iced/widget/struct.Rule.html +++ b/iced/widget/struct.Rule.html @@ -1,17 +1,17 @@ -Rule in iced::widget - Rust

    Implementations§

    §

    impl<Renderer> Rule<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub fn horizontal(height: impl Into<Pixels>) -> Rule<Renderer>

    Creates a horizontal Rule with the given height.

    -
    source

    pub fn vertical(width: impl Into<Pixels>) -> Rule<Renderer>

    Creates a vertical Rule with the given width.

    -
    source

    pub fn style( + <Renderer as Renderer>::Theme: StyleSheet,

    pub fn horizontal(height: impl Into<Pixels>) -> Rule<Renderer>

    Creates a horizontal Rule with the given height.

    +

    pub fn vertical(width: impl Into<Pixels>) -> Rule<Renderer>

    Creates a vertical Rule with the given width.

    +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Rule<Renderer>

    Sets the style of the Rule.

    -

    Trait Implementations§

    source§

    impl<Message, Renderer> Widget<Message, Renderer> for Rule<Renderer>where +

    Trait Implementations§

    §

    impl<Message, Renderer> Widget<Message, Renderer> for Rule<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn draw( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn draw( &self, _state: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/struct.Scrollable.html b/iced/widget/struct.Scrollable.html index 7e0eaf83adc..8d2f6ae5725 100644 --- a/iced/widget/struct.Scrollable.html +++ b/iced/widget/struct.Scrollable.html @@ -1,43 +1,43 @@ -Scrollable in iced::widget - Rust

    Struct iced::widget::Scrollable

    source ·
    pub struct Scrollable<'a, Message, Renderer = Renderer<Theme>>where
    +Scrollable in iced::widget - Rust

    Struct iced::widget::Scrollable

    pub struct Scrollable<'a, Message, Renderer = Renderer<Theme>>where
         Renderer: Renderer,
         <Renderer as Renderer>::Theme: StyleSheet,{ /* private fields */ }
    Expand description

    A widget that can vertically display an infinite amount of content with a scrollbar.

    -

    Implementations§

    source§

    impl<'a, Message, Renderer> Scrollable<'a, Message, Renderer>where +

    Implementations§

    §

    impl<'a, Message, Renderer> Scrollable<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub fn new( + <Renderer as Renderer>::Theme: StyleSheet,

    pub fn new( content: impl Into<Element<'a, Message, Renderer>> ) -> Scrollable<'a, Message, Renderer>

    Creates a new Scrollable.

    -
    source

    pub fn id(self, id: Id) -> Scrollable<'a, Message, Renderer>

    Sets the Id of the Scrollable.

    -
    source

    pub fn width( +

    pub fn id(self, id: Id) -> Scrollable<'a, Message, Renderer>

    Sets the Id of the Scrollable.

    +

    pub fn width( self, width: impl Into<Length> ) -> Scrollable<'a, Message, Renderer>

    Sets the width of the Scrollable.

    -
    source

    pub fn height( +

    pub fn height( self, height: impl Into<Length> ) -> Scrollable<'a, Message, Renderer>

    Sets the height of the Scrollable.

    -
    source

    pub fn direction( +

    pub fn direction( self, direction: Direction ) -> Scrollable<'a, Message, Renderer>

    Sets the Direction of the Scrollable .

    -
    source

    pub fn on_scroll( +

    pub fn on_scroll( self, f: impl Fn(Viewport) -> Message + 'a ) -> Scrollable<'a, Message, Renderer>

    Sets a function to call when the Scrollable is scrolled.

    The function takes the Viewport of the Scrollable

    -
    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Scrollable<'a, Message, Renderer>

    Sets the style of the Scrollable .

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Scrollable<'a, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Scrollable<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    source§

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn operate( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    §

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn operate( &self, tree: &mut Tree, layout: Layout<'_>, renderer: &Renderer, operation: &mut dyn Operation<Message> -)

    Applies an Operation to the Widget.
    source§

    fn on_event( +)

    Applies an Operation to the Widget.
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -47,7 +47,7 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status

    Processes a runtime Event. Read more
    source§

    fn draw( +) -> Status

    Processes a runtime Event. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -56,14 +56,14 @@ layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32> -)

    Draws the Widget using the associated Renderer.
    source§

    fn mouse_interaction( +)

    Draws the Widget using the associated Renderer.
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn overlay<'b>( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/struct.Slider.html b/iced/widget/struct.Slider.html index f3a9baba460..4c09f8352b8 100644 --- a/iced/widget/struct.Slider.html +++ b/iced/widget/struct.Slider.html @@ -1,4 +1,4 @@ -Slider in iced::widget - Rust

    Struct iced::widget::Slider

    source ·
    pub struct Slider<'a, T, Message, Renderer = Renderer<Theme>>where
    +Slider in iced::widget - Rust

    Struct iced::widget::Slider

    pub struct Slider<'a, T, Message, Renderer = Renderer<Theme>>where
         Renderer: Renderer,
         <Renderer as Renderer>::Theme: StyleSheet,{ /* private fields */ }
    Expand description

    An horizontal bar and a handle that selects a single value from a range of values.

    @@ -15,12 +15,12 @@

    Example

    Slider::new(0.0..=100.0, value, Message::SliderChanged);

    Slider drawn by Coffee’s renderer

    -

    Implementations§

    source§

    impl<'a, T, Message, Renderer> Slider<'a, T, Message, Renderer>where +

    Implementations§

    §

    impl<'a, T, Message, Renderer> Slider<'a, T, Message, Renderer>where T: Copy + From<u8> + PartialOrd<T>, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub const DEFAULT_HEIGHT: f32 = 22f32

    The default height of a Slider.

    -
    source

    pub fn new<F>( + <Renderer as Renderer>::Theme: StyleSheet,

    pub const DEFAULT_HEIGHT: f32 = 22f32

    The default height of a Slider.

    +

    pub fn new<F>( range: RangeInclusive<T>, value: T, on_change: F @@ -34,26 +34,26 @@

    Example

    It receives the new value of the Slider and must produce a Message. -

    source

    pub fn on_release(self, on_release: Message) -> Slider<'a, T, Message, Renderer>

    Sets the release message of the Slider. +

    pub fn on_release(self, on_release: Message) -> Slider<'a, T, Message, Renderer>

    Sets the release message of the Slider. This is called when the mouse is released from the slider.

    Typically, the user’s interaction with the slider is finished when this message is produced. This is useful if you need to spawn a long-running task from the slider’s result, where the default on_change message could create too many events.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Slider<'a, T, Message, Renderer>

    Sets the width of the Slider.

    -
    source

    pub fn height( +

    pub fn width(self, width: impl Into<Length>) -> Slider<'a, T, Message, Renderer>

    Sets the width of the Slider.

    +

    pub fn height( self, height: impl Into<Pixels> ) -> Slider<'a, T, Message, Renderer>

    Sets the height of the Slider.

    -
    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Slider<'a, T, Message, Renderer>

    Sets the style of the Slider.

    -
    source

    pub fn step(self, step: T) -> Slider<'a, T, Message, Renderer>

    Sets the step size of the Slider.

    -

    Trait Implementations§

    source§

    impl<'a, T, Message, Renderer> Widget<Message, Renderer> for Slider<'a, T, Message, Renderer>where +

    pub fn step(self, step: T) -> Slider<'a, T, Message, Renderer>

    Sets the step size of the Slider.

    +

    Trait Implementations§

    §

    impl<'a, T, Message, Renderer> Widget<Message, Renderer> for Slider<'a, T, Message, Renderer>where T: Copy + Into<f64> + FromPrimitive, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn on_event( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -63,7 +63,7 @@

    Example

    _clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status
    Processes a runtime Event. Read more
    source§

    fn draw( +) -> Status

    Processes a runtime Event. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -72,7 +72,7 @@

    Example

    layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32> -)
    Draws the Widget using the associated Renderer.
    source§

    fn mouse_interaction( +)

    Draws the Widget using the associated Renderer.
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, diff --git a/iced/widget/struct.Space.html b/iced/widget/struct.Space.html index 8de52ed3b0a..83ae60e4cfb 100644 --- a/iced/widget/struct.Space.html +++ b/iced/widget/struct.Space.html @@ -1,10 +1,10 @@ -Space in iced::widget - Rust

    Struct iced::widget::Space

    source ·
    pub struct Space { /* private fields */ }
    Expand description

    An amount of empty space.

    +Space in iced::widget - Rust

    Struct iced::widget::Space

    pub struct Space { /* private fields */ }
    Expand description

    An amount of empty space.

    It can be useful if you want to fill some space with nothing.

    -

    Implementations§

    source§

    impl Space

    source

    pub fn new(width: impl Into<Length>, height: impl Into<Length>) -> Space

    Creates an amount of empty Space with the given width and height.

    -
    source

    pub fn with_width(width: impl Into<Length>) -> Space

    Creates an amount of horizontal Space.

    -
    source

    pub fn with_height(height: impl Into<Length>) -> Space

    Creates an amount of vertical Space.

    -

    Trait Implementations§

    source§

    impl Debug for Space

    source§

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

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

    impl<Message, Renderer> Widget<Message, Renderer> for Spacewhere - Renderer: Renderer,

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn draw( +

    Implementations§

    §

    impl Space

    pub fn new(width: impl Into<Length>, height: impl Into<Length>) -> Space

    Creates an amount of empty Space with the given width and height.

    +

    pub fn with_width(width: impl Into<Length>) -> Space

    Creates an amount of horizontal Space.

    +

    pub fn with_height(height: impl Into<Length>) -> Space

    Creates an amount of vertical Space.

    +

    Trait Implementations§

    §

    impl Debug for Space

    §

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

    Formats the value using the given formatter. Read more
    §

    impl<Message, Renderer> Widget<Message, Renderer> for Spacewhere + Renderer: Renderer,

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn draw( &self, _state: &Tree, _renderer: &mut Renderer, diff --git a/iced/widget/struct.Svg.html b/iced/widget/struct.Svg.html index 53d15f5602d..52cb084d42c 100644 --- a/iced/widget/struct.Svg.html +++ b/iced/widget/struct.Svg.html @@ -1,25 +1,25 @@ -Svg in iced::widget - Rust

    Struct iced::widget::Svg

    source ·
    pub struct Svg<Renderer = Renderer<Theme>>where
    +Svg in iced::widget - Rust

    Struct iced::widget::Svg

    pub struct Svg<Renderer = Renderer<Theme>>where
         Renderer: Renderer,
         <Renderer as Renderer>::Theme: StyleSheet,{ /* private fields */ }
    Expand description

    A vector graphics image.

    An Svg image resizes smoothly without losing any quality.

    Svg images can have a considerable rendering cost when resized, specially when they are complex.

    -

    Implementations§

    source§

    impl<Renderer> Svg<Renderer>where +

    Implementations§

    §

    impl<Renderer> Svg<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub fn new(handle: impl Into<Handle>) -> Svg<Renderer>

    Available on crate feature svg only.

    Creates a new Svg from the given Handle.

    -
    source

    pub fn from_path(path: impl Into<PathBuf>) -> Svg<Renderer>

    Available on crate feature svg only.

    Creates a new Svg that will display the contents of the file at the + <Renderer as Renderer>::Theme: StyleSheet,

    pub fn new(handle: impl Into<Handle>) -> Svg<Renderer>

    Available on crate feature svg only.

    Creates a new Svg from the given Handle.

    +

    pub fn from_path(path: impl Into<PathBuf>) -> Svg<Renderer>

    Available on crate feature svg only.

    Creates a new Svg that will display the contents of the file at the provided path.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Svg<Renderer>

    Available on crate feature svg only.

    Sets the width of the Svg.

    -
    source

    pub fn height(self, height: impl Into<Length>) -> Svg<Renderer>

    Available on crate feature svg only.

    Sets the height of the Svg.

    -
    source

    pub fn content_fit(self, content_fit: ContentFit) -> Svg<Renderer>

    Available on crate feature svg only.

    Sets the ContentFit of the Svg.

    +

    pub fn width(self, width: impl Into<Length>) -> Svg<Renderer>

    Available on crate feature svg only.

    Sets the width of the Svg.

    +

    pub fn height(self, height: impl Into<Length>) -> Svg<Renderer>

    Available on crate feature svg only.

    Sets the height of the Svg.

    +

    pub fn content_fit(self, content_fit: ContentFit) -> Svg<Renderer>

    Available on crate feature svg only.

    Sets the ContentFit of the Svg.

    Defaults to ContentFit::Contain

    -
    source

    pub fn style( +

    pub fn style( self, style: <<Renderer as Renderer>::Theme as StyleSheet>::Style ) -> Svg<Renderer>

    Available on crate feature svg only.

    Sets the style variant of this Svg.

    -

    Trait Implementations§

    source§

    impl<Message, Renderer> Widget<Message, Renderer> for Svg<Renderer>where +

    Trait Implementations§

    §

    impl<Message, Renderer> Widget<Message, Renderer> for Svg<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn draw( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn draw( &self, _state: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/struct.TextInput.html b/iced/widget/struct.TextInput.html index 1ad0bc9ed2c..15a6ad892bf 100644 --- a/iced/widget/struct.TextInput.html +++ b/iced/widget/struct.TextInput.html @@ -1,4 +1,4 @@ -TextInput in iced::widget - Rust

    Text input drawn by iced_wgpu

    -

    Implementations§

    source§

    impl<'a, Message, Renderer> TextInput<'a, Message, Renderer>where +

    Implementations§

    §

    impl<'a, Message, Renderer> TextInput<'a, Message, Renderer>where Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub fn new(placeholder: &str, value: &str) -> TextInput<'a, Message, Renderer>

    Creates a new TextInput.

    + <Renderer as Renderer>::Theme: StyleSheet,

    pub fn new(placeholder: &str, value: &str) -> TextInput<'a, Message, Renderer>

    Creates a new TextInput.

    It expects:

    • a placeholder,
    • the current value
    -
    source

    pub fn id(self, id: Id) -> TextInput<'a, Message, Renderer>

    Sets the Id of the TextInput.

    -
    source

    pub fn password(self) -> TextInput<'a, Message, Renderer>

    Converts the TextInput into a secure password input.

    -
    source

    pub fn on_input<F>(self, callback: F) -> TextInput<'a, Message, Renderer>where +

    pub fn id(self, id: Id) -> TextInput<'a, Message, Renderer>

    Sets the Id of the TextInput.

    +

    pub fn password(self) -> TextInput<'a, Message, Renderer>

    Converts the TextInput into a secure password input.

    +

    pub fn on_input<F>(self, callback: F) -> TextInput<'a, Message, Renderer>where F: 'a + Fn(String) -> Message,

    Sets the message that should be produced when some text is typed into the TextInput.

    If this method is not called, the TextInput will be disabled.

    -
    source

    pub fn on_submit(self, message: Message) -> TextInput<'a, Message, Renderer>

    Sets the message that should be produced when the TextInput is +

    pub fn on_submit(self, message: Message) -> TextInput<'a, Message, Renderer>

    Sets the message that should be produced when the TextInput is focused and the enter key is pressed.

    -
    source

    pub fn on_paste( +

    pub fn on_paste( self, on_paste: impl Fn(String) -> Message + 'a ) -> TextInput<'a, Message, Renderer>

    Sets the message that should be produced when some text is pasted into the TextInput.

    -
    source

    pub fn font( +

    pub fn font( self, font: <Renderer as Renderer>::Font ) -> TextInput<'a, Message, Renderer>

    Sets the Font of the TextInput.

    -
    source

    pub fn icon( +

    pub fn icon( self, icon: Icon<<Renderer as Renderer>::Font> ) -> TextInput<'a, Message, Renderer>

    Sets the Icon of the TextInput.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> TextInput<'a, Message, Renderer>

    Sets the width of the TextInput.

    -
    source

    pub fn padding<P>(self, padding: P) -> TextInput<'a, Message, Renderer>where +

    pub fn width(self, width: impl Into<Length>) -> TextInput<'a, Message, Renderer>

    Sets the width of the TextInput.

    +

    pub fn padding<P>(self, padding: P) -> TextInput<'a, Message, Renderer>where P: Into<Padding>,

    Sets the Padding of the TextInput.

    -
    source

    pub fn size(self, size: impl Into<Pixels>) -> TextInput<'a, Message, Renderer>

    Sets the text size of the TextInput.

    -
    source

    pub fn line_height( +

    pub fn size(self, size: impl Into<Pixels>) -> TextInput<'a, Message, Renderer>

    Sets the text size of the TextInput.

    +

    pub fn line_height( self, line_height: impl Into<LineHeight> ) -> TextInput<'a, Message, Renderer>

    Sets the [LineHeight] of the TextInput.

    -
    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> TextInput<'a, Message, Renderer>

    Sets the style of the TextInput.

    -
    source

    pub fn draw( +

    pub fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -68,16 +68,16 @@

    Example

    value: Option<&Value> )

    Draws the TextInput with the given Renderer, overriding its Value if provided.

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Widget<Message, Renderer> for TextInput<'a, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Widget<Message, Renderer> for TextInput<'a, Message, Renderer>where Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn operate( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn operate( &self, tree: &mut Tree, _layout: Layout<'_>, _renderer: &Renderer, operation: &mut dyn Operation<Message> -)

    Applies an Operation to the Widget.
    source§

    fn on_event( +)

    Applies an Operation to the Widget.
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -87,7 +87,7 @@

    Example

    clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status
    Processes a runtime Event. Read more
    source§

    fn draw( +) -> Status

    Processes a runtime Event. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -96,7 +96,7 @@

    Example

    layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32> -)
    Draws the Widget using the associated Renderer.
    source§

    fn mouse_interaction( +)

    Draws the Widget using the associated Renderer.
    §

    fn mouse_interaction( &self, _state: &Tree, layout: Layout<'_>, diff --git a/iced/widget/struct.Toggler.html b/iced/widget/struct.Toggler.html index 76fbd60368a..5f515e565c5 100644 --- a/iced/widget/struct.Toggler.html +++ b/iced/widget/struct.Toggler.html @@ -1,4 +1,4 @@ -Toggler in iced::widget - Rust
    -

    Implementations§

    source§

    impl<'a, Message, Renderer> Toggler<'a, Message, Renderer>where +

    Implementations§

    §

    impl<'a, Message, Renderer> Toggler<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub const DEFAULT_SIZE: f32 = 20f32

    The default size of a Toggler.

    -
    source

    pub fn new<F>( + <Renderer as Renderer>::Theme: StyleSheet,

    pub const DEFAULT_SIZE: f32 = 20f32

    The default size of a Toggler.

    +

    pub fn new<F>( label: impl Into<Option<String>>, is_toggled: bool, f: F @@ -26,36 +26,36 @@

    Example

    will receive the new state of the Toggler and must produce a Message. -

    source

    pub fn size(self, size: impl Into<Pixels>) -> Toggler<'a, Message, Renderer>

    Sets the size of the Toggler.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Toggler<'a, Message, Renderer>

    Sets the width of the Toggler.

    -
    source

    pub fn text_size( +

    pub fn size(self, size: impl Into<Pixels>) -> Toggler<'a, Message, Renderer>

    Sets the size of the Toggler.

    +

    pub fn width(self, width: impl Into<Length>) -> Toggler<'a, Message, Renderer>

    Sets the width of the Toggler.

    +

    pub fn text_size( self, text_size: impl Into<Pixels> ) -> Toggler<'a, Message, Renderer>

    Sets the text size o the Toggler.

    -
    source

    pub fn text_line_height( +

    pub fn text_line_height( self, line_height: impl Into<LineHeight> ) -> Toggler<'a, Message, Renderer>

    Sets the text [LineHeight] of the Toggler.

    -
    source

    pub fn text_alignment( +

    pub fn text_alignment( self, alignment: Horizontal ) -> Toggler<'a, Message, Renderer>

    Sets the horizontal alignment of the text of the Toggler

    -
    source

    pub fn text_shaping(self, shaping: Shaping) -> Toggler<'a, Message, Renderer>

    Sets the text::Shaping strategy of the Toggler.

    -
    source

    pub fn spacing( +

    pub fn text_shaping(self, shaping: Shaping) -> Toggler<'a, Message, Renderer>

    Sets the text::Shaping strategy of the Toggler.

    +

    pub fn spacing( self, spacing: impl Into<Pixels> ) -> Toggler<'a, Message, Renderer>

    Sets the spacing between the Toggler and the text.

    -
    source

    pub fn font( +

    pub fn font( self, font: impl Into<<Renderer as Renderer>::Font> ) -> Toggler<'a, Message, Renderer>

    Sets the Font of the text of the Toggler

    -
    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Toggler<'a, Message, Renderer>

    Sets the style of the Toggler.

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Toggler<'a, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Toggler<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn on_event( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn on_event( &mut self, _state: &mut Tree, event: Event, @@ -65,14 +65,14 @@

    Example

    _clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status
    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, _state: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, _renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, _state: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/struct.Tooltip.html b/iced/widget/struct.Tooltip.html index 6930464c230..e9f5914b3b0 100644 --- a/iced/widget/struct.Tooltip.html +++ b/iced/widget/struct.Tooltip.html @@ -1,31 +1,31 @@ -Tooltip in iced::widget - Rust

    Struct iced::widget::Tooltip

    source ·
    pub struct Tooltip<'a, Message, Renderer = Renderer<Theme>>where
    +Tooltip in iced::widget - Rust

    Struct iced::widget::Tooltip

    pub struct Tooltip<'a, Message, Renderer = Renderer<Theme>>where
         Renderer: Renderer,
         <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,{ /* private fields */ }
    Expand description

    An element to display a widget over another.

    -

    Implementations§

    source§

    impl<'a, Message, Renderer> Tooltip<'a, Message, Renderer>where +

    Implementations§

    §

    impl<'a, Message, Renderer> Tooltip<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    source

    pub fn new( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    pub fn new( content: impl Into<Element<'a, Message, Renderer>>, tooltip: impl Into<Cow<'a, str>>, position: Position ) -> Tooltip<'a, Message, Renderer>

    Creates a new Tooltip.

    -
    source

    pub fn size(self, size: impl Into<Pixels>) -> Tooltip<'a, Message, Renderer>

    Sets the size of the text of the Tooltip.

    -
    source

    pub fn font( +

    pub fn size(self, size: impl Into<Pixels>) -> Tooltip<'a, Message, Renderer>

    Sets the size of the text of the Tooltip.

    +

    pub fn font( self, font: impl Into<<Renderer as Renderer>::Font> ) -> Tooltip<'a, Message, Renderer>

    Sets the font of the Tooltip.

    -
    source

    pub fn gap(self, gap: impl Into<Pixels>) -> Tooltip<'a, Message, Renderer>

    Sets the gap between the content and its Tooltip.

    -
    source

    pub fn padding( +

    pub fn gap(self, gap: impl Into<Pixels>) -> Tooltip<'a, Message, Renderer>

    Sets the gap between the content and its Tooltip.

    +

    pub fn padding( self, padding: impl Into<Pixels> ) -> Tooltip<'a, Message, Renderer>

    Sets the padding of the Tooltip.

    -
    source

    pub fn snap_within_viewport(self, snap: bool) -> Tooltip<'a, Message, Renderer>

    Sets whether the Tooltip is snapped within the viewport.

    -
    source

    pub fn style( +

    pub fn snap_within_viewport(self, snap: bool) -> Tooltip<'a, Message, Renderer>

    Sets whether the Tooltip is snapped within the viewport.

    +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Tooltip<'a, Message, Renderer>

    Sets the style of the Tooltip.

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Tooltip<'a, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Tooltip<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    source§

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    source§

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn on_event( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    §

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    §

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -35,14 +35,14 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status

    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -51,7 +51,7 @@ layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32> -)

    Draws the Widget using the associated Renderer.
    source§

    fn overlay<'b>( +)

    Draws the Widget using the associated Renderer.
    §

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/struct.VerticalSlider.html b/iced/widget/struct.VerticalSlider.html index 0ae2f163541..402e2a58d7a 100644 --- a/iced/widget/struct.VerticalSlider.html +++ b/iced/widget/struct.VerticalSlider.html @@ -1,4 +1,4 @@ -VerticalSlider in iced::widget - Rust

    Struct iced::widget::VerticalSlider

    source ·
    pub struct VerticalSlider<'a, T, Message, Renderer = Renderer<Theme>>where
    +VerticalSlider in iced::widget - Rust

    Struct iced::widget::VerticalSlider

    pub struct VerticalSlider<'a, T, Message, Renderer = Renderer<Theme>>where
         Renderer: Renderer,
         <Renderer as Renderer>::Theme: StyleSheet,{ /* private fields */ }
    Expand description

    An vertical bar and a handle that selects a single value from a range of values.

    @@ -14,12 +14,12 @@

    Example

    let value = 50.0; VerticalSlider::new(0.0..=100.0, value, Message::SliderChanged);
    -

    Implementations§

    source§

    impl<'a, T, Message, Renderer> VerticalSlider<'a, T, Message, Renderer>where +

    Implementations§

    §

    impl<'a, T, Message, Renderer> VerticalSlider<'a, T, Message, Renderer>where T: Copy + From<u8> + PartialOrd<T>, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub const DEFAULT_WIDTH: f32 = 22f32

    The default width of a VerticalSlider.

    -
    source

    pub fn new<F>( + <Renderer as Renderer>::Theme: StyleSheet,

    pub const DEFAULT_WIDTH: f32 = 22f32

    The default width of a VerticalSlider.

    +

    pub fn new<F>( range: RangeInclusive<T>, value: T, on_change: F @@ -33,7 +33,7 @@

    Example

    It receives the new value of the VerticalSlider and must produce a Message. -

    source

    pub fn on_release( +

    pub fn on_release( self, on_release: Message ) -> VerticalSlider<'a, T, Message, Renderer>

    Sets the release message of the VerticalSlider. @@ -41,24 +41,24 @@

    Example

    Typically, the user’s interaction with the slider is finished when this message is produced. This is useful if you need to spawn a long-running task from the slider’s result, where the default on_change message could create too many events.

    -
    source

    pub fn width( +

    pub fn width( self, width: impl Into<Pixels> ) -> VerticalSlider<'a, T, Message, Renderer>

    Sets the width of the VerticalSlider.

    -
    source

    pub fn height( +

    pub fn height( self, height: impl Into<Length> ) -> VerticalSlider<'a, T, Message, Renderer>

    Sets the height of the VerticalSlider.

    -
    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> VerticalSlider<'a, T, Message, Renderer>

    Sets the style of the VerticalSlider.

    -
    source

    pub fn step(self, step: T) -> VerticalSlider<'a, T, Message, Renderer>

    Sets the step size of the VerticalSlider.

    -

    Trait Implementations§

    source§

    impl<'a, T, Message, Renderer> Widget<Message, Renderer> for VerticalSlider<'a, T, Message, Renderer>where +

    pub fn step(self, step: T) -> VerticalSlider<'a, T, Message, Renderer>

    Sets the step size of the VerticalSlider.

    +

    Trait Implementations§

    §

    impl<'a, T, Message, Renderer> Widget<Message, Renderer> for VerticalSlider<'a, T, Message, Renderer>where T: Copy + Into<f64> + FromPrimitive, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn on_event( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -68,7 +68,7 @@

    Example

    _clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status
    Processes a runtime Event. Read more
    source§

    fn draw( +) -> Status

    Processes a runtime Event. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -77,7 +77,7 @@

    Example

    layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32> -)
    Draws the Widget using the associated Renderer.
    source§

    fn mouse_interaction( +)

    Draws the Widget using the associated Renderer.
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, diff --git a/iced/widget/svg/index.html b/iced/widget/svg/index.html index 47a4633f30c..9e15e920397 100644 --- a/iced/widget/svg/index.html +++ b/iced/widget/svg/index.html @@ -1,2 +1,2 @@ -iced::widget::svg - Rust

    Module iced::widget::svg

    source ·
    Available on crate feature svg only.
    Expand description

    Display vector graphics in your application.

    +iced::widget::svg - Rust

    Module iced::widget::svg

    Available on crate feature svg only.
    Expand description

    Display vector graphics in your application.

    Structs

    Traits

    \ No newline at end of file diff --git a/iced/widget/svg/struct.Svg.html b/iced/widget/svg/struct.Svg.html index 6586f095f96..0f0bca68d3a 100644 --- a/iced/widget/svg/struct.Svg.html +++ b/iced/widget/svg/struct.Svg.html @@ -1,25 +1,25 @@ -Svg in iced::widget::svg - Rust

    Struct iced::widget::svg::Svg

    source ·
    pub struct Svg<Renderer = Renderer<Theme>>where
    +Svg in iced::widget::svg - Rust

    Struct iced::widget::svg::Svg

    pub struct Svg<Renderer = Renderer<Theme>>where
         Renderer: Renderer,
         <Renderer as Renderer>::Theme: StyleSheet,{ /* private fields */ }
    Available on crate feature svg only.
    Expand description

    A vector graphics image.

    An Svg image resizes smoothly without losing any quality.

    Svg images can have a considerable rendering cost when resized, specially when they are complex.

    -

    Implementations§

    source§

    impl<Renderer> Svg<Renderer>where +

    Implementations§

    §

    impl<Renderer> Svg<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub fn new(handle: impl Into<Handle>) -> Svg<Renderer>

    Creates a new Svg from the given Handle.

    -
    source

    pub fn from_path(path: impl Into<PathBuf>) -> Svg<Renderer>

    Creates a new Svg that will display the contents of the file at the + <Renderer as Renderer>::Theme: StyleSheet,

    pub fn new(handle: impl Into<Handle>) -> Svg<Renderer>

    Creates a new Svg from the given Handle.

    +

    pub fn from_path(path: impl Into<PathBuf>) -> Svg<Renderer>

    Creates a new Svg that will display the contents of the file at the provided path.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Svg<Renderer>

    Sets the width of the Svg.

    -
    source

    pub fn height(self, height: impl Into<Length>) -> Svg<Renderer>

    Sets the height of the Svg.

    -
    source

    pub fn content_fit(self, content_fit: ContentFit) -> Svg<Renderer>

    Sets the ContentFit of the Svg.

    +

    pub fn width(self, width: impl Into<Length>) -> Svg<Renderer>

    Sets the width of the Svg.

    +

    pub fn height(self, height: impl Into<Length>) -> Svg<Renderer>

    Sets the height of the Svg.

    +

    pub fn content_fit(self, content_fit: ContentFit) -> Svg<Renderer>

    Sets the ContentFit of the Svg.

    Defaults to ContentFit::Contain

    -
    source

    pub fn style( +

    pub fn style( self, style: <<Renderer as Renderer>::Theme as StyleSheet>::Style ) -> Svg<Renderer>

    Sets the style variant of this Svg.

    -

    Trait Implementations§

    source§

    impl<Message, Renderer> Widget<Message, Renderer> for Svg<Renderer>where +

    Trait Implementations§

    §

    impl<Message, Renderer> Widget<Message, Renderer> for Svg<Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn draw( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn draw( &self, _state: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/text/index.html b/iced/widget/text/index.html index ec81b4d15c1..db0016ab8fc 100644 --- a/iced/widget/text/index.html +++ b/iced/widget/text/index.html @@ -1,2 +1,2 @@ -iced::widget::text - Rust

    Module iced::widget::text

    source ·
    Expand description

    Draw and interact with text.

    +iced::widget::text - Rust

    Module iced::widget::text

    Expand description

    Draw and interact with text.

    Structs

    Enums

    • The height of a line of text in a paragraph.
    • The shaping strategy of some text.

    Traits

    Functions

    • Draws text using the same logic as the Text widget.

    Type Definitions

    \ No newline at end of file diff --git a/iced/widget/text/type.Text.html b/iced/widget/text/type.Text.html index 9ec803fea26..4a5cc6eaba3 100644 --- a/iced/widget/text/type.Text.html +++ b/iced/widget/text/type.Text.html @@ -1,2 +1,2 @@ -Text in iced::widget::text - Rust

    Type Definition iced::widget::text::Text

    source ·
    pub type Text<'a, Renderer = Renderer<Theme>> = Text<'a, Renderer>;
    Expand description

    A paragraph.

    +Text in iced::widget::text - Rust

    Type Definition iced::widget::text::Text

    pub type Text<'a, Renderer = Renderer<Theme>> = Text<'a, Renderer>;
    Expand description

    A paragraph.

    \ No newline at end of file diff --git a/iced/widget/text_input/constant.DEFAULT_PADDING.html b/iced/widget/text_input/constant.DEFAULT_PADDING.html index 69d40059f5d..8742a7acab6 100644 --- a/iced/widget/text_input/constant.DEFAULT_PADDING.html +++ b/iced/widget/text_input/constant.DEFAULT_PADDING.html @@ -1,2 +1,2 @@ -DEFAULT_PADDING in iced::widget::text_input - Rust
    pub const DEFAULT_PADDING: Padding;
    Expand description

    The default Padding of a TextInput.

    +DEFAULT_PADDING in iced::widget::text_input - Rust
    pub const DEFAULT_PADDING: Padding;
    Expand description

    The default Padding of a TextInput.

    \ No newline at end of file diff --git a/iced/widget/text_input/cursor/enum.State.html b/iced/widget/text_input/cursor/enum.State.html index a0baa3d7dd2..b4a55010adf 100644 --- a/iced/widget/text_input/cursor/enum.State.html +++ b/iced/widget/text_input/cursor/enum.State.html @@ -1,4 +1,4 @@ -State in iced::widget::text_input::cursor - Rust

    Trait Implementations§

    source§

    impl Clone for State

    source§

    fn clone(&self) -> State

    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 State

    source§

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

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

    impl Copy for State

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for State

    §

    impl Send for State

    §

    impl Sync for State

    §

    impl Unpin for State

    §

    impl UnwindSafe for State

    Blanket Implementations§

    source§

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

    Trait Implementations§

    §

    impl Clone for State

    §

    fn clone(&self) -> State

    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 State

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Copy for State

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for State

    §

    impl Send for State

    §

    impl Sync for State

    §

    impl Unpin for State

    §

    impl UnwindSafe for State

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/text_input/cursor/index.html b/iced/widget/text_input/cursor/index.html index 3a4930fde41..09add56c772 100644 --- a/iced/widget/text_input/cursor/index.html +++ b/iced/widget/text_input/cursor/index.html @@ -1,2 +1,2 @@ -iced::widget::text_input::cursor - Rust

    Module iced::widget::text_input::cursor

    source ·
    Expand description

    Track the cursor of a text input.

    +iced::widget::text_input::cursor - Rust

    Module iced::widget::text_input::cursor

    Expand description

    Track the cursor of a text input.

    Structs

    • The cursor of a text input.

    Enums

    \ No newline at end of file diff --git a/iced/widget/text_input/cursor/struct.Cursor.html b/iced/widget/text_input/cursor/struct.Cursor.html index 9b3cd7130ff..68d2485345a 100644 --- a/iced/widget/text_input/cursor/struct.Cursor.html +++ b/iced/widget/text_input/cursor/struct.Cursor.html @@ -1,8 +1,8 @@ -Cursor in iced::widget::text_input::cursor - Rust
    pub struct Cursor { /* private fields */ }
    Expand description

    The cursor of a text input.

    -

    Implementations§

    source§

    impl Cursor

    source

    pub fn state(&self, value: &Value) -> State

    Returns the State of the Cursor.

    -
    source

    pub fn selection(&self, value: &Value) -> Option<(usize, usize)>

    Returns the current selection of the Cursor for the given Value.

    +Cursor in iced::widget::text_input::cursor - Rust
    pub struct Cursor { /* private fields */ }
    Expand description

    The cursor of a text input.

    +

    Implementations§

    §

    impl Cursor

    pub fn state(&self, value: &Value) -> State

    Returns the State of the Cursor.

    +

    pub fn selection(&self, value: &Value) -> Option<(usize, usize)>

    Returns the current selection of the Cursor for the given Value.

    start is guaranteed to be <= than end.

    -

    Trait Implementations§

    source§

    impl Clone for Cursor

    source§

    fn clone(&self) -> Cursor

    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 Cursor

    source§

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

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

    impl Default for Cursor

    source§

    fn default() -> Cursor

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

    impl Copy for Cursor

    Auto Trait Implementations§

    Blanket Implementations§

    source§

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

    Trait Implementations§

    §

    impl Clone for Cursor

    §

    fn clone(&self) -> Cursor

    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 Cursor

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Default for Cursor

    §

    fn default() -> Cursor

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

    impl Copy for Cursor

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/text_input/enum.Side.html b/iced/widget/text_input/enum.Side.html index 8b7dccf277c..4cc5ed4227f 100644 --- a/iced/widget/text_input/enum.Side.html +++ b/iced/widget/text_input/enum.Side.html @@ -1,10 +1,10 @@ -Side in iced::widget::text_input - Rust

    Enum iced::widget::text_input::Side

    source ·
    pub enum Side {
    +Side in iced::widget::text_input - Rust

    Enum iced::widget::text_input::Side

    pub enum Side {
         Left,
         Right,
     }
    Expand description

    The side of a TextInput.

    Variants§

    §

    Left

    The left side of a TextInput.

    §

    Right

    The right side of a TextInput.

    -

    Trait Implementations§

    source§

    impl Clone for Side

    source§

    fn clone(&self) -> Side

    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 Side

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Side

    §

    impl Send for Side

    §

    impl Sync for Side

    §

    impl Unpin for Side

    §

    impl UnwindSafe for Side

    Blanket Implementations§

    source§

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

    Trait Implementations§

    §

    impl Clone for Side

    §

    fn clone(&self) -> Side

    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 Side

    §

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Side

    §

    impl Send for Side

    §

    impl Sync for Side

    §

    impl Unpin for Side

    §

    impl UnwindSafe for Side

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/text_input/fn.draw.html b/iced/widget/text_input/fn.draw.html index 170fd70f72f..9e7aa2ce0b7 100644 --- a/iced/widget/text_input/fn.draw.html +++ b/iced/widget/text_input/fn.draw.html @@ -1,4 +1,4 @@ -draw in iced::widget::text_input - Rust

    Function iced::widget::text_input::draw

    source ·
    pub fn draw<Renderer>(
    +draw in iced::widget::text_input - Rust

    Function iced::widget::text_input::draw

    pub fn draw<Renderer>(
         renderer: &mut Renderer,
         theme: &<Renderer as Renderer>::Theme,
         layout: Layout<'_>,
    diff --git a/iced/widget/text_input/fn.focus.html b/iced/widget/text_input/fn.focus.html
    index df197c0274c..f9dee2a4d90 100644
    --- a/iced/widget/text_input/fn.focus.html
    +++ b/iced/widget/text_input/fn.focus.html
    @@ -1,3 +1,3 @@
    -focus in iced::widget::text_input - Rust

    Function iced::widget::text_input::focus

    source ·
    pub fn focus<Message>(id: Id) -> Command<Message>where
    +focus in iced::widget::text_input - Rust

    Function iced::widget::text_input::focus

    pub fn focus<Message>(id: Id) -> Command<Message>where
         Message: 'static,
    Expand description

    Produces a Command that focuses the TextInput with the given Id.

    \ No newline at end of file diff --git a/iced/widget/text_input/fn.layout.html b/iced/widget/text_input/fn.layout.html index d35dbd9c4df..20339cf078b 100644 --- a/iced/widget/text_input/fn.layout.html +++ b/iced/widget/text_input/fn.layout.html @@ -1,4 +1,4 @@ -layout in iced::widget::text_input - Rust

    Function iced::widget::text_input::layout

    source ·
    pub fn layout<Renderer>(
    +layout in iced::widget::text_input - Rust

    Function iced::widget::text_input::layout

    pub fn layout<Renderer>(
         renderer: &Renderer,
         limits: &Limits,
         width: Length,
    diff --git a/iced/widget/text_input/fn.mouse_interaction.html b/iced/widget/text_input/fn.mouse_interaction.html
    index 169ab65581f..30f2b6d6f5b 100644
    --- a/iced/widget/text_input/fn.mouse_interaction.html
    +++ b/iced/widget/text_input/fn.mouse_interaction.html
    @@ -1,4 +1,4 @@
    -mouse_interaction in iced::widget::text_input - Rust
    pub fn mouse_interaction(
    +mouse_interaction in iced::widget::text_input - Rust
    pub fn mouse_interaction(
         layout: Layout<'_>,
         cursor: Cursor,
         is_disabled: bool
    diff --git a/iced/widget/text_input/fn.move_cursor_to.html b/iced/widget/text_input/fn.move_cursor_to.html
    index b2944a22857..653805f3177 100644
    --- a/iced/widget/text_input/fn.move_cursor_to.html
    +++ b/iced/widget/text_input/fn.move_cursor_to.html
    @@ -1,4 +1,4 @@
    -move_cursor_to in iced::widget::text_input - Rust
    pub fn move_cursor_to<Message>(id: Id, position: usize) -> Command<Message>where
    +move_cursor_to in iced::widget::text_input - Rust
    pub fn move_cursor_to<Message>(id: Id, position: usize) -> Command<Message>where
         Message: 'static,
    Expand description

    Produces a Command that moves the cursor of the TextInput with the given Id to the provided position.

    \ No newline at end of file diff --git a/iced/widget/text_input/fn.move_cursor_to_end.html b/iced/widget/text_input/fn.move_cursor_to_end.html index ab16b8e02d7..0239ec4f799 100644 --- a/iced/widget/text_input/fn.move_cursor_to_end.html +++ b/iced/widget/text_input/fn.move_cursor_to_end.html @@ -1,4 +1,4 @@ -move_cursor_to_end in iced::widget::text_input - Rust
    pub fn move_cursor_to_end<Message>(id: Id) -> Command<Message>where
    +move_cursor_to_end in iced::widget::text_input - Rust
    pub fn move_cursor_to_end<Message>(id: Id) -> Command<Message>where
         Message: 'static,
    Expand description

    Produces a Command that moves the cursor of the TextInput with the given Id to the end.

    \ No newline at end of file diff --git a/iced/widget/text_input/fn.move_cursor_to_front.html b/iced/widget/text_input/fn.move_cursor_to_front.html index a19cd085229..27b1e676e86 100644 --- a/iced/widget/text_input/fn.move_cursor_to_front.html +++ b/iced/widget/text_input/fn.move_cursor_to_front.html @@ -1,4 +1,4 @@ -move_cursor_to_front in iced::widget::text_input - Rust
    pub fn move_cursor_to_front<Message>(id: Id) -> Command<Message>where
    +move_cursor_to_front in iced::widget::text_input - Rust
    pub fn move_cursor_to_front<Message>(id: Id) -> Command<Message>where
         Message: 'static,
    Expand description

    Produces a Command that moves the cursor of the TextInput with the given Id to the front.

    \ No newline at end of file diff --git a/iced/widget/text_input/fn.select_all.html b/iced/widget/text_input/fn.select_all.html index 3f218311b33..ce2a3e6c2f6 100644 --- a/iced/widget/text_input/fn.select_all.html +++ b/iced/widget/text_input/fn.select_all.html @@ -1,3 +1,3 @@ -select_all in iced::widget::text_input - Rust

    Function iced::widget::text_input::select_all

    source ·
    pub fn select_all<Message>(id: Id) -> Command<Message>where
    +select_all in iced::widget::text_input - Rust

    Function iced::widget::text_input::select_all

    pub fn select_all<Message>(id: Id) -> Command<Message>where
         Message: 'static,
    Expand description

    Produces a Command that selects all the content of the TextInput with the given Id.

    \ No newline at end of file diff --git a/iced/widget/text_input/fn.update.html b/iced/widget/text_input/fn.update.html index d9ad74fc011..cd339bdcd2a 100644 --- a/iced/widget/text_input/fn.update.html +++ b/iced/widget/text_input/fn.update.html @@ -1,4 +1,4 @@ -update in iced::widget::text_input - Rust

    Function iced::widget::text_input::update

    source ·
    pub fn update<'a, Message, Renderer>(
    +update in iced::widget::text_input - Rust

    Function iced::widget::text_input::update

    pub fn update<'a, Message, Renderer>(
         event: Event,
         layout: Layout<'_>,
         cursor: Cursor,
    diff --git a/iced/widget/text_input/index.html b/iced/widget/text_input/index.html
    index beadea17ed5..bfc0127af1f 100644
    --- a/iced/widget/text_input/index.html
    +++ b/iced/widget/text_input/index.html
    @@ -1,4 +1,4 @@
    -iced::widget::text_input - Rust

    Module iced::widget::text_input

    source ·
    Expand description

    Display fields that can be filled with text.

    +iced::widget::text_input - Rust

    Module iced::widget::text_input

    Expand description

    Display fields that can be filled with text.

    A TextInput has some local State.

    Modules

    • Track the cursor of a text input.

    Structs

    Enums

    Constants

    Traits

    • A set of rules that dictate the style of a text input.

    Functions

    §

    impl PartialEq<Id> for Id

    §

    fn eq(&self, other: &Id) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Eq for Id

    source§

    impl StructuralEq for Id

    source§

    impl StructuralPartialEq for Id

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Id

    §

    impl Send for Id

    §

    impl Sync for Id

    §

    impl Unpin for Id

    §

    impl UnwindSafe for Id

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

    §

    impl Eq for Id

    §

    impl StructuralEq for Id

    §

    impl StructuralPartialEq for Id

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Id

    §

    impl Send for Id

    §

    impl Sync for Id

    §

    impl Unpin for Id

    §

    impl UnwindSafe for Id

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/text_input/struct.State.html b/iced/widget/text_input/struct.State.html index fa245f4974f..4e267d69fc7 100644 --- a/iced/widget/text_input/struct.State.html +++ b/iced/widget/text_input/struct.State.html @@ -1,15 +1,15 @@ -State in iced::widget::text_input - Rust

    Struct iced::widget::text_input::State

    source ·
    pub struct State { /* private fields */ }
    Expand description

    The state of a TextInput.

    -

    Implementations§

    source§

    impl State

    source

    pub fn new() -> State

    Creates a new State, representing an unfocused TextInput.

    -
    source

    pub fn focused() -> State

    Creates a new State, representing a focused TextInput.

    -
    source

    pub fn is_focused(&self) -> bool

    Returns whether the TextInput is currently focused or not.

    -
    source

    pub fn cursor(&self) -> Cursor

    Returns the Cursor of the TextInput.

    -
    source

    pub fn focus(&mut self)

    Focuses the TextInput.

    -
    source

    pub fn unfocus(&mut self)

    Unfocuses the TextInput.

    -
    source

    pub fn move_cursor_to_front(&mut self)

    Moves the Cursor of the TextInput to the front of the input text.

    -
    source

    pub fn move_cursor_to_end(&mut self)

    Moves the Cursor of the TextInput to the end of the input text.

    -
    source

    pub fn move_cursor_to(&mut self, position: usize)

    Moves the Cursor of the TextInput to an arbitrary location.

    -
    source

    pub fn select_all(&mut self)

    Selects all the content of the TextInput.

    -

    Trait Implementations§

    source§

    impl Clone for State

    source§

    fn clone(&self) -> State

    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 State

    source§

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

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

    impl Default for State

    source§

    fn default() -> State

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

    impl Focusable for State

    source§

    fn is_focused(&self) -> bool

    Returns whether the widget is focused or not.
    source§

    fn focus(&mut self)

    Focuses the widget.
    source§

    fn unfocus(&mut self)

    Unfocuses the widget.
    source§

    impl TextInput for State

    source§

    fn move_cursor_to_front(&mut self)

    Moves the cursor of the text input to the front of the input text.
    source§

    fn move_cursor_to_end(&mut self)

    Moves the cursor of the text input to the end of the input text.
    source§

    fn move_cursor_to(&mut self, position: usize)

    Moves the cursor of the text input to an arbitrary location.
    source§

    fn select_all(&mut self)

    Selects all the content of the text input.

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for State

    §

    impl Send for State

    §

    impl Sync for State

    §

    impl Unpin for State

    §

    impl UnwindSafe for State

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +State in iced::widget::text_input - Rust

    Struct iced::widget::text_input::State

    pub struct State { /* private fields */ }
    Expand description

    The state of a TextInput.

    +

    Implementations§

    §

    impl State

    pub fn new() -> State

    Creates a new State, representing an unfocused TextInput.

    +

    pub fn focused() -> State

    Creates a new State, representing a focused TextInput.

    +

    pub fn is_focused(&self) -> bool

    Returns whether the TextInput is currently focused or not.

    +

    pub fn cursor(&self) -> Cursor

    Returns the Cursor of the TextInput.

    +

    pub fn focus(&mut self)

    Focuses the TextInput.

    +

    pub fn unfocus(&mut self)

    Unfocuses the TextInput.

    +

    pub fn move_cursor_to_front(&mut self)

    Moves the Cursor of the TextInput to the front of the input text.

    +

    pub fn move_cursor_to_end(&mut self)

    Moves the Cursor of the TextInput to the end of the input text.

    +

    pub fn move_cursor_to(&mut self, position: usize)

    Moves the Cursor of the TextInput to an arbitrary location.

    +

    pub fn select_all(&mut self)

    Selects all the content of the TextInput.

    +

    Trait Implementations§

    §

    impl Clone for State

    §

    fn clone(&self) -> State

    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 State

    §

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

    Formats the value using the given formatter. Read more
    §

    impl Default for State

    §

    fn default() -> State

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

    impl Focusable for State

    §

    fn is_focused(&self) -> bool

    Returns whether the widget is focused or not.
    §

    fn focus(&mut self)

    Focuses the widget.
    §

    fn unfocus(&mut self)

    Unfocuses the widget.
    §

    impl TextInput for State

    §

    fn move_cursor_to_front(&mut self)

    Moves the cursor of the text input to the front of the input text.
    §

    fn move_cursor_to_end(&mut self)

    Moves the cursor of the text input to the end of the input text.
    §

    fn move_cursor_to(&mut self, position: usize)

    Moves the cursor of the text input to an arbitrary location.
    §

    fn select_all(&mut self)

    Selects all the content of the text input.

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for State

    §

    impl Send for State

    §

    impl Sync for State

    §

    impl Unpin for State

    §

    impl UnwindSafe for State

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/text_input/struct.TextInput.html b/iced/widget/text_input/struct.TextInput.html index 09eaef46e0b..561cc9161d5 100644 --- a/iced/widget/text_input/struct.TextInput.html +++ b/iced/widget/text_input/struct.TextInput.html @@ -1,4 +1,4 @@ -TextInput in iced::widget::text_input - Rust

    Text input drawn by iced_wgpu

    -

    Implementations§

    source§

    impl<'a, Message, Renderer> TextInput<'a, Message, Renderer>where +

    Implementations§

    §

    impl<'a, Message, Renderer> TextInput<'a, Message, Renderer>where Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub fn new(placeholder: &str, value: &str) -> TextInput<'a, Message, Renderer>

    Creates a new TextInput.

    + <Renderer as Renderer>::Theme: StyleSheet,

    pub fn new(placeholder: &str, value: &str) -> TextInput<'a, Message, Renderer>

    Creates a new TextInput.

    It expects:

    • a placeholder,
    • the current value
    -
    source

    pub fn id(self, id: Id) -> TextInput<'a, Message, Renderer>

    Sets the Id of the TextInput.

    -
    source

    pub fn password(self) -> TextInput<'a, Message, Renderer>

    Converts the TextInput into a secure password input.

    -
    source

    pub fn on_input<F>(self, callback: F) -> TextInput<'a, Message, Renderer>where +

    pub fn id(self, id: Id) -> TextInput<'a, Message, Renderer>

    Sets the Id of the TextInput.

    +

    pub fn password(self) -> TextInput<'a, Message, Renderer>

    Converts the TextInput into a secure password input.

    +

    pub fn on_input<F>(self, callback: F) -> TextInput<'a, Message, Renderer>where F: 'a + Fn(String) -> Message,

    Sets the message that should be produced when some text is typed into the TextInput.

    If this method is not called, the TextInput will be disabled.

    -
    source

    pub fn on_submit(self, message: Message) -> TextInput<'a, Message, Renderer>

    Sets the message that should be produced when the TextInput is +

    pub fn on_submit(self, message: Message) -> TextInput<'a, Message, Renderer>

    Sets the message that should be produced when the TextInput is focused and the enter key is pressed.

    -
    source

    pub fn on_paste( +

    pub fn on_paste( self, on_paste: impl Fn(String) -> Message + 'a ) -> TextInput<'a, Message, Renderer>

    Sets the message that should be produced when some text is pasted into the TextInput.

    -
    source

    pub fn font( +

    pub fn font( self, font: <Renderer as Renderer>::Font ) -> TextInput<'a, Message, Renderer>

    Sets the Font of the TextInput.

    -
    source

    pub fn icon( +

    pub fn icon( self, icon: Icon<<Renderer as Renderer>::Font> ) -> TextInput<'a, Message, Renderer>

    Sets the Icon of the TextInput.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> TextInput<'a, Message, Renderer>

    Sets the width of the TextInput.

    -
    source

    pub fn padding<P>(self, padding: P) -> TextInput<'a, Message, Renderer>where +

    pub fn width(self, width: impl Into<Length>) -> TextInput<'a, Message, Renderer>

    Sets the width of the TextInput.

    +

    pub fn padding<P>(self, padding: P) -> TextInput<'a, Message, Renderer>where P: Into<Padding>,

    Sets the Padding of the TextInput.

    -
    source

    pub fn size(self, size: impl Into<Pixels>) -> TextInput<'a, Message, Renderer>

    Sets the text size of the TextInput.

    -
    source

    pub fn line_height( +

    pub fn size(self, size: impl Into<Pixels>) -> TextInput<'a, Message, Renderer>

    Sets the text size of the TextInput.

    +

    pub fn line_height( self, line_height: impl Into<LineHeight> ) -> TextInput<'a, Message, Renderer>

    Sets the [LineHeight] of the TextInput.

    -
    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> TextInput<'a, Message, Renderer>

    Sets the style of the TextInput.

    -
    source

    pub fn draw( +

    pub fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -68,16 +68,16 @@

    Example

    value: Option<&Value> )

    Draws the TextInput with the given Renderer, overriding its Value if provided.

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Widget<Message, Renderer> for TextInput<'a, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Widget<Message, Renderer> for TextInput<'a, Message, Renderer>where Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn operate( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn operate( &self, tree: &mut Tree, _layout: Layout<'_>, _renderer: &Renderer, operation: &mut dyn Operation<Message> -)

    Applies an Operation to the Widget.
    source§

    fn on_event( +)

    Applies an Operation to the Widget.
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -87,7 +87,7 @@

    Example

    clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status
    Processes a runtime Event. Read more
    source§

    fn draw( +) -> Status

    Processes a runtime Event. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -96,7 +96,7 @@

    Example

    layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32> -)
    Draws the Widget using the associated Renderer.
    source§

    fn mouse_interaction( +)

    Draws the Widget using the associated Renderer.
    §

    fn mouse_interaction( &self, _state: &Tree, layout: Layout<'_>, diff --git a/iced/widget/text_input/struct.Value.html b/iced/widget/text_input/struct.Value.html index 4f89e0e588f..5738f298702 100644 --- a/iced/widget/text_input/struct.Value.html +++ b/iced/widget/text_input/struct.Value.html @@ -1,24 +1,24 @@ -Value in iced::widget::text_input - Rust

    Struct iced::widget::text_input::Value

    source ·
    pub struct Value { /* private fields */ }
    Expand description

    The value of a TextInput.

    -

    Implementations§

    source§

    impl Value

    source

    pub fn new(string: &str) -> Value

    Creates a new Value from a string slice.

    -
    source

    pub fn is_empty(&self) -> bool

    Returns whether the Value is empty or not.

    +Value in iced::widget::text_input - Rust

    Struct iced::widget::text_input::Value

    pub struct Value { /* private fields */ }
    Expand description

    The value of a TextInput.

    +

    Implementations§

    §

    impl Value

    pub fn new(string: &str) -> Value

    Creates a new Value from a string slice.

    +

    pub fn is_empty(&self) -> bool

    Returns whether the Value is empty or not.

    A Value is empty when it contains no graphemes.

    -
    source

    pub fn len(&self) -> usize

    Returns the total amount of graphemes in the Value.

    -
    source

    pub fn previous_start_of_word(&self, index: usize) -> usize

    Returns the position of the previous start of a word from the given +

    pub fn len(&self) -> usize

    Returns the total amount of graphemes in the Value.

    +

    pub fn previous_start_of_word(&self, index: usize) -> usize

    Returns the position of the previous start of a word from the given grapheme index.

    -
    source

    pub fn next_end_of_word(&self, index: usize) -> usize

    Returns the position of the next end of a word from the given grapheme +

    pub fn next_end_of_word(&self, index: usize) -> usize

    Returns the position of the next end of a word from the given grapheme index.

    -
    source

    pub fn select(&self, start: usize, end: usize) -> Value

    Returns a new Value containing the graphemes from start until the +

    pub fn select(&self, start: usize, end: usize) -> Value

    Returns a new Value containing the graphemes from start until the given end.

    -
    source

    pub fn until(&self, index: usize) -> Value

    Returns a new Value containing the graphemes until the given +

    pub fn until(&self, index: usize) -> Value

    Returns a new Value containing the graphemes until the given index.

    -
    source

    pub fn to_string(&self) -> String

    Converts the Value into a String.

    -
    source

    pub fn insert(&mut self, index: usize, c: char)

    Inserts a new char at the given grapheme index.

    -
    source

    pub fn insert_many(&mut self, index: usize, value: Value)

    Inserts a bunch of graphemes at the given grapheme index.

    -
    source

    pub fn remove(&mut self, index: usize)

    Removes the grapheme at the given index.

    -
    source

    pub fn remove_many(&mut self, start: usize, end: usize)

    Removes the graphemes from start to end.

    -
    source

    pub fn secure(&self) -> Value

    Returns a new Value with all its graphemes replaced with the +

    pub fn to_string(&self) -> String

    Converts the Value into a String.

    +

    pub fn insert(&mut self, index: usize, c: char)

    Inserts a new char at the given grapheme index.

    +

    pub fn insert_many(&mut self, index: usize, value: Value)

    Inserts a bunch of graphemes at the given grapheme index.

    +

    pub fn remove(&mut self, index: usize)

    Removes the grapheme at the given index.

    +

    pub fn remove_many(&mut self, start: usize, end: usize)

    Removes the graphemes from start to end.

    +

    pub fn secure(&self) -> Value

    Returns a new Value with all its graphemes replaced with the dot (‘•’) character.

    -

    Trait Implementations§

    source§

    impl Clone for Value

    source§

    fn clone(&self) -> Value

    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 Value

    source§

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Value

    §

    impl Send for Value

    §

    impl Sync for Value

    §

    impl Unpin for Value

    §

    impl UnwindSafe for Value

    Blanket Implementations§

    source§

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

    Trait Implementations§

    §

    impl Clone for Value

    §

    fn clone(&self) -> Value

    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 Value

    §

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

    Formats the value using the given formatter. Read more

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Value

    §

    impl Send for Value

    §

    impl Sync for Value

    §

    impl Unpin for Value

    §

    impl UnwindSafe for Value

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/toggler/index.html b/iced/widget/toggler/index.html index 38dbaead693..c2ce7dd45fd 100644 --- a/iced/widget/toggler/index.html +++ b/iced/widget/toggler/index.html @@ -1,2 +1,2 @@ -iced::widget::toggler - Rust

    Module iced::widget::toggler

    source ·
    Expand description

    Show toggle controls using togglers.

    +iced::widget::toggler - Rust

    Module iced::widget::toggler

    Expand description

    Show toggle controls using togglers.

    Structs

    Traits

    • A set of rules that dictate the style of a toggler.
    \ No newline at end of file diff --git a/iced/widget/toggler/struct.Toggler.html b/iced/widget/toggler/struct.Toggler.html index a998995016b..96e9ca34c71 100644 --- a/iced/widget/toggler/struct.Toggler.html +++ b/iced/widget/toggler/struct.Toggler.html @@ -1,4 +1,4 @@ -Toggler in iced::widget::toggler - Rust
    -

    Implementations§

    source§

    impl<'a, Message, Renderer> Toggler<'a, Message, Renderer>where +

    Implementations§

    §

    impl<'a, Message, Renderer> Toggler<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub const DEFAULT_SIZE: f32 = 20f32

    The default size of a Toggler.

    -
    source

    pub fn new<F>( + <Renderer as Renderer>::Theme: StyleSheet,

    pub const DEFAULT_SIZE: f32 = 20f32

    The default size of a Toggler.

    +

    pub fn new<F>( label: impl Into<Option<String>>, is_toggled: bool, f: F @@ -26,36 +26,36 @@

    Example

    will receive the new state of the Toggler and must produce a Message. -
    source

    pub fn size(self, size: impl Into<Pixels>) -> Toggler<'a, Message, Renderer>

    Sets the size of the Toggler.

    -
    source

    pub fn width(self, width: impl Into<Length>) -> Toggler<'a, Message, Renderer>

    Sets the width of the Toggler.

    -
    source

    pub fn text_size( +

    pub fn size(self, size: impl Into<Pixels>) -> Toggler<'a, Message, Renderer>

    Sets the size of the Toggler.

    +

    pub fn width(self, width: impl Into<Length>) -> Toggler<'a, Message, Renderer>

    Sets the width of the Toggler.

    +

    pub fn text_size( self, text_size: impl Into<Pixels> ) -> Toggler<'a, Message, Renderer>

    Sets the text size o the Toggler.

    -
    source

    pub fn text_line_height( +

    pub fn text_line_height( self, line_height: impl Into<LineHeight> ) -> Toggler<'a, Message, Renderer>

    Sets the text [LineHeight] of the Toggler.

    -
    source

    pub fn text_alignment( +

    pub fn text_alignment( self, alignment: Horizontal ) -> Toggler<'a, Message, Renderer>

    Sets the horizontal alignment of the text of the Toggler

    -
    source

    pub fn text_shaping(self, shaping: Shaping) -> Toggler<'a, Message, Renderer>

    Sets the text::Shaping strategy of the Toggler.

    -
    source

    pub fn spacing( +

    pub fn text_shaping(self, shaping: Shaping) -> Toggler<'a, Message, Renderer>

    Sets the text::Shaping strategy of the Toggler.

    +

    pub fn spacing( self, spacing: impl Into<Pixels> ) -> Toggler<'a, Message, Renderer>

    Sets the spacing between the Toggler and the text.

    -
    source

    pub fn font( +

    pub fn font( self, font: impl Into<<Renderer as Renderer>::Font> ) -> Toggler<'a, Message, Renderer>

    Sets the Font of the text of the Toggler

    -
    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Toggler<'a, Message, Renderer>

    Sets the style of the Toggler.

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Toggler<'a, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Toggler<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn on_event( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn on_event( &mut self, _state: &mut Tree, event: Event, @@ -65,14 +65,14 @@

    Example

    _clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status
    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, _state: &Tree, layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32>, _renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, _state: &Tree, renderer: &mut Renderer, diff --git a/iced/widget/tooltip/enum.Position.html b/iced/widget/tooltip/enum.Position.html index d5665c687ae..6c6fc61e218 100644 --- a/iced/widget/tooltip/enum.Position.html +++ b/iced/widget/tooltip/enum.Position.html @@ -1,4 +1,4 @@ -Position in iced::widget::tooltip - Rust

    Trait Implementations§

    source§

    impl Clone for Position

    source§

    fn clone(&self) -> Position

    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 Position

    source§

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

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

    impl PartialEq<Position> for Position

    source§

    fn eq(&self, other: &Position) -> bool

    This method tests for self and other values to be equal, and is used +

    Trait Implementations§

    §

    impl Clone for Position

    §

    fn clone(&self) -> Position

    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 Position

    §

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

    Formats the value using the given formatter. Read more
    §

    impl PartialEq<Position> for Position

    §

    fn eq(&self, other: &Position) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0 · source§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl Copy for Position

    source§

    impl Eq for Position

    source§

    impl StructuralEq for Position

    source§

    impl StructuralPartialEq for Position

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere +sufficient, and should not be overridden without very good reason.

    §

    impl Copy for Position

    §

    impl Eq for Position

    §

    impl StructuralEq for Position

    §

    impl StructuralPartialEq for Position

    Auto Trait Implementations§

    Blanket Implementations§

    source§

    impl<S, D, Swp, Dwp, T> AdaptInto<D, Swp, Dwp, T> for Swhere T: Real + Zero + Arithmetics + Clone, Swp: WhitePoint<T>, Dwp: WhitePoint<T>, diff --git a/iced/widget/tooltip/index.html b/iced/widget/tooltip/index.html index b753d4e8d57..99f7704e909 100644 --- a/iced/widget/tooltip/index.html +++ b/iced/widget/tooltip/index.html @@ -1,2 +1,2 @@ -iced::widget::tooltip - Rust

    Module iced::widget::tooltip

    source ·
    Expand description

    Display a widget over another.

    +iced::widget::tooltip - Rust

    Module iced::widget::tooltip

    Expand description

    Display a widget over another.

    Structs

    • An element to display a widget over another.

    Enums

    • The position of the tooltip. Defaults to following the cursor.
    \ No newline at end of file diff --git a/iced/widget/tooltip/struct.Tooltip.html b/iced/widget/tooltip/struct.Tooltip.html index ead92afe619..1421b5129d8 100644 --- a/iced/widget/tooltip/struct.Tooltip.html +++ b/iced/widget/tooltip/struct.Tooltip.html @@ -1,31 +1,31 @@ -Tooltip in iced::widget::tooltip - Rust

    Struct iced::widget::tooltip::Tooltip

    source ·
    pub struct Tooltip<'a, Message, Renderer = Renderer<Theme>>where
    +Tooltip in iced::widget::tooltip - Rust

    Struct iced::widget::tooltip::Tooltip

    pub struct Tooltip<'a, Message, Renderer = Renderer<Theme>>where
         Renderer: Renderer,
         <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,{ /* private fields */ }
    Expand description

    An element to display a widget over another.

    -

    Implementations§

    source§

    impl<'a, Message, Renderer> Tooltip<'a, Message, Renderer>where +

    Implementations§

    §

    impl<'a, Message, Renderer> Tooltip<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    source

    pub fn new( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    pub fn new( content: impl Into<Element<'a, Message, Renderer>>, tooltip: impl Into<Cow<'a, str>>, position: Position ) -> Tooltip<'a, Message, Renderer>

    Creates a new Tooltip.

    -
    source

    pub fn size(self, size: impl Into<Pixels>) -> Tooltip<'a, Message, Renderer>

    Sets the size of the text of the Tooltip.

    -
    source

    pub fn font( +

    pub fn size(self, size: impl Into<Pixels>) -> Tooltip<'a, Message, Renderer>

    Sets the size of the text of the Tooltip.

    +

    pub fn font( self, font: impl Into<<Renderer as Renderer>::Font> ) -> Tooltip<'a, Message, Renderer>

    Sets the font of the Tooltip.

    -
    source

    pub fn gap(self, gap: impl Into<Pixels>) -> Tooltip<'a, Message, Renderer>

    Sets the gap between the content and its Tooltip.

    -
    source

    pub fn padding( +

    pub fn gap(self, gap: impl Into<Pixels>) -> Tooltip<'a, Message, Renderer>

    Sets the gap between the content and its Tooltip.

    +

    pub fn padding( self, padding: impl Into<Pixels> ) -> Tooltip<'a, Message, Renderer>

    Sets the padding of the Tooltip.

    -
    source

    pub fn snap_within_viewport(self, snap: bool) -> Tooltip<'a, Message, Renderer>

    Sets whether the Tooltip is snapped within the viewport.

    -
    source

    pub fn style( +

    pub fn snap_within_viewport(self, snap: bool) -> Tooltip<'a, Message, Renderer>

    Sets whether the Tooltip is snapped within the viewport.

    +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> Tooltip<'a, Message, Renderer>

    Sets the style of the Tooltip.

    -

    Trait Implementations§

    source§

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Tooltip<'a, Message, Renderer>where +

    Trait Implementations§

    §

    impl<'a, Message, Renderer> Widget<Message, Renderer> for Tooltip<'a, Message, Renderer>where Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    source§

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    source§

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn on_event( + <Renderer as Renderer>::Theme: StyleSheet + StyleSheet,

    §

    fn children(&self) -> Vec<Tree, Global>

    Returns the state Tree of the children of the Widget.
    §

    fn diff(&self, tree: &mut Tree)

    Reconciliates the Widget with the provided Tree.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -35,14 +35,14 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle<f32> -) -> Status

    Processes a runtime Event. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime Event. Read more
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32>, renderer: &Renderer -) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current mouse::Interaction of the Widget. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -51,7 +51,7 @@ layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle<f32> -)

    Draws the Widget using the associated Renderer.
    source§

    fn overlay<'b>( +)

    Draws the Widget using the associated Renderer.
    §

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/iced/widget/trait.Component.html b/iced/widget/trait.Component.html index 4f8bc9c3bb0..c6b042b3226 100644 --- a/iced/widget/trait.Component.html +++ b/iced/widget/trait.Component.html @@ -1,4 +1,4 @@ -Component in iced::widget - Rust

    Trait iced::widget::Component

    source ·
    pub trait Component<Message, Renderer> {
    +Component in iced::widget - Rust

    Trait iced::widget::Component

    pub trait Component<Message, Renderer> {
         type State: Default;
         type Event;
     
    @@ -25,17 +25,17 @@
     and update the internal state of the Component.

    Additionally, a Component is capable of producing a Message to notify the parent application of any relevant interactions.

    -

    Required Associated Types§

    source

    type State: Default

    The internal state of this Component.

    -
    source

    type Event

    The type of event this Component handles internally.

    -

    Required Methods§

    Required Associated Types§

    type State: Default

    The internal state of this Component.

    +

    type Event

    The type of event this Component handles internally.

    +

    Required Methods§

    fn update( &mut self, state: &mut Self::State, event: Self::Event ) -> Option<Message>

    Processes an Event and updates the Component state accordingly.

    It can produce a Message for the parent application.

    -
    source

    fn view(&self, state: &Self::State) -> Element<'_, Self::Event, Renderer>

    Produces the widgets of the Component, which may trigger an Event +

    fn view(&self, state: &Self::State) -> Element<'_, Self::Event, Renderer>

    Produces the widgets of the Component, which may trigger an Event on user interaction.

    -

    Provided Methods§

    Provided Methods§

    fn operate( &self, _state: &mut Self::State, _operation: &mut dyn Operation<Message> diff --git a/iced/widget/type.Text.html b/iced/widget/type.Text.html index 224b2f3219a..6c460930a84 100644 --- a/iced/widget/type.Text.html +++ b/iced/widget/type.Text.html @@ -1,2 +1,2 @@ -Text in iced::widget - Rust

    Type Definition iced::widget::Text

    source ·
    pub type Text<'a, Renderer = Renderer<Theme>> = Text<'a, Renderer>;
    Expand description

    A paragraph.

    +Text in iced::widget - Rust

    Type Definition iced::widget::Text

    pub type Text<'a, Renderer = Renderer<Theme>> = Text<'a, Renderer>;
    Expand description

    A paragraph.

    \ No newline at end of file diff --git a/iced/widget/vertical_slider/fn.draw.html b/iced/widget/vertical_slider/fn.draw.html index aefaea20e07..f0d54b51042 100644 --- a/iced/widget/vertical_slider/fn.draw.html +++ b/iced/widget/vertical_slider/fn.draw.html @@ -1,4 +1,4 @@ -draw in iced::widget::vertical_slider - Rust

    Function iced::widget::vertical_slider::draw

    source ·
    pub fn draw<T, R>(
    +draw in iced::widget::vertical_slider - Rust

    Function iced::widget::vertical_slider::draw

    pub fn draw<T, R>(
         renderer: &mut R,
         layout: Layout<'_>,
         cursor: Cursor,
    diff --git a/iced/widget/vertical_slider/fn.mouse_interaction.html b/iced/widget/vertical_slider/fn.mouse_interaction.html
    index 0be4eca6ac6..028ee602930 100644
    --- a/iced/widget/vertical_slider/fn.mouse_interaction.html
    +++ b/iced/widget/vertical_slider/fn.mouse_interaction.html
    @@ -1,4 +1,4 @@
    -mouse_interaction in iced::widget::vertical_slider - Rust
    pub fn mouse_interaction(
    +mouse_interaction in iced::widget::vertical_slider - Rust
    pub fn mouse_interaction(
         layout: Layout<'_>,
         cursor: Cursor,
         state: &State
    diff --git a/iced/widget/vertical_slider/fn.update.html b/iced/widget/vertical_slider/fn.update.html
    index 351097fcb3c..b51171e8eec 100644
    --- a/iced/widget/vertical_slider/fn.update.html
    +++ b/iced/widget/vertical_slider/fn.update.html
    @@ -1,4 +1,4 @@
    -update in iced::widget::vertical_slider - Rust
    pub fn update<Message, T>(
    +update in iced::widget::vertical_slider - Rust
    pub fn update<Message, T>(
         event: Event,
         layout: Layout<'_>,
         cursor: Cursor,
    diff --git a/iced/widget/vertical_slider/index.html b/iced/widget/vertical_slider/index.html
    index ce9acde499a..ba36dc6e4ba 100644
    --- a/iced/widget/vertical_slider/index.html
    +++ b/iced/widget/vertical_slider/index.html
    @@ -1,4 +1,4 @@
    -iced::widget::vertical_slider - Rust
    Expand description

    Display an interactive selector of a single value from a range of values.

    +iced::widget::vertical_slider - Rust
    Expand description

    Display an interactive selector of a single value from a range of values.

    A VerticalSlider has some local State.

    Structs

    Enums

    Traits

    • A set of rules that dictate the style of a slider.

    Functions

    Implementations§

    source§

    impl<'a, T, Message, Renderer> VerticalSlider<'a, T, Message, Renderer>where +

    Implementations§

    §

    impl<'a, T, Message, Renderer> VerticalSlider<'a, T, Message, Renderer>where T: Copy + From<u8> + PartialOrd<T>, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source

    pub const DEFAULT_WIDTH: f32 = 22f32

    The default width of a VerticalSlider.

    -
    source

    pub fn new<F>( + <Renderer as Renderer>::Theme: StyleSheet,

    pub const DEFAULT_WIDTH: f32 = 22f32

    The default width of a VerticalSlider.

    +

    pub fn new<F>( range: RangeInclusive<T>, value: T, on_change: F @@ -33,7 +33,7 @@

    Example

    It receives the new value of the VerticalSlider and must produce a Message. -

    source

    pub fn on_release( +

    pub fn on_release( self, on_release: Message ) -> VerticalSlider<'a, T, Message, Renderer>

    Sets the release message of the VerticalSlider. @@ -41,24 +41,24 @@

    Example

    Typically, the user’s interaction with the slider is finished when this message is produced. This is useful if you need to spawn a long-running task from the slider’s result, where the default on_change message could create too many events.

    -
    source

    pub fn width( +

    pub fn width( self, width: impl Into<Pixels> ) -> VerticalSlider<'a, T, Message, Renderer>

    Sets the width of the VerticalSlider.

    -
    source

    pub fn height( +

    pub fn height( self, height: impl Into<Length> ) -> VerticalSlider<'a, T, Message, Renderer>

    Sets the height of the VerticalSlider.

    -
    source

    pub fn style( +

    pub fn style( self, style: impl Into<<<Renderer as Renderer>::Theme as StyleSheet>::Style> ) -> VerticalSlider<'a, T, Message, Renderer>

    Sets the style of the VerticalSlider.

    -
    source

    pub fn step(self, step: T) -> VerticalSlider<'a, T, Message, Renderer>

    Sets the step size of the VerticalSlider.

    -

    Trait Implementations§

    source§

    impl<'a, T, Message, Renderer> Widget<Message, Renderer> for VerticalSlider<'a, T, Message, Renderer>where +

    pub fn step(self, step: T) -> VerticalSlider<'a, T, Message, Renderer>

    Sets the step size of the VerticalSlider.

    +

    Trait Implementations§

    §

    impl<'a, T, Message, Renderer> Widget<Message, Renderer> for VerticalSlider<'a, T, Message, Renderer>where T: Copy + Into<f64> + FromPrimitive, Message: Clone, Renderer: Renderer, - <Renderer as Renderer>::Theme: StyleSheet,

    source§

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    source§

    fn state(&self) -> State

    Returns the State of the Widget.
    source§

    fn width(&self) -> Length

    Returns the width of the Widget.
    source§

    fn height(&self) -> Length

    Returns the height of the Widget.
    source§

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    source§

    fn on_event( + <Renderer as Renderer>::Theme: StyleSheet,

    §

    fn tag(&self) -> Tag

    Returns the Tag of the Widget.
    §

    fn state(&self) -> State

    Returns the State of the Widget.
    §

    fn width(&self) -> Length

    Returns the width of the Widget.
    §

    fn height(&self) -> Length

    Returns the height of the Widget.
    §

    fn layout(&self, _renderer: &Renderer, limits: &Limits) -> Node

    Returns the layout::Node of the Widget. Read more
    §

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -68,7 +68,7 @@

    Example

    _clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, _viewport: &Rectangle<f32> -) -> Status
    Processes a runtime Event. Read more
    source§

    fn draw( +) -> Status

    Processes a runtime Event. Read more
    §

    fn draw( &self, tree: &Tree, renderer: &mut Renderer, @@ -77,7 +77,7 @@

    Example

    layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle<f32> -)
    Draws the Widget using the associated Renderer.
    source§

    fn mouse_interaction( +)

    Draws the Widget using the associated Renderer.
    §

    fn mouse_interaction( &self, tree: &Tree, layout: Layout<'_>, diff --git a/iced_widget/combo_box/fn.build_matchers.html b/iced_widget/combo_box/fn.build_matchers.html index 4ea3340d025..12f7f6aef92 100644 --- a/iced_widget/combo_box/fn.build_matchers.html +++ b/iced_widget/combo_box/fn.build_matchers.html @@ -1,4 +1,4 @@ -build_matchers in iced_widget::combo_box - Rust
    pub fn build_matchers<'a, T>(
    +build_matchers in iced_widget::combo_box - Rust
    pub fn build_matchers<'a, T>(
         options: impl IntoIterator<Item = T> + 'a
     ) -> Vec<String>where
         T: Display + 'a,
    Expand description

    Build matchers from given list of options.

    diff --git a/iced_widget/combo_box/fn.search.html b/iced_widget/combo_box/fn.search.html index 43cba4eacf4..fa4f1a5d632 100644 --- a/iced_widget/combo_box/fn.search.html +++ b/iced_widget/combo_box/fn.search.html @@ -1,4 +1,4 @@ -search in iced_widget::combo_box - Rust

    Function iced_widget::combo_box::search

    source ·
    pub fn search<'a, T, A>(
    +search in iced_widget::combo_box - Rust

    Function iced_widget::combo_box::search

    source ·
    pub fn search<'a, T, A>(
         options: impl IntoIterator<Item = T> + 'a,
         option_matchers: impl IntoIterator<Item = &'a A> + 'a,
         query: &'a str
    diff --git a/iced_widget/combo_box/index.html b/iced_widget/combo_box/index.html
    index c0716c5edc9..cd2b6990a41 100644
    --- a/iced_widget/combo_box/index.html
    +++ b/iced_widget/combo_box/index.html
    @@ -1,2 +1,2 @@
    -iced_widget::combo_box - Rust

    Module iced_widget::combo_box

    source ·
    Expand description

    Display a dropdown list of searchable and selectable options.

    +iced_widget::combo_box - Rust

    Module iced_widget::combo_box

    source ·
    Expand description

    Display a dropdown list of searchable and selectable options.

    Structs

    • A widget for searching and selecting a single value from a list of options.
    • The local state of a ComboBox.

    Functions

    • Build matchers from given list of options.
    • Search list of options for a given query.
    \ No newline at end of file diff --git a/iced_widget/combo_box/struct.ComboBox.html b/iced_widget/combo_box/struct.ComboBox.html index fac210793cc..9c4c4fa2697 100644 --- a/iced_widget/combo_box/struct.ComboBox.html +++ b/iced_widget/combo_box/struct.ComboBox.html @@ -35,15 +35,15 @@
    source

    pub fn size(self, size: f32) -> Self

    Sets the text sixe of the ComboBox.

    source

    pub fn line_height(self, line_height: impl Into<LineHeight>) -> Self

    Sets the LineHeight of the ComboBox.

    source

    pub fn width(self, width: impl Into<Length>) -> Self

    Sets the width of the ComboBox.

    -

    Trait Implementations§

    source§

    impl<'a, T, Message, Renderer> From<ComboBox<'a, T, Message, Renderer>> for Element<'a, Message, Renderer>where +

    Trait Implementations§

    source§

    impl<'a, T, Message, Renderer> From<ComboBox<'a, T, Message, Renderer>> for Element<'a, Message, Renderer>where T: Display + Clone + 'static, Message: 'a + Clone, Renderer: Renderer + 'a, - Renderer::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet,

    source§

    fn from(combo_box: ComboBox<'a, T, Message, Renderer>) -> Self

    Converts to this type from the input type.
    source§

    impl<'a, T, Message, Renderer> Widget<Message, Renderer> for ComboBox<'a, T, Message, Renderer>where + Renderer::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet,

    source§

    fn from(combo_box: ComboBox<'a, T, Message, Renderer>) -> Self

    Converts to this type from the input type.
    source§

    impl<'a, T, Message, Renderer> Widget<Message, Renderer> for ComboBox<'a, T, Message, Renderer>where T: Display + Clone + 'static, Message: Clone, Renderer: Renderer, - Renderer::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet,

    source§

    fn width(&self) -> Length

    Returns the width of the [Widget].
    source§

    fn height(&self) -> Length

    Returns the height of the [Widget].
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the [layout::Node] of the [Widget]. Read more
    source§

    fn tag(&self) -> Tag

    Returns the Tag of the [Widget].
    source§

    fn state(&self) -> State

    Returns the State of the [Widget].
    source§

    fn on_event( + Renderer::Theme: StyleSheet + StyleSheet + StyleSheet + StyleSheet,

    source§

    fn width(&self) -> Length

    Returns the width of the [Widget].
    source§

    fn height(&self) -> Length

    Returns the height of the [Widget].
    source§

    fn layout(&self, renderer: &Renderer, limits: &Limits) -> Node

    Returns the [layout::Node] of the [Widget]. Read more
    source§

    fn tag(&self) -> Tag

    Returns the Tag of the [Widget].
    source§

    fn state(&self) -> State

    Returns the State of the [Widget].
    source§

    fn on_event( &mut self, tree: &mut Tree, event: Event, @@ -53,14 +53,14 @@ clipboard: &mut dyn Clipboard, shell: &mut Shell<'_, Message>, viewport: &Rectangle -) -> Status

    Processes a runtime [Event]. Read more
    source§

    fn mouse_interaction( +) -> Status

    Processes a runtime [Event]. Read more
    source§

    fn mouse_interaction( &self, _tree: &Tree, layout: Layout<'_>, cursor: Cursor, viewport: &Rectangle, renderer: &Renderer -) -> Interaction

    Returns the current [mouse::Interaction] of the [Widget]. Read more
    source§

    fn draw( +) -> Interaction

    Returns the current [mouse::Interaction] of the [Widget]. Read more
    source§

    fn draw( &self, _tree: &Tree, renderer: &mut Renderer, @@ -69,7 +69,7 @@ layout: Layout<'_>, cursor: Cursor, _viewport: &Rectangle -)

    Draws the [Widget] using the associated Renderer.
    source§

    fn overlay<'b>( +)

    Draws the [Widget] using the associated Renderer.
    source§

    fn overlay<'b>( &'b mut self, tree: &'b mut Tree, layout: Layout<'_>, diff --git a/src/iced_widget/combo_box.rs.html b/src/iced_widget/combo_box.rs.html index 288343b9d1a..1162f610476 100644 --- a/src/iced_widget/combo_box.rs.html +++ b/src/iced_widget/combo_box.rs.html @@ -737,6 +737,31 @@ 737 738 739 +740 +741 +742 +743 +744 +745 +746 +747 +748 +749 +750 +751 +752 +753 +754 +755 +756 +757 +758 +759 +760 +761 +762 +763 +764

    //! Display a dropdown list of searchable and selectable options.
     use crate::core::event::{self, Event};
     use crate::core::keyboard;
    @@ -1207,11 +1232,13 @@
     
                     if let Event::Keyboard(keyboard::Event::KeyPressed {
                         key_code,
    +                    modifiers,
                         ..
                     }) = event
                     {
    -                    match key_code {
    -                        keyboard::KeyCode::Enter => {
    +                    let shift_modifer = modifiers.shift();
    +                    match (key_code, shift_modifer) {
    +                        (keyboard::KeyCode::Enter, _) => {
                                 if let Some(index) = &menu.hovered_option {
                                     if let Some(option) =
                                         state.filtered_options.options.get(*index)
    @@ -1222,9 +1249,19 @@
     
                                 event_status = event::Status::Captured;
                             }
    -                        keyboard::KeyCode::Up => {
    +
    +                        (keyboard::KeyCode::Up, _)
    +                        | (keyboard::KeyCode::Tab, true) => {
                                 if let Some(index) = &mut menu.hovered_option {
    -                                *index = index.saturating_sub(1);
    +                                if *index == 0 {
    +                                    *index = state
    +                                        .filtered_options
    +                                        .options
    +                                        .len()
    +                                        .saturating_sub(1);
    +                                } else {
    +                                    *index = index.saturating_sub(1);
    +                                }
                                 } else {
                                     menu.hovered_option = Some(0);
                                 }
    @@ -1250,15 +1287,28 @@
     
                                 event_status = event::Status::Captured;
                             }
    -                        keyboard::KeyCode::Down => {
    +                        (keyboard::KeyCode::Down, _)
    +                        | (keyboard::KeyCode::Tab, false)
    +                            if !modifiers.shift() =>
    +                        {
                                 if let Some(index) = &mut menu.hovered_option {
    -                                *index = index.saturating_add(1).min(
    -                                    state
    +                                if *index
    +                                    >= state
                                             .filtered_options
                                             .options
                                             .len()
    -                                        .saturating_sub(1),
    -                                );
    +                                        .saturating_sub(1)
    +                                {
    +                                    *index = 0;
    +                                } else {
    +                                    *index = index.saturating_add(1).min(
    +                                        state
    +                                            .filtered_options
    +                                            .options
    +                                            .len()
    +                                            .saturating_sub(1),
    +                                    );
    +                                }
                                 } else {
                                     menu.hovered_option = Some(0);
                                 }