[−][src]Trait uniui_gui::Widget
Minimal UI element.
Widget represents minimal UI element. Most common widgets is Button and TextEdit.
Required methods
fn to_native(
&mut self,
_widget_generator: &mut dyn WidgetGenerator
) -> Result<NativeWidget, ()>
&mut self,
_widget_generator: &mut dyn WidgetGenerator
) -> Result<NativeWidget, ()>
Generate native widget
Provided methods
fn draw(&mut self)
Allows drawing on top of generated NativeWidget