pub struct Graph {
pub callbacks: CallbackMap,
/* private fields */
}
Fields§
§callbacks: CallbackMap
holds references to Callback
Implementations§
Source§impl Graph
impl Graph
pub async fn try_init(id: Option<&str>) -> Result<()>
pub async fn default_style() -> Result<String>
pub async fn replace_graph_style(id: &str, css: &str) -> Result<()>
pub async fn try_new<T: Into<String>>( window: &Window, container: &Arc<Container>, title: Option<T>, y_caption: T, duration: Duration, retention: Duration, theme: GraphTheme, margin: Margin, ) -> Result<Graph>
pub fn set_title<T: Into<String>>(self, title: T) -> Self
pub fn set_x_tick_size(self, tick_size: f64) -> Self
pub fn set_y_tick_size(self, tick_size: f64) -> Self
pub fn set_x_tick_count(self, tick_count: u32) -> Self
pub fn set_y_tick_count(self, tick_count: u32) -> Self
pub fn set_y_tick_padding(self, tick_padding: f64) -> Self
pub fn options(&self) -> MutexGuard<'_, GraphThemeOptions>
pub fn set_title_font<T: Into<String>>(&self, font: T) -> &Self
pub fn set_x_axis_font<T: Into<String>>(&self, font: T) -> &Self
pub fn set_y_axis_font<T: Into<String>>(&self, font: T) -> &Self
pub fn set_area_fill_color<T: Into<String>>(&self, color: T) -> &Self
pub fn set_area_stroke_color<T: Into<String>>(&self, color: T) -> &Self
pub fn set_x_axis_color<T: Into<String>>(&self, color: T) -> &Self
pub fn set_y_axis_color<T: Into<String>>(&self, color: T) -> &Self
pub fn set_title_color<T: Into<String>>(&self, color: T) -> &Self
pub fn set_y_caption_color<T: Into<String>>(&self, color: T) -> &Self
pub fn set_y_caption_font<T: Into<String>>(&self, font: T) -> &Self
pub fn set_theme(&self, theme: GraphTheme) -> Result<()>
pub fn set_duration(&self, duration: Duration) -> Result<()>
pub fn duration(&self) -> Duration
pub fn redraw(&self)
pub fn needs_redraw(&self) -> bool
pub async fn init(&mut self) -> Result<()>
pub fn height(&self) -> f32
pub fn width(&self) -> f32
pub fn set_value<T: Into<String>>(&self, value: T)
pub fn value(&self) -> String
pub fn title_box_height(&self) -> f64
pub fn x_tick_width(&self) -> f64
pub fn area_fill_color(&self) -> String
pub fn area_stroke_color(&self) -> String
pub fn area_color(&self) -> (String, String)
pub fn title_font(&self) -> String
pub fn title_color(&self) -> String
pub fn x_axis_font(&self) -> String
pub fn x_axis_color(&self) -> String
pub fn y_caption_font(&self) -> String
pub fn y_caption_color(&self) -> String
pub fn _element(&self) -> &Element
pub fn clear(&self) -> Result<()>
pub async fn ingest(&self, time: f64, value_f64: f64, text: &str) -> Result<()>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Graph
impl !RefUnwindSafe for Graph
impl Unpin for Graph
impl !UnwindSafe for Graph
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