Trait opencv::hub_prelude::WTextTrait[][src]

pub trait WTextTrait: Widget2DTrait {
    fn as_raw_WText(&self) -> *const c_void;
fn as_raw_mut_WText(&mut self) -> *mut c_void; fn set_text(&mut self, text: &str) -> Result<()> { ... }
fn get_text(&self) -> Result<String> { ... } }

This 2D Widget represents text overlay.

Required methods

Loading content...

Provided methods

fn set_text(&mut self, text: &str) -> Result<()>[src]

Sets the text content of the widget.

Parameters

  • text: Text content of the widget.

fn get_text(&self) -> Result<String>[src]

Returns the current text content of the widget.

Loading content...

Implementors

Loading content...