gtk4::prelude

Trait 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

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§