Trait zng::widget::WidgetImpl

source ·
pub trait WidgetImpl {
    // Required methods
    fn inherit(widget: WidgetType) -> Self;
    fn base(&mut self) -> &mut WidgetBase;
}
Expand description

Trait implemented by all #[widget].

This trait is used in widget mix-in implementations to constraint P, it is also used by the the generated widget code. You do not need to implement it directly.

Required Methods§

source

fn inherit(widget: WidgetType) -> Self

The inherit function.

source

fn base(&mut self) -> &mut WidgetBase

Reference the parent WidgetBase.

Object Safety§

This trait is not object safe.

Implementors§