Skip to main content

FxExt

Trait FxExt 

Source
pub trait FxExt: Widget + Sized {
    // Provided methods
    fn glow(self, radius: u16, strength: f64) -> Fx<Self> { ... }
    fn scanlines(self, strength: f64) -> Fx<Self> { ... }
}
Expand description

.glow(..) / .scanlines(..) on any widget, so effects read like any other builder call:

use tui_chart::{FxExt, Spectrum};

let chart = Spectrum::new([0.2, 0.9, 0.5]).glow(1, 0.25).scanlines(0.15);

Provided Methods§

Source

fn glow(self, radius: u16, strength: f64) -> Fx<Self>

Wrap in an Fx with a glow of radius cells and strength.

Source

fn scanlines(self, strength: f64) -> Fx<Self>

Wrap in an Fx with scanlines of strength.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§

Source§

impl<W: Widget> FxExt for W