Interface

GtkSymbolicPaintable

Description [src]

interface Gtk.SymbolicPaintable : Gdk.Paintable

GtkSymbolicPaintable is an interface that support symbolic colors in paintables.

GdkPaintables 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 from GdkPaintable.

Implementations

Instance methods

gtk_symbolic_paintable_snapshot_symbolic

Snapshots the paintable with the given colors.

Available since: 4.6

Interface structure

struct GtkSymbolicPaintableInterface {
  void (* snapshot_symbolic) (
    GtkSymbolicPaintable* paintable,
    GdkSnapshot* snapshot,
    double width,
    double height,
    const GdkRGBA* colors,
    gsize n_colors
  );
  
}
Interface members
snapshot_symbolic
void (* snapshot_symbolic) (
    GtkSymbolicPaintable* paintable,
    GdkSnapshot* snapshot,
    double width,
    double height,
    const GdkRGBA* colors,
    gsize n_colors
  )
 No description available.

Virtual methods

Gtk.SymbolicPaintable.snapshot_symbolic

Snapshots the paintable with the given colors.