[][src]Struct fltk::misc::Chart

pub struct Chart { /* fields omitted */ }

Creates a chart widget

Implementations

impl Chart[src]

pub fn clear(&mut self)[src]

Clears the chart

pub fn add(&mut self, val: f64, txt: &str, col: Color)[src]

Adds an entry

pub fn insert(&mut self, idx: u32, val: f64, txt: &str, col: Color)[src]

Inserts an entry at an index

pub fn replace(&mut self, idx: u32, val: f64, txt: &str, col: Color)[src]

Replaces an entry at an index

pub fn set_bounds(&mut self, a: f64, b: f64)[src]

Sets the bounds of the chart

pub fn size(&self) -> u32[src]

Returns the size of the chart

pub fn set_size(&mut self, w: u32, h: u32)[src]

Sets the size of the chart

pub fn maximum_size(&self) -> u32[src]

Gets the maximum supported size of the chart

pub fn set_maximum_size(&mut self, s: u32)[src]

Sets the maximum supported size of the chart

pub fn text_font(&self) -> Font[src]

Gets the text font

pub fn set_text_font(&mut self, f: Font)[src]

Sets the text font

pub fn text_size(&self) -> u32[src]

Gets the text size

pub fn set_text_size(&mut self, s: u32)[src]

Sets the text size

pub fn text_color(&self) -> Color[src]

Gets the text's color

pub fn set_text_color(&mut self, color: Color)[src]

Sets the text's color

pub fn is_autosize(&self) -> bool[src]

Returns wheter the chart is autosizable

pub fn make_autosize(&mut self, val: bool)[src]

Sets the ability of the chart to be autosizable

Trait Implementations

impl Clone for Chart[src]

impl Debug for Chart[src]

impl Send for Chart[src]

impl Sync for Chart[src]

impl WidgetExt for Chart[src]

Auto Trait Implementations

impl RefUnwindSafe for Chart

impl Unpin for Chart

impl UnwindSafe for Chart

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.