pub struct MarketHeatmapPanel {
pub universes: Vec<MarketHeatmapUniverse>,
pub metrics: Vec<MarketHeatmapMetric>,
pub selection: MarketHeatmapSelection,
}Expand description
Host-fed market heatmap. Update the fields in place and request an egui repaint when the host data changes. The same panel recomputes its geometry from the current values on each frame.
The user picks the universe, the metric that sizes the tiles and the metric that colours them.
Without a choice the first universe is shown, sized by the first available metric and coloured
by the second. Store selection with the settings and assign it back to
restore the choices; one the host does not offer at the moment stays chosen and shows as
unavailable.
Fields§
§universes: Vec<MarketHeatmapUniverse>The markets to choose from.
metrics: Vec<MarketHeatmapMetric>The metrics to size and colour by.
selection: MarketHeatmapSelectionThe user’s choices.
Implementations§
Source§impl MarketHeatmapPanel
impl MarketHeatmapPanel
Sourcepub fn show(&mut self, ui: &mut Ui) -> Option<String>
pub fn show(&mut self, ui: &mut Ui) -> Option<String>
Render the chosen universe, returning the symbol the host should open when selected. Tile areas follow the size metric. Colours diverge from the theme’s panel background towards its down/up colours by the colour metric, with a legend of its scale. Values are shown verbatim on hover.
Trait Implementations§
Source§impl Default for MarketHeatmapPanel
impl Default for MarketHeatmapPanel
Source§fn default() -> MarketHeatmapPanel
fn default() -> MarketHeatmapPanel
Auto Trait Implementations§
impl Freeze for MarketHeatmapPanel
impl RefUnwindSafe for MarketHeatmapPanel
impl Send for MarketHeatmapPanel
impl Sync for MarketHeatmapPanel
impl Unpin for MarketHeatmapPanel
impl UnsafeUnpin for MarketHeatmapPanel
impl UnwindSafe for MarketHeatmapPanel
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
impl<ST, DT> CastableFrom<ST, Initialized, Initialized> for DT
impl<ST, DT> CastableFrom<ST, Uninit, Uninit> for DT
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> ⓘ
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> ⓘ
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