[][src]Struct newt::components::Scale

pub struct Scale { /* fields omitted */ }

Methods

impl Scale[src]

pub fn new(left: i32, top: i32, width: i32, full_value: i64) -> Scale[src]

pub fn set(&mut self, amount: u64)[src]

pub fn set_colors(&mut self, empty: i32, full: i32)[src]

Trait Implementations

impl Component for Scale[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 Scale[src]

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

This method tests for !=.

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

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

This method tests for !=.

impl PartialEq<ExitReason> for Scale[src]

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

This method tests for !=.

impl Drop for Scale[src]

Auto Trait Implementations

impl !Send for Scale

impl !Sync for Scale

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.