[][src]Trait newt::widgets::WidgetFns

pub trait WidgetFns: ComponentPtr {
    fn takes_focus(&self, value: bool) { ... }
fn get_position(&self) -> (i32, i32) { ... }
fn get_size(&self) -> (i32, i32) { ... } }

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).

Loading content...

Implementors

impl WidgetFns for Button[src]

impl WidgetFns for Checkbox[src]

impl WidgetFns for CompactButton[src]

impl WidgetFns for Entry[src]

impl WidgetFns for Label[src]

impl WidgetFns for Radiobutton[src]

impl WidgetFns for Scale[src]

impl WidgetFns for Textbox[src]

impl WidgetFns for VerticalScrollbar[src]

impl<'a> WidgetFns for Form<'a>[src]

impl<D: Data> WidgetFns for CheckboxTree<D>[src]

impl<D: Data> WidgetFns for Listbox<D>[src]

impl<T: Grid> WidgetFns for T[src]

Loading content...