[][src]Struct newt::windows::WinEntry

pub struct WinEntry { /* fields omitted */ }

A struct used to pass initial Entry information to the win_entries() function.

Implementations

impl WinEntry[src]

pub fn new(text: &str, value: &str, flags: i32) -> WinEntry[src]

Create a new WinEntry.

  • text - The text to display as the entry field label.
  • value - The initial value of the Entry field.
  • flags - The settings flags for the Entry.

pub fn value(&self) -> &str[src]

Returns the value of the corresponding Entry. This is either the inital value set when the WinEntry is created, or the user entered data provided by the win_entries() function if that has been run.

Trait Implementations

impl Default for WinEntry[src]

Auto Trait Implementations

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.