amdguid 1.0.12

AMDGPU fan control service
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
use std::ops::RangeInclusive;

use egui::{Color32, Shape, Ui};

use crate::items::Values;
use crate::transform::{Bounds, ScreenTransform};

/// Trait shared by things that can be drawn in the plot.
pub trait PlotItem {
    fn shapes(&self, ui: &mut Ui, transform: &ScreenTransform, shapes: &mut Vec<Shape>);
    fn initialize(&mut self, x_range: RangeInclusive<f64>);
    fn name(&self) -> &str;
    fn color(&self) -> Color32;
    fn highlight(&mut self);
    fn highlighted(&self) -> bool;
    fn values(&self) -> Option<&Values>;
    fn bounds(&self) -> Bounds;
}