[−][src]Struct pushrod::widget::config::Configurable
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
impl Send for Configurable
impl Sync for Configurable
Blanket Implementations
impl<T> From for T[src]
impl<T, U> Into for T where
U: From<T>, [src]
U: From<T>,
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>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>[src]
impl<T> SetParameter for T
default fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
T: Parameter<Self>,
T: Parameter<Self>,
Sets value as a parameter of self.