[−][src]Trait tuikit::widget::Widget
A widget could be recursive nested
Provided methods
fn size_hint(&self) -> (Option<usize>, Option<usize>)
the (width, height) of the content it will be the hint for layouts to calculate the final size
fn on_event(&self, event: Event, rect: Rectangle) -> Vec<Message>
given a key event, emit zero or more messages typical usage is the mouse click event where containers would pass the event down to their children.