[][src]Struct newt::components::Form

pub struct Form { /* fields omitted */ }

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]

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]

pub fn add_components(
    &mut self,
    components: &mut [&mut dyn Component]
) -> Result<(), &'static str>
[src]

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 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]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

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

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl PartialEq<ExitReason> for Form[src]

#[must_use]
fn ne(&self, other: &Rhs) -> bool
1.0.0
[src]

This method tests for !=.

impl Drop for Form[src]

Auto Trait Implementations

impl !Send for Form

impl !Sync for Form

Blanket Implementations

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

impl<T> From for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

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

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

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

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

The type returned in the event of a conversion error.