Trait gtk4::prelude::SymbolicPaintableExt

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

Trait containing all SymbolicPaintable methods.

§Implementors

IconPaintable, 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 4 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

Object Safety§

This trait is not object safe.

Implementors§