[][src]Struct pushrod::widget::config::Configurable

pub struct Configurable { /* fields omitted */ }

Methods

impl Configurable[src]

Implementation of the default Configurable object.

There are two ways in which configuration objects can be used: NEEDS_DOCS

pub fn new() -> Self[src]

pub fn set(&mut self, config: u8, config_value: Config)[src]

pub fn remove(&mut self, config: u8)[src]

pub fn contains(&self, config: u8) -> bool[src]

pub fn get(&self, config: u8) -> Option<&Config>[src]

pub fn set_point(&mut self, config: u8, x: i32, y: i32)[src]

pub fn set_size(&mut self, config: u8, w: i32, h: i32)[src]

pub fn set_color(&mut self, config: u8, color: Color)[src]

pub fn set_numeric(&mut self, config: u8, value: u64)[src]

pub fn set_text(&mut self, config: u8, text: String)[src]

pub fn set_toggle(&mut self, config: u8, flag: bool)[src]

pub fn get_point(&self, config: u8) -> Point[src]

pub fn get_size(&self, config: u8) -> Size[src]

pub fn get_color(&self, config: u8) -> Color[src]

pub fn get_numeric(&self, config: u8) -> u64[src]

pub fn get_text(&self, config: u8) -> String[src]

pub fn get_toggle(&self, config: u8) -> bool[src]

Auto Trait Implementations

Blanket Implementations

impl<T> From for T[src]

impl<T, U> Into for T where
    U: From<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.

impl<T> SetParameter for T

default fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.

impl<T> Erased for T