pub struct ShowStateSingle { /* private fields */ }Expand description
This encodes the current state of the heatmap
Implementations§
Source§impl ShowStateSingle
impl ShowStateSingle
Sourcepub fn make_selected(&mut self, selected: HashSet<CoordinatePoint>)
pub fn make_selected(&mut self, selected: HashSet<CoordinatePoint>)
Select the given positions and only those
Sourcepub fn clear_selected(&mut self)
pub fn clear_selected(&mut self)
Clear selected positions
Sourcepub fn selected(&self) -> &HashSet<CoordinatePoint>
pub fn selected(&self) -> &HashSet<CoordinatePoint>
Get the currently selected points
Sourcepub fn currently_showing(&self) -> Option<CoordinateRect>
pub fn currently_showing(&self) -> Option<CoordinateRect>
Fetch rectangle which is currently shown
Sourcepub fn render_problem(&self) -> Option<&RenderProblem>
pub fn render_problem(&self) -> Option<&RenderProblem>
Check if there was an issue will rendering
Sourcepub fn clicked(&self) -> Option<MapPosition>
pub fn clicked(&self) -> Option<MapPosition>
Check if position was clicked
Sourcepub fn hover(&self) -> MapPosition
pub fn hover(&self) -> MapPosition
Check if position was clicked
Auto Trait Implementations§
impl Freeze for ShowStateSingle
impl RefUnwindSafe for ShowStateSingle
impl Send for ShowStateSingle
impl Sync for ShowStateSingle
impl Unpin for ShowStateSingle
impl UnwindSafe for ShowStateSingle
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