[][src]Trait uniui_gui::Widget

pub trait Widget: DataProcessor {
    pub fn to_native(
        &mut self,
        _widget_generator: &mut dyn WidgetGenerator
    ) -> Result<NativeWidget, ()>; pub fn draw(&mut self) { ... } }

Minimal UI element.

Widget represents minimal UI element. Most common widgets is Button and TextEdit.

Required methods

pub fn to_native(
    &mut self,
    _widget_generator: &mut dyn WidgetGenerator
) -> Result<NativeWidget, ()>
[src]

Generate native widget

Loading content...

Provided methods

pub fn draw(&mut self)[src]

Allows drawing on top of generated NativeWidget

Loading content...

Implementors

Loading content...