Enum adi_screen::Widget[][src]

pub enum Widget<'a> {
    None,
    Container(&'a Widget<'a>, usizeusizeusizeusize),
    Button(&'a Widget<'a>, &'a Fn()),
    Text(&'a str),
    Image(&'a Texture),
    Icon(&'a usize),
    MenuBar(&'a Vec<&'a Widget<'a>>),
    SideBar(&'a Vec<&'a Widget<'a>>),
    InfoBar(&'a Vec<&'a Widget<'a>>),
    DataBar(&'a Vec<&'a Widget<'a>>),
    Tabs(&'a Vec<&'a str>, &'a Fn(usize)),
    PopUp(&'a Widget<'a>, &'a Fn(usize)),
    TextField(&'a str, &'a usize),
}

A GUI Widget

Variants

An empty widget.

A widget that contains another widget (left, right, up, down margin)

A widget that can be clicked, closure executes on button release

A widget that displays text

A widget that displays an image

A widget that displays an icon (save, open, hamburger menu, etc.)

A horizontal list container across the top of it's container.

A vertical list container on the left side of it's container.

A horizontal list container across the bottom of it's container.

A vertical list container on the right side of it's container.

A list of switchable tabs.

A pop-up menu

An editable text field

Auto Trait Implementations

impl<'a> !Send for Widget<'a>

impl<'a> !Sync for Widget<'a>