[−][src]Module iced::widget
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
For convenience, the contents of this module are available at the root module. Therefore, you can directly type:
use iced::{button, Button, Widget};
Re-exports
pub use button::Button; |
pub use checkbox::Checkbox; |
pub use image::Image; |
pub use radio::Radio; |
pub use slider::Slider; |
pub use text::Text; |
Modules
button | Allow your users to perform actions by pressing a button. |
checkbox | Show toggle controls using checkboxes. |
image | Display images in your user interface. |
radio | Create choices using radio buttons. |
slider | Display an interactive selector of a single value from a range of values. |
text | Write some text for your users to read. |
Structs
Column | A container that distributes its contents vertically. |
Row | A container that distributes its contents horizontally. |
Traits
Widget | A component that displays information and allows interaction. |