module Gtk::SymbolicPaintable

Overview

Gtk::SymbolicPaintable is an interface that support symbolic colors in paintables.

Gdk::Paintables implementing the interface will have the 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.

Direct including types

Defined in:

lib/gi-crystal/src/auto/gtk-4.0/symbolic_paintable.cr

Class Method Summary

Instance Method Summary

Class Method Detail

def self.g_type : UInt64 #

Instance Method Detail

def snapshot_symbolic(snapshot : Gdk::Snapshot, width : Float64, height : Float64, colors : Enumerable(Gdk::RGBA)) : Nil #

abstract def to_unsafe #