[−][src]Struct newt::components::Entry
Methods
impl Entry
[src]
pub fn new(
left: i32,
top: i32,
initial_value: Option<&str>,
width: i32,
flags: i32
) -> Entry
[src]
left: i32,
top: i32,
initial_value: Option<&str>,
width: i32,
flags: i32
) -> Entry
pub fn get_text(&self) -> String
[src]
pub fn set_text(&mut self, text: &str, cursor_at_end: bool)
[src]
pub fn set_flags(&mut self, flags: i32, sense: FlagsSense)
[src]
pub fn set_colors(&mut self, normal: i32, disabled: i32)
[src]
pub fn get_cursor_position(&self) -> i32
[src]
pub fn set_cursor_position(&mut self, position: i32)
[src]
Trait Implementations
impl Component for Entry
[src]
fn co(&self) -> newtComponent
[src]
fn attach_to_form(&mut self)
[src]
fn attached_to_form(&self) -> bool
[src]
fn takes_focus(&mut self, value: bool)
[src]
fn get_position(&self) -> (i32, i32)
[src]
fn get_size(&self) -> (i32, i32)
[src]
impl<Rhs: Component> PartialEq<Rhs> for Entry
[src]
fn eq(&self, other: &Rhs) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl PartialEq<Box<dyn Component + 'static>> for Entry
[src]
fn eq(&self, other: &Box<dyn Component>) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl PartialEq<ExitReason> for Entry
[src]
fn eq(&self, other: &ExitReason) -> bool
[src]
#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0[src]
#[must_use]
fn ne(&self, other: &Rhs) -> boolThis method tests for !=
.
impl Drop for Entry
[src]
Auto Trait Implementations
Blanket Implementations
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T, U> TryInto for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,