[−][src]Trait newt::widgets::WidgetFns
Implement shared functions for newt component widgets.
Provided methods
fn takes_focus(&self, value: bool)
Allow the Widget
to be focused when its parent Form
is
run.
fn get_position(&self) -> (i32, i32)
Get the position of the Widget
's top left corner.
Returns a tuple in the form of (left, top)
.
fn get_size(&self) -> (i32, i32)
Get the Widget
's width and height.
Returns a tuple in the form of (width, height)
.