[][src]Trait uniui_base::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

impl Widget for LinearLayout[src]

impl Widget for Button[src]

impl Widget for Label[src]

impl Widget for TextEdit[src]

impl<T> Widget for MinimalSize<T> where
    T: Widget
[src]

Loading content...