[−][src]Struct i3status_rs::widgets::text::TextWidget
Fields
id: usize
instance: usize
content: Option<String>
icon: Option<String>
state: State
spacing: Spacing
inner: I3BlockData
Implementations
impl TextWidget
[src]
pub fn new(id: usize, instance: usize, shared_config: SharedConfig) -> Self
[src]
pub fn with_icon(self, name: &str) -> Result<Self, Error>
[src]
pub fn with_text(self, content: &str) -> Self
[src]
pub fn with_state(self, state: State) -> Self
[src]
pub fn with_spacing(self, spacing: Spacing) -> Self
[src]
pub fn set_icon(&mut self, name: &str) -> Result<(), Error>
[src]
pub fn set_text(&mut self, content: String)
[src]
pub fn set_state(&mut self, state: State)
[src]
pub fn set_spacing(&mut self, spacing: Spacing)
[src]
fn update(&mut self)
[src]
Trait Implementations
impl Clone for TextWidget
[src]
fn clone(&self) -> TextWidget
[src]
pub fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for TextWidget
[src]
impl I3BarWidget for TextWidget
[src]
fn get_data(&self) -> I3BlockData
[src]
Auto Trait Implementations
impl !RefUnwindSafe for TextWidget
[src]
impl !Send for TextWidget
[src]
impl !Sync for TextWidget
[src]
impl Unpin for TextWidget
[src]
impl UnwindSafe for TextWidget
[src]
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
pub fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
pub fn to_owned(&self) -> T
[src]
pub fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
pub fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,