[−][src]Trait orbtk_widgets::prelude::widget::Widget
The Widget
trait is used to define a new widget.
Required methods
fn create() -> Self
Creates a new widget.
fn build(self, ctx: &mut BuildContext) -> Entity
Builds the widget and returns the template of the widget.
fn insert_handler(
self,
handler: impl Into<Rc<dyn EventHandler + 'static>>
) -> Self
self,
handler: impl Into<Rc<dyn EventHandler + 'static>>
) -> Self
Inerts a new event handler.
fn child(self, child: Entity) -> Self
Appends a child ot the widget.