snapshot_with_weight
Description:
[ Version ( since = "4.22" ) ]
public abstract void snapshot_with_weight (Snapshot snapshot, double width, double height, RGBA[] colors, double weight)
public abstract void snapshot_with_weight (Snapshot snapshot, double width, double height, RGBA[] colors, double weight)
Snapshots the paintable with the given colors and weight.
If less than 5 colors are provided, GTK will pad the array with default colors.
Parameters:
| this |
a `GtkSymbolicPaintable` |
| snapshot |
a `GdkSnapshot` 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) |
| n_colors |
The number of colors |