gtk.symbolic_paintable_mixin

Module for SymbolicPaintable interface mixin

Templates 2

tmplSymbolicPaintableT()

gtk.symbolic_paintable.SymbolicPaintable is an interface that support symbolic colors in paintables.

gdk.paintable.Paintables implementing the interface will have the vfunc@Gtk.SymbolicPaintable.snapshot_symbolic function called and have the colors for drawing symbolic icons passed. At least 4 colors are guaranteed to be passed every time.

These 4 colors are the foreground color, and the colors to use for errors, warnings and success information in that order.

More colors may be added in the future.

Functions
void snapshotSymbolic(gdk.snapshot.Snapshot snapshot, double width, double height, gdk.rgba.RGBA[] colors)

Snapshots the paintable with the given colors.

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

Parameters

snapshota gdk.snapshot.Snapshot to snapshot to
widthwidth to snapshot in
heightheight to snapshot in
colorsa pointer to an array of colors
tmplSymbolicPaintableGidBuilderT()

Fluent builder implementation template for gtk.symbolic_paintable.SymbolicPaintable