Trait WTextTrait

Source
pub trait WTextTrait: WTextTraitConst + Widget2DTrait {
    // Required method
    fn as_raw_mut_WText(&mut self) -> *mut c_void;

    // Provided method
    fn set_text(&mut self, text: &str) -> Result<()> { ... }
}
Expand description

Mutable methods for crate::viz::WText

Required Methods§

Provided Methods§

Source

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

Sets the text content of the widget.

§Parameters
  • text: Text content of the widget.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§