[][src]Trait opencv::viz::prelude::WTextTrait

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

This 2D Widget represents text overlay.

Required methods

Loading content...

Provided methods

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

Sets the text content of the widget.

Parameters

  • text: Text content of the widget.

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

Returns the current text content of the widget.

Loading content...

Implementors

impl WTextTrait for WText[src]

Loading content...