pub trait Widget2DTrait: Widget2DTraitConst + WidgetTrait {
    // Required method
    fn as_raw_mut_Widget2D(&mut self) -> *mut c_void;

    // Provided method
    fn set_color(&mut self, color: &Color) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::viz::Widget2D

Required Methods§

Provided Methods§

source

fn set_color(&mut self, color: &Color) -> Result<()>

Sets the color of the widget.

Parameters
  • color: color of type Color

Implementors§