[][src]Struct newt::widgets::Textbox

pub struct Textbox { /* fields omitted */ }

A multi-line Textbox widget.

Implementations

impl Textbox[src]

pub fn new(left: i32, top: i32, width: i32, height: i32, flags: i32) -> Textbox[src]

pub fn new_reflowed(
    left: i32,
    top: i32,
    text: &str,
    width: i32,
    flex_down: i32,
    flex_up: i32,
    flags: i32
) -> Textbox
[src]

pub fn set_text(&self, text: &str)[src]

pub fn set_height(&self, height: i32)[src]

pub fn get_num_lines(&self) -> i32[src]

pub fn set_colors(&self, normal: i32, active: i32)[src]

Trait Implementations

impl Component for Textbox[src]

impl Drop for Textbox[src]

impl PartialEq<Box<dyn Component + 'static>> for Textbox[src]

impl PartialEq<ExitReason> for Textbox[src]

impl<Rhs: Component> PartialEq<Rhs> for Textbox[src]

impl WidgetFns for Textbox[src]

Auto Trait Implementations

impl !RefUnwindSafe for Textbox

impl !Send for Textbox

impl !Sync for Textbox

impl Unpin for Textbox

impl UnwindSafe for Textbox

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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