SymbolicPaintableExt

Trait SymbolicPaintableExt 

Source
pub trait SymbolicPaintableExt: IsA<SymbolicPaintable> + 'static {
    // Provided methods
    fn snapshot_symbolic(
        &self,
        snapshot: &impl IsA<Snapshot>,
        width: f64,
        height: f64,
        colors: &[RGBA],
    ) { ... }
    fn snapshot_with_weight(
        &self,
        snapshot: &impl IsA<Snapshot>,
        width: f64,
        height: f64,
        colors: &[RGBA],
        weight: f64,
    ) { ... }
}
Available on crate feature v4_6 only.
Expand description

Trait containing all SymbolicPaintable methods.

§Implementors

IconPaintable, Svg, SymbolicPaintable

Provided Methods§

Source

fn snapshot_symbolic( &self, snapshot: &impl IsA<Snapshot>, width: f64, height: f64, colors: &[RGBA], )

Snapshots the paintable with the given colors.

If less than 5 colors are provided, GTK will pad the array with default colors.

§snapshot

a gdk::Snapshot to snapshot to

§width

width to snapshot in

§height

height to snapshot in

§colors

a pointer to an array of colors

Source

fn snapshot_with_weight( &self, snapshot: &impl IsA<Snapshot>, width: f64, height: f64, colors: &[RGBA], weight: f64, )

Available on crate feature v4_22 only.

Snapshots the paintable with the given colors and weight.

If less than 5 colors are provided, GTK will pad the array with default colors.

§snapshot

a gdk::Snapshot to snapshot to

§width

width to snapshot in

§height

height to snapshot in

§colors

a pointer to an array of colors

§weight

The font weight to use (from 1 to 1000, with default 400)

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§