[−][src]Struct fltk::misc::Chart
Creates a chart widget
Methods
impl Chart[src]
pub fn clear(&mut self)[src]
Clears the chart
pub fn add(&mut self, val: f64, txt: &str, col: u32)[src]
Adds an entry
pub fn insert(&mut self, idx: u32, val: f64, txt: &str, col: u32)[src]
Inserts an entry at an index
pub fn replace(&mut self, idx: u32, val: f64, txt: &str, col: u32)[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 From<Widget> for Chart[src]
impl Send for Chart[src]
impl Sync for Chart[src]
impl WidgetTrait for Chart[src]
fn new(x: i32, y: i32, width: i32, height: i32, title: &str) -> Chart[src]
fn default() -> Self[src]
fn with_pos(self, x: i32, y: i32) -> Self[src]
fn with_size(self, width: i32, height: i32) -> Self[src]
fn with_label(self, title: &str) -> Self[src]
fn set_label(&mut self, title: &str)[src]
fn redraw(&mut self)[src]
fn show(&mut self)[src]
fn hide(&mut self)[src]
fn x(&self) -> i32[src]
fn y(&self) -> i32[src]
fn width(&self) -> i32[src]
fn height(&self) -> i32[src]
fn label(&self) -> String[src]
fn as_widget_ptr(&self) -> *mut Fl_Widget[src]
fn from_widget_ptr(ptr: *mut Fl_Widget) -> Self[src]
fn activate(&mut self)[src]
fn deactivate(&mut self)[src]
fn redraw_label(&mut self)[src]
fn resize(&mut self, x: i32, y: i32, width: i32, height: i32)[src]
fn tooltip(&self) -> Option<String>[src]
fn set_tooltip(&mut self, txt: &str)[src]
fn get_type<T: WidgetType>(&self) -> T[src]
fn set_type<T: WidgetType>(&mut self, typ: T)[src]
fn color(&self) -> Color[src]
fn set_color(&mut self, color: Color)[src]
fn label_color(&self) -> Color[src]
fn set_label_color(&mut self, color: Color)[src]
fn label_font(&self) -> Font[src]
fn set_label_font(&mut self, font: Font)[src]
fn label_size(&self) -> i32[src]
fn set_label_size(&mut self, sz: i32)[src]
fn label_type<T: WidgetType>(&self) -> T[src]
fn set_label_type<T: WidgetType>(&mut self, typ: T)[src]
fn frame<T: WidgetType>(&self) -> T[src]
fn set_frame<T: WidgetType>(&mut self, typ: T)[src]
fn changed(&self) -> bool[src]
fn set_changed(&mut self)[src]
fn clear_changed(&mut self)[src]
fn align(&self) -> Align[src]
fn set_align(&mut self, align: Align)[src]
fn set_image<Image: ImageTrait>(&mut self, image: &Image)[src]
fn set_image_with_size<Image: ImageTrait>(
&mut self,
image: &Image,
w: i32,
h: i32
)[src]
&mut self,
image: &Image,
w: i32,
h: i32
)
fn image(&self) -> Option<Image>[src]
fn set_callback<'a>(&'a mut self, cb: Box<dyn FnMut() + 'a>)[src]
unsafe fn set_custom_handler<'a>(
&'a mut self,
cb: Box<dyn FnMut(Event) -> bool + 'a>
)[src]
&'a mut self,
cb: Box<dyn FnMut(Event) -> bool + 'a>
)
unsafe fn set_custom_draw<'a>(&'a mut self, cb: Box<dyn FnMut() + 'a>)[src]
fn set_trigger(&mut self, trigger: CallbackTrigger)[src]
fn below_of<W: WidgetTrait>(self, w: &W, padding: i32) -> Self[src]
fn above_of<W: WidgetTrait>(self, w: &W, padding: i32) -> Self[src]
fn right_of<W: WidgetTrait>(self, w: &W, padding: i32) -> Self[src]
fn left_of<W: WidgetTrait>(self, w: &W, padding: i32) -> Self[src]
fn center_of<W: WidgetTrait>(self, w: &W) -> Self[src]
fn size_of<W: WidgetTrait>(self, w: &W) -> Self[src]
fn parent(&self) -> Option<Widget>[src]
fn selection_color(&mut self) -> Color[src]
fn set_selection_color(&mut self, color: Color)[src]
fn do_callback(&mut self)[src]
fn inside(&self, wid: Widget) -> bool[src]
fn window(&self) -> Option<Window>[src]
fn top_window(&self) -> Option<Window>[src]
Auto Trait Implementations
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized, [src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized, [src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized, [src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T[src]
impl<T> From<T> for T[src]
impl<T, U> Into<U> for T where
U: From<T>, [src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone, [src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T[src]
fn clone_into(&self, target: &mut T)[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>, [src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>, [src]
U: TryFrom<T>,