pub trait SymbolicPaintableExt: IsA<SymbolicPaintable> + '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
Provided Methods§
Sourcefn snapshot_symbolic(
&self,
snapshot: &impl IsA<Snapshot>,
width: f64,
height: f64,
colors: &[RGBA],
)
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.