[][src]Trait opencv::viz::Widget2D

pub trait Widget2D: Widget {
    fn as_raw_Widget2D(&self) -> *mut c_void;

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

Base class of all 2D widgets.

Required methods

Loading content...

Provided methods

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

Sets the color of the widget.

Parameters

  • color: color of type Color
Loading content...

Implementors

impl Widget2D for WImageOverlay[src]

impl Widget2D for WText[src]

Loading content...