| Syntax | Meaning |
|---|---|
TypeName |
Insert component with all fields defaulted. Also selects the #[default] enum variant. |
TypeName { field: val } |
Insert component with specific fields; unset fields still default — no ..default() needed. |
TypeName(val) |
Tuple / newtype constructor. val is implicitly .into()'d. |
{ expr } |
Arbitrary expression at component position — must implement Scene. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| use iced::{ | |
| color, | |
| mouse::{self, Button}, | |
| Color, Element, Rectangle, Size, | |
| }; | |
| use iced_native::{ | |
| layout, | |
| widget::{tree, Tree}, | |
| Widget, | |
| }; |