From e513b2eb968b5b1bff2d233699f7c0537efc4aac Mon Sep 17 00:00:00 2001 From: hecrj Date: Wed, 26 Jul 2023 20:56:08 +0000 Subject: [PATCH] deploy: iced-rs/iced@e29754f32d03efc4b075e9b63cc554d128bc2ccf --- iced/advanced/trait.Widget.html | 50 +++++++++---------- .../operation/focusable/trait.Focusable.html | 2 +- .../scrollable/trait.Scrollable.html | 2 +- .../operation/text_input/trait.TextInput.html | 2 +- .../widget/operation/trait.Focusable.html | 2 +- .../widget/operation/trait.Scrollable.html | 2 +- .../widget/operation/trait.TextInput.html | 2 +- iced/advanced/widget/struct.Id.html | 2 +- iced/advanced/widget/trait.Widget.html | 50 +++++++++---------- iced/overlay/menu/index.html | 2 +- iced/overlay/menu/struct.Menu.html | 22 ++++---- iced/overlay/menu/struct.State.html | 6 +-- iced/widget/button/fn.draw.html | 2 +- iced/widget/button/fn.layout.html | 2 +- iced/widget/button/fn.mouse_interaction.html | 2 +- iced/widget/button/fn.update.html | 2 +- iced/widget/button/index.html | 2 +- iced/widget/button/struct.Button.html | 30 +++++------ iced/widget/button/struct.State.html | 8 +-- iced/widget/canvas/enum.Event.html | 6 +-- iced/widget/canvas/event/enum.Event.html | 6 +-- iced/widget/canvas/event/index.html | 2 +- iced/widget/canvas/index.html | 2 +- iced/widget/canvas/struct.Canvas.html | 20 ++++---- iced/widget/canvas/trait.Program.html | 18 +++---- iced/widget/checkbox/index.html | 2 +- iced/widget/checkbox/struct.Checkbox.html | 32 ++++++------ iced/widget/checkbox/struct.Icon.html | 12 ++--- iced/widget/combo_box/fn.build_matchers.html | 2 +- iced/widget/combo_box/fn.search.html | 2 +- iced/widget/combo_box/index.html | 2 +- iced/widget/combo_box/struct.ComboBox.html | 42 ++++++++-------- iced/widget/combo_box/struct.State.html | 22 ++++---- iced/widget/container/fn.draw_background.html | 2 +- iced/widget/container/fn.layout.html | 2 +- iced/widget/container/index.html | 2 +- iced/widget/container/struct.Container.html | 40 +++++++-------- iced/widget/container/struct.Id.html | 12 ++--- iced/widget/fn.button.html | 2 +- iced/widget/fn.canvas.html | 2 +- iced/widget/fn.checkbox.html | 2 +- iced/widget/fn.column.html | 2 +- iced/widget/fn.combo_box.html | 2 +- iced/widget/fn.component.html | 2 +- iced/widget/fn.container.html | 2 +- iced/widget/fn.focus_next.html | 2 +- iced/widget/fn.focus_previous.html | 2 +- iced/widget/fn.horizontal_rule.html | 2 +- iced/widget/fn.horizontal_space.html | 2 +- iced/widget/fn.image.html | 2 +- iced/widget/fn.lazy.html | 2 +- iced/widget/fn.mouse_area.html | 2 +- iced/widget/fn.pick_list.html | 2 +- iced/widget/fn.progress_bar.html | 2 +- iced/widget/fn.radio.html | 2 +- iced/widget/fn.responsive.html | 2 +- iced/widget/fn.row.html | 2 +- iced/widget/fn.scrollable.html | 2 +- iced/widget/fn.slider.html | 2 +- iced/widget/fn.svg.html | 2 +- iced/widget/fn.text.html | 2 +- iced/widget/fn.text_input.html | 2 +- iced/widget/fn.toggler.html | 2 +- iced/widget/fn.tooltip.html | 2 +- iced/widget/fn.vertical_rule.html | 2 +- iced/widget/fn.vertical_slider.html | 2 +- iced/widget/fn.vertical_space.html | 2 +- iced/widget/image/fn.draw.html | 2 +- iced/widget/image/fn.layout.html | 2 +- iced/widget/image/fn.viewer.html | 2 +- iced/widget/image/index.html | 2 +- iced/widget/image/struct.Image.html | 16 +++--- iced/widget/image/struct.Viewer.html | 24 ++++----- iced/widget/image/viewer/fn.image_size.html | 2 +- iced/widget/image/viewer/index.html | 2 +- iced/widget/image/viewer/struct.State.html | 8 +-- iced/widget/image/viewer/struct.Viewer.html | 24 ++++----- iced/widget/macro.column.html | 2 +- iced/widget/macro.row.html | 2 +- iced/widget/overlay/index.html | 2 +- iced/widget/overlay/menu/index.html | 2 +- iced/widget/overlay/menu/struct.Menu.html | 22 ++++---- iced/widget/overlay/menu/struct.State.html | 6 +-- iced/widget/pane_grid/enum.Axis.html | 12 ++--- iced/widget/pane_grid/enum.Configuration.html | 8 +-- iced/widget/pane_grid/enum.Contents.html | 10 ++-- iced/widget/pane_grid/enum.Direction.html | 6 +-- iced/widget/pane_grid/enum.DragEvent.html | 4 +- iced/widget/pane_grid/enum.Edge.html | 4 +- iced/widget/pane_grid/enum.Node.html | 10 ++-- iced/widget/pane_grid/enum.Region.html | 4 +- iced/widget/pane_grid/enum.Target.html | 4 +- iced/widget/pane_grid/fn.draw.html | 2 +- iced/widget/pane_grid/fn.layout.html | 2 +- .../pane_grid/fn.mouse_interaction.html | 2 +- iced/widget/pane_grid/fn.update.html | 2 +- iced/widget/pane_grid/index.html | 2 +- iced/widget/pane_grid/state/enum.Action.html | 10 ++-- iced/widget/pane_grid/state/index.html | 2 +- .../pane_grid/state/struct.Internal.html | 8 +-- iced/widget/pane_grid/state/struct.State.html | 48 +++++++++--------- iced/widget/pane_grid/struct.Content.html | 22 ++++---- iced/widget/pane_grid/struct.Pane.html | 12 ++--- iced/widget/pane_grid/struct.PaneGrid.html | 32 ++++++------ iced/widget/pane_grid/struct.ResizeEvent.html | 4 +- iced/widget/pane_grid/struct.Split.html | 12 ++--- iced/widget/pane_grid/struct.State.html | 48 +++++++++--------- iced/widget/pane_grid/struct.TitleBar.html | 20 ++++---- iced/widget/pane_grid/trait.Draggable.html | 6 +-- iced/widget/pick_list/enum.Handle.html | 12 ++--- iced/widget/pick_list/fn.draw.html | 2 +- iced/widget/pick_list/fn.layout.html | 2 +- .../pick_list/fn.mouse_interaction.html | 2 +- iced/widget/pick_list/fn.overlay.html | 2 +- iced/widget/pick_list/fn.update.html | 2 +- iced/widget/pick_list/index.html | 2 +- iced/widget/pick_list/struct.Icon.html | 12 ++--- iced/widget/pick_list/struct.PickList.html | 36 ++++++------- iced/widget/pick_list/struct.State.html | 6 +-- iced/widget/progress_bar/index.html | 2 +- .../progress_bar/struct.ProgressBar.html | 18 +++---- iced/widget/qr_code/enum.Error.html | 6 +-- iced/widget/qr_code/enum.ErrorCorrection.html | 6 +-- iced/widget/qr_code/enum.Version.html | 6 +-- iced/widget/qr_code/index.html | 2 +- iced/widget/qr_code/struct.QRCode.html | 10 ++-- iced/widget/qr_code/struct.State.html | 10 ++-- iced/widget/radio/index.html | 2 +- iced/widget/radio/struct.Radio.html | 34 ++++++------- iced/widget/rule/index.html | 2 +- iced/widget/rule/struct.Rule.html | 14 +++--- iced/widget/scrollable/enum.Alignment.html | 6 +-- iced/widget/scrollable/enum.Direction.html | 10 ++-- iced/widget/scrollable/fn.draw.html | 2 +- iced/widget/scrollable/fn.layout.html | 2 +- .../scrollable/fn.mouse_interaction.html | 2 +- iced/widget/scrollable/fn.scroll_to.html | 2 +- iced/widget/scrollable/fn.snap_to.html | 2 +- iced/widget/scrollable/fn.update.html | 2 +- iced/widget/scrollable/index.html | 2 +- iced/widget/scrollable/struct.Id.html | 12 ++--- iced/widget/scrollable/struct.Properties.html | 16 +++--- iced/widget/scrollable/struct.Scrollable.html | 30 +++++------ iced/widget/scrollable/struct.State.html | 20 ++++---- iced/widget/scrollable/struct.Viewport.html | 10 ++-- iced/widget/slider/fn.draw.html | 2 +- iced/widget/slider/fn.mouse_interaction.html | 2 +- iced/widget/slider/fn.update.html | 2 +- iced/widget/slider/index.html | 2 +- iced/widget/slider/struct.Slider.html | 26 +++++----- iced/widget/slider/struct.State.html | 8 +-- iced/widget/space/index.html | 2 +- iced/widget/space/struct.Space.html | 12 ++--- iced/widget/struct.Button.html | 30 +++++------ iced/widget/struct.Canvas.html | 20 ++++---- iced/widget/struct.Checkbox.html | 32 ++++++------ iced/widget/struct.Column.html | 32 ++++++------ iced/widget/struct.ComboBox.html | 42 ++++++++-------- iced/widget/struct.Container.html | 40 +++++++-------- iced/widget/struct.Image.html | 16 +++--- iced/widget/struct.Lazy.html | 18 +++---- iced/widget/struct.MouseArea.html | 28 +++++------ iced/widget/struct.PaneGrid.html | 32 ++++++------ iced/widget/struct.PickList.html | 36 ++++++------- iced/widget/struct.ProgressBar.html | 18 +++---- iced/widget/struct.QRCode.html | 10 ++-- iced/widget/struct.Radio.html | 34 ++++++------- iced/widget/struct.Responsive.html | 18 +++---- iced/widget/struct.Row.html | 30 +++++------ iced/widget/struct.Rule.html | 14 +++--- iced/widget/struct.Scrollable.html | 30 +++++------ iced/widget/struct.Slider.html | 26 +++++----- iced/widget/struct.Space.html | 12 ++--- iced/widget/struct.Svg.html | 20 ++++---- iced/widget/struct.TextInput.html | 42 ++++++++-------- iced/widget/struct.Toggler.html | 34 ++++++------- iced/widget/struct.Tooltip.html | 28 +++++------ iced/widget/struct.VerticalSlider.html | 26 +++++----- iced/widget/svg/index.html | 2 +- iced/widget/svg/struct.Svg.html | 20 ++++---- iced/widget/text/index.html | 2 +- iced/widget/text/type.Text.html | 2 +- .../text_input/constant.DEFAULT_PADDING.html | 2 +- iced/widget/text_input/cursor/enum.State.html | 4 +- iced/widget/text_input/cursor/index.html | 2 +- .../text_input/cursor/struct.Cursor.html | 8 +-- iced/widget/text_input/enum.Side.html | 4 +- iced/widget/text_input/fn.draw.html | 2 +- iced/widget/text_input/fn.focus.html | 2 +- iced/widget/text_input/fn.layout.html | 2 +- .../text_input/fn.mouse_interaction.html | 2 +- iced/widget/text_input/fn.move_cursor_to.html | 2 +- .../text_input/fn.move_cursor_to_end.html | 2 +- .../text_input/fn.move_cursor_to_front.html | 2 +- iced/widget/text_input/fn.select_all.html | 2 +- iced/widget/text_input/fn.update.html | 2 +- iced/widget/text_input/index.html | 2 +- iced/widget/text_input/struct.Cursor.html | 8 +-- iced/widget/text_input/struct.Icon.html | 8 +-- iced/widget/text_input/struct.Id.html | 12 ++--- iced/widget/text_input/struct.State.html | 24 ++++----- iced/widget/text_input/struct.TextInput.html | 42 ++++++++-------- iced/widget/text_input/struct.Value.html | 30 +++++------ iced/widget/toggler/index.html | 2 +- iced/widget/toggler/struct.Toggler.html | 34 ++++++------- iced/widget/tooltip/enum.Position.html | 6 +-- iced/widget/tooltip/index.html | 2 +- iced/widget/tooltip/struct.Tooltip.html | 28 +++++------ iced/widget/trait.Component.html | 12 ++--- iced/widget/type.Text.html | 2 +- iced/widget/vertical_slider/fn.draw.html | 2 +- .../vertical_slider/fn.mouse_interaction.html | 2 +- iced/widget/vertical_slider/fn.update.html | 2 +- iced/widget/vertical_slider/index.html | 2 +- iced/widget/vertical_slider/struct.State.html | 8 +-- .../struct.VerticalSlider.html | 26 +++++----- iced_widget/combo_box/struct.ComboBox.html | 2 +- src/iced_widget/combo_box.rs.html | 12 ++--- 218 files changed, 1129 insertions(+), 1129 deletions(-) diff --git a/iced/advanced/trait.Widget.html b/iced/advanced/trait.Widget.html index e40fa4d27dd..906e13cceca 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 6cf01fd9143..79120334e23 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 adae8d73d65..15606ab27a4 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 088080ed72b..e48601017ce 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 7c84c7c89a9..e0e681c1d3c 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 a9a2d1acf40..50d10ba87e2 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 3884cafd86f..056001e7297 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 a500551cb28..13b57145b0e 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 f49f5e2cbc8..f45cc7ea8eb 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 f011c647c7f..8c740942aee 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 6fc66561353..ff4f3c3a6b7 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 faa27db1504..da3c2c93843 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 0ca8e1e1fe8..32c7ebc07fb 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 ce6babbc87f..45ee74d050b 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 e4c0a9fe9e3..a554315505f 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 1d95cc3fa54..21d3b492986 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 2706ef44618..23685972038 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 641a065f12a..86ab0ca5d25 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 d43f5115d21..e8c07e93f11 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 261aed99378..85d9af91057 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 4f632f449f8..7e2f906c268 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 aeb45a689b1..861d6b262c9 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 0883a005149..392a061159c 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 64e62bebd9e..4c7e852846b 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 2ad2565505b..5595971c0d0 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 2f83126e666..246be7af866 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 96499fa515e..55a6a1644b0 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 6e5cf76f554..40ecb92cd36 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 0e371a21f1f..35426b23718 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 81cf7fdef11..ea6b3431ff5 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 0acebcfbd22..20dfe2422d8 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 3b52e552f2f..1073472f165 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_selection: impl Fn(T) -> Message + 'static + 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 cfd0bf0077f..9ab68ead485 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 4fce3c6b033..312c0c3e26e 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 12c23bc5ba1..c24e8698a8b 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/index.html b/iced/widget/container/index.html
index 886dc56781f..8e99744b051 100644
--- a/iced/widget/container/index.html
+++ b/iced/widget/container/index.html
@@ -1,2 +1,2 @@
-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 5e8d9c712e7..2a8693792d5 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 8c6ba050f3e..ea74c2a8c84 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 1f4d8b86b31..fdcace1505e 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 05ab4be6d5a..b82f036a076 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 45bc0b89c98..1203f319e2a 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 1f7234cbee9..9ed9aad3619 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 b037ad01866..2928d5b2363 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 ffbb3074e9e..2c99ef68fc1 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 25ad42f70ab..0ee8ac97c07 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 785d3b0db13..302eb46cc19 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 52fdf679fb7..d1700c25442 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 a49c32b05fd..cb7e6f1e6c3 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 fc7d9456873..c615418e017 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 8363c18424a..8e74348fbd3 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 8ccb2a367d5..479c33e0ba7 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 6bb4463fffa..44ca3e5d8d1 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 b8b21a6ed10..f702d1a8930 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 40badc9f326..0b735095b30 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 7368f1d867b..7e6602adfd5 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 d08bd057a71..8a0f5ff2990 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 d68af7bdc63..7a07a9a0fa1 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 f2c1df7429b..77cdd318554 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 64c14d93c16..52b290301b2 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 70d2a791b5b..ca5a5053749 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 c51f5f8c548..c710c891e19 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 18cf00aabc8..f2eaab94862 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 7631b50c611..fe2f71f90cf 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 1e51bc31614..18e521fe41f 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 50fcb23b8b0..bcff13f67cc 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 a9ff6076844..a86b84c717d 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 2fcb65955d1..4f262472592 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 1a9d95a7c6a..4c270e7293d 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 7bd2efa107d..d33bcf3a302 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 385da9a066f..d029c3ea8e9 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 2af95543cc7..68a887c0a59 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 1d672a79fd5..58f0370fec5 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 58049c5834b..fcdee39d5c7 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 14f50a13037..125f8f58136 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 2ce58fd3617..ca83065b9e4 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 090d39a55c2..6280b970ea1 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 80d4b9358dd..322118bf2bd 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 50e70a87592..4f854ea681e 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 35186ac3b3b..59b82198891 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 fe53f30e15d..f1d6feb49b2 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 06d4a577a59..45d95ad4b56 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 7c2159c10f2..3ee04a325bb 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 b4108aa67e0..85e90fb4596 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 615f7608495..2b6f9f6de8a 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 c2ed4a215a3..994f1587c4b 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 4a1cb55eb82..1b9dc40e9f1 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 c7d8c52104f..7619f80fff8 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 2877d39dfee..47ba7b81e40 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 fcdfed45330..2d309734b2b 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 ef01d233377..a9b26e38168 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 dce85475ac0..5a229d6219d 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 72c85414f3f..2ed67247b2b 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 9df37ee4e2d..e13e634f4d5 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 74b9585c687..183cc2eae06 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 e8fdae26fd5..658e4ade135 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 48b7a00a852..7cb56a2e86a 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 b4ade4b4526..a93675286e6 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 d3d683b4185..5ecb74399f7 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 8321856c047..0667c0d405d 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 74ad3766805..d1467891825 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 101d7af2838..745482f5717 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 9f59b8c70eb..de732ebcc39 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 67fe7f561e9..9a84101fbbb 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 02c86f0fe4c..2751b2dfd8f 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 124ffe26e4b..3058e3e9084 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 758b8269c73..56abb183dcf 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 10827944a15..265cfb3f6a5 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 dd945a3763a..15961bba5ff 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 c628ef5b667..d893de82647 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 ec1669cdef2..78097a10115 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 ab92cccacb9..0097974a72e 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 101585a5448..7fef6af9a9e 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 4a502b1f1a6..7360cfc6968 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 c9e51d5f494..f20618b2ceb 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 8ab5f1cc65c..aa95a4bad49 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 0fe020b01cd..bfa2e7a7340 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 8e418ff0ede..9ca5ec83145 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 727cd6ac9b7..0c1680b12ff 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 04089ccd483..d81225cb7c5 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 14b002d1bde..f8e57e3a0aa 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 cb5c8ccc639..8b4e991ea0a 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 38fbda46bab..7ce26ef47f2 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 49378e6a742..e7dedbae118 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 bccc15fd12a..723eaff0460 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 79ff95e2250..5bd4b960095 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 fac47b88cf3..85577bb8e3f 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 8f705e1b759..d465953df7f 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 b33f838727b..f83bb877b93 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 04f678cd9ef..5824dc23673 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 f6d6906d13b..6c28472cf40 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 c8dc57f5b5d..caf793dd02a 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 a700b9ab505..209d484d005 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 f72e54ac9de..75203a842ad 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 e6bf75f5b28..4dd495ea5b1 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 e6c1c21b76c..08f93ede5b4 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 ceece396e19..988c691c0f3 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 993ccfc1850..eeae495188a 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 c3b4f06abd8..a2f3061af49 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 16030f15962..38bce4180d2 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 1a704ec12dc..78c45b6a6fc 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 7f91b9176e4..a091768180e 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 d4e9d649dfe..0f8b3674de4 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 62269ef9138..a66eb2a65f9 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 8abb140c45f..cedea92557c 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 8f33a7c42dd..b4bc12806de 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 4e5869ce0b7..95035859945 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 7dd9e91573c..1fc75774457 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 e05cef8e0e1..ae09a966989 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 7b5fe98932b..fe362990f98 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 9d2cdca93f3..37f0b9440ad 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 2d04535b06d..9f2a0ec13e7 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 bcf3ca8fc54..ad4a2b57014 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 4f851b02f23..70b82419ad4 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 c14ae5c787a..12927380793 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 f032c08565c..12846e329ed 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 48687c153bb..f7e7647e0c8 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_selection: impl Fn(T) -> Message + 'static + 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 a9f91be6bae..1fb1cbdfd8c 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 21043319a34..36edbcfffd0 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 1e100dada54..4c082f86883 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 2578ffd5e89..5aece668b76 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 f50956470c7..c8eac6d7f46 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 ca8f5f200ee..d2f41d60982 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 62be16a1c8f..d7ffb6d2de5 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 85eac138cc7..c38b98cbbf1 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 2216e2ddbac..1c6cb0fdd10 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 57ce32697b5..42fe9af4d5c 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 862c5d01e08..157f3c362cf 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 fb2b433b7c7..c4a0e6c4533 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 34b7c4c72e3..d3632fb3599 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 604f07009ef..f58bfd1af1e 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 c4add336318..039cf5464a6 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 7dca49c4859..382e383ecce 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 87fb7226a57..b3ff2edc271 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 fbf12b33e3f..81df5975dcd 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 deaf9617709..b5499277e9b 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 4be590ab999..b620a004f6a 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 8909ac3050b..17b5129ce5f 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 5ef89a1d40a..fb4d95d4eab 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 968386cb917..35d637d4e00 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 612630a04af..68fdba58f11 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 2ff360afb71..0b6695e55c5 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 7a92d8d1bb8..01d20730b36 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 717907e9d03..18d5fba6a86 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 93c097659c1..bd4beb0b60f 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 61a7af85238..9e0fa9bc0c4 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 be7ff0eaa49..8d78d928f2e 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 f8229bc9198..8a38d340118 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 99f6b5a75f6..7033ae1d588 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 331fd0cd2fc..e06ab1ec183 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 4604296e53a..bb630cacfd3 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 777ce58248b..e8ab4697dac 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 076c2605637..36d421c8490 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 d1438b765e5..d9611fe7002 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 e6c4ffea0e8..c320036b72c 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 38e803579e1..ba7ac5ae832 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 927908a9703..c54c675d732 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 2ef69bf0434..a73b4e8d6b0 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 405f21d3301..251562926d9 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 edcb0089d21..757eb638601 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 c3a1de770ab..f8dd042913f 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 9dd22c6ef50..40e448e55e5 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 5544a444744..8fa6a07abd9 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 33660a2515d..4677861e108 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 7b9a8a96d90..51200a93c14 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 5b0a59fae3c..468a87b8c3d 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 29b4cba2cef..5382666ca05 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 f5cd728e856..ed91ffc7b9a 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 e00a2acc624..956391cead2 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 e02749ae6f2..0d5535c64e2 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/struct.ComboBox.html b/iced_widget/combo_box/struct.ComboBox.html index bd2bd52e70c..11492d8f367 100644 --- a/iced_widget/combo_box/struct.ComboBox.html +++ b/iced_widget/combo_box/struct.ComboBox.html @@ -19,7 +19,7 @@ the TextInput of the ComboBox.

    source

    pub fn on_option_hovered( self, - on_selection: impl Fn(T) -> Message + 'static + on_option_hovered: impl Fn(T) -> Message + 'static ) -> Self

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

    Sets the message that will be produced when the outside area diff --git a/src/iced_widget/combo_box.rs.html b/src/iced_widget/combo_box.rs.html index 8cde633579a..3c1304381dd 100644 --- a/src/iced_widget/combo_box.rs.html +++ b/src/iced_widget/combo_box.rs.html @@ -828,9 +828,9 @@ /// [`ComboBox`] is hovered using the arrow keys. pub fn on_option_hovered( mut self, - on_selection: impl Fn(T) -> Message + 'static, + on_option_hovered: impl Fn(T) -> Message + 'static, ) -> Self { - self.on_option_hovered = Some(Box::new(on_selection)); + self.on_option_hovered = Some(Box::new(on_option_hovered)); self } @@ -1229,7 +1229,7 @@ menu.hovered_option = Some(0); } - if let Some(on_selection) = + if let Some(on_option_hovered) = &mut self.on_option_hovered { if let Some(option) = @@ -1241,7 +1241,7 @@ }) { // Notify the selection - shell.publish((on_selection)( + shell.publish((on_option_hovered)( option.clone(), )); published_message_to_shell = true; @@ -1263,7 +1263,7 @@ menu.hovered_option = Some(0); } - if let Some(on_selection) = + if let Some(on_option_hovered) = &mut self.on_option_hovered { if let Some(option) = @@ -1275,7 +1275,7 @@ }) { // Notify the selection - shell.publish((on_selection)( + shell.publish((on_option_hovered)( option.clone(), )); published_message_to_shell = true;