[−][src]Struct newt::components::Form
Methods
impl Form
[src]
pub fn new(_scrollbar: Option<&VerticalScrollbar>, flags: i32) -> Form
[src]
pub fn new_with_help_callback<FN, T>(
_scrollbar: Option<&VerticalScrollbar>,
flags: i32,
function: FN,
data: Option<T>
) -> (Form, Box<HelpCallback<FN, T>>) where
FN: Fn(&Form, Option<&T>),
[src]
_scrollbar: Option<&VerticalScrollbar>,
flags: i32,
function: FN,
data: Option<T>
) -> (Form, Box<HelpCallback<FN, T>>) where
FN: Fn(&Form, Option<&T>),
Creates a new Form
with an associated help Callback
. See
Callback for additional information.
pub fn add_component(
&mut self,
component: &mut dyn Component
) -> Result<(), &'static str>
[src]
&mut self,
component: &mut dyn Component
) -> Result<(), &'static str>
pub fn add_components(
&mut self,
components: &mut [&mut dyn Component]
) -> Result<(), &'static str>
[src]
&mut self,
components: &mut [&mut dyn Component]
) -> Result<(), &'static str>
pub fn set_height(&mut self, height: i32)
[src]
pub fn set_width(&mut self, width: i32)
[src]
pub fn set_size(&mut self)
[src]
pub fn add_hot_key(&mut self, key: i32)
[src]
pub fn set_timer(&mut self, millisecs: i32)
[src]
pub fn watch_fd(&mut self, fd: RawFd, flags: i32)
[src]
pub fn get_current(&self) -> Box<dyn Component>
[src]
pub fn set_current(&mut self, subcomponent: &dyn Component)
[src]
pub fn set_background(&mut self, color: i32)
[src]
pub fn get_scroll_position(&self) -> i32
[src]
pub fn set_scroll_position(&mut self, position: i32)
[src]
pub fn run(&self) -> Result<ExitReason, ()>
[src]
pub fn draw(&self)
[src]
Trait Implementations
impl Component for Form
[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 Form
[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 Form
[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 Form
[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 Form
[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>,