Interface
GtkSymbolicPaintable
since: 4.6
Description [src]
interface Gtk.SymbolicPaintable : Gdk.Paintable
An interface that supports 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 5 colors
are guaranteed to be passed every time. These 5 colors are the
foreground color, and the colors to use for errors, warnings
and success information in that order, followed by the system
accent color.
The system accent color has been added in GTK 4.22. More colors may be added in the future.
Available since: 4.6
Prerequisite
In order to implement SymbolicPaintable, your type must inherit fromGdkPaintable
.
Instance methods
gtk_symbolic_paintable_snapshot_with_weight
Snapshots the paintable with the given colors and weight.
unstable since: 4.22
Interface structure
struct GtkSymbolicPaintableInterface {
void (* snapshot_symbolic) (
GtkSymbolicPaintable* paintable,
GdkSnapshot* snapshot,
double width,
double height,
const GdkRGBA* colors,
gsize n_colors
);
void (* snapshot_with_weight) (
GtkSymbolicPaintable* paintable,
GdkSnapshot* snapshot,
double width,
double height,
const GdkRGBA* colors,
gsize n_colors,
double weight
);
}
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 |
|
snapshot_with_weight |
|
Like |
Virtual methods
Gtk.SymbolicPaintable.snapshot_with_weight
Snapshots the paintable with the given colors and weight.
unstable since: 4.22