[][src]Trait egui::widgets::Widget

#[must_use = "You should put this widget in an ui with `ui.add(widget);`"]pub trait Widget {
    pub fn ui(self, ui: &mut Ui) -> Response;
}

Anything implementing Widget can be added to a Ui with Ui::add.

Required methods

pub fn ui(self, ui: &mut Ui) -> Response[src]

Allocate space, interact, paint, and return a Response.

Loading content...

Implementors

impl Widget for Button[src]

impl Widget for Hyperlink[src]

impl Widget for Image[src]

impl Widget for ImageButton[src]

impl Widget for Label[src]

impl Widget for RadioButton[src]

impl Widget for SelectableLabel[src]

impl Widget for Separator[src]

impl<'a> Widget for Checkbox<'a>[src]

impl<'a> Widget for DragValue<'a>[src]

impl<'a> Widget for Slider<'a>[src]

impl<'t> Widget for TextEdit<'t>[src]

Loading content...