pub struct MultiBitmapWidget<Key> { /* private fields */ }Expand description
This is a bitmap widget, the main type of this crate
Implementations§
Source§impl<Key: Hash + Clone + Eq + Debug> MultiBitmapWidget<Key>
impl<Key: Hash + Clone + Eq + Debug> MultiBitmapWidget<Key>
Sourcepub fn default_state_english(&self) -> ShowState<Key>
pub fn default_state_english(&self) -> ShowState<Key>
Get default state, in english
Sourcepub fn with_settings(
data: Vec<(Key, Data<Color>)>,
settings: MultiBitmapWidgetSettings,
) -> Self
pub fn with_settings( data: Vec<(Key, Data<Color>)>, settings: MultiBitmapWidgetSettings, ) -> Self
Main Constructor. This assumes that the data coordinates are linearly and axis-aligned to the bitmap, but the left-top corner can be adjusted for each subplot
Auto Trait Implementations§
impl<Key> !Freeze for MultiBitmapWidget<Key>
impl<Key> !RefUnwindSafe for MultiBitmapWidget<Key>
impl<Key> Send for MultiBitmapWidget<Key>where
Key: Send,
impl<Key> Sync for MultiBitmapWidget<Key>where
Key: Sync,
impl<Key> Unpin for MultiBitmapWidget<Key>where
Key: Unpin,
impl<Key> !UnwindSafe for MultiBitmapWidget<Key>
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more