Struct fltk::valuator::ValueInput[][src]

pub struct ValueInput { /* fields omitted */ }

Creates an value input widget, which takes a numeric value. If a step is set, the value can be also dragged

Implementations

impl ValueInput[src]

pub fn text_font(&self) -> Font[src]

Gets the text font

pub fn set_text_font(&mut self, f: Font)[src]

Sets the text font

pub fn text_size(&self) -> i32[src]

Gets the text size

pub fn set_text_size(&mut self, s: i32)[src]

Sets the text size

pub fn text_color(&self) -> Color[src]

Gets the text’s color

pub fn set_text_color(&mut self, color: Color)[src]

Sets the text’s color

pub fn soft(&self) -> bool[src]

Returns whether the user is allowed to drag the value outside the range. Default is true

pub fn set_soft(&mut self, val: bool)[src]

Set whether the user is allowed to drag the value outside the range

Trait Implementations

impl Clone for ValueInput[src]

impl Debug for ValueInput[src]

impl Default for ValueInput[src]

impl Send for ValueInput[src]

impl Sync for ValueInput[src]

impl ValuatorExt for ValueInput[src]

impl WidgetBase for ValueInput[src]

impl WidgetExt for ValueInput[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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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.