Interface
GtkSymbolicPaintable
since: 4.6
Description [src]
interface Gtk.SymbolicPaintable : Gdk.Paintable
GtkSymbolicPaintable
is an interface that support symbolic colors in paintables.
GdkPaintable
s implementing the interface will have the
Gtk.SymbolicPaintableInterface.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.
Available since: 4.6
Prerequisite
In order to implement SymbolicPaintable, your type must inherit fromGdkPaintable
.
Interface structure
struct GtkSymbolicPaintableInterface {
void (* snapshot_symbolic) (
GtkSymbolicPaintable* paintable,
GdkSnapshot* snapshot,
double width,
double height,
const GdkRGBA* colors,
gsize n_colors
);
}
The list of virtual functions for the GtkSymbolicPaintable
interface.
No function must be implemented, default implementations exist for each one.
Interface members
snapshot_symbolic |
|
Snapshot the paintable using the given colors.
See |