Module iced_native::widget

source ·
Expand description

Use the built-in widgets or create your own.

Built-in widgets

Every built-in drawable widget has its own module with a Renderer trait that must be implemented by a renderer before being able to use it as a Widget.

Custom widgets

If you want to implement a custom widget, you simply need to implement the Widget trait. You can use the API of the built-in widgets as a guide or source of inspiration.

Re-exports

Modules

  • Allow your users to perform actions by pressing a button.
  • Show toggle controls using checkboxes.
  • Distribute content vertically.
  • Decorate content and apply alignment.
  • Helper functions to create pure widgets.
  • Display images in your user interface.
  • A container for capturing mouse events.
  • Query or update internal widget state.
  • Let your users split regions of your application and organize layout dynamically.
  • Display a dropdown list of selectable values.
  • Provide progress feedback to your users.
  • Create choices using radio buttons.
  • Distribute content horizontally.
  • Display a horizontal or vertical rule for dividing content.
  • Navigate an endless amount of content with a scrollbar.
  • Display an interactive selector of a single value from a range of values.
  • Distribute content vertically.
  • Display vector graphics in your application.
  • Write some text for your users to read.
  • Display fields that can be filled with text.
  • Show toggle controls using togglers.
  • Display a widget over another.
  • Store internal widget state in a state tree to ensure continuity.
  • Display an interactive selector of a single value from a range of values.

Structs

  • An operation to be performed on the widget tree.
  • The identifier of a generic widget.

Traits

  • A component that displays information and allows interaction.