module Gtk::SymbolicPaintable
Overview
An interface that supports symbolic colors in paintables.
Gdk::Paintable
s 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.crConstructors
-
.cast(obj : GObject::Object) : self
Cast a
GObject::Object
toself
, throws aTypeCastError
if the cast can't be made.
Class Method Summary
Instance Method Summary
- #snapshot_symbolic(snapshot : Gdk::Snapshot, width : Float64, height : Float64, colors : Enumerable(Gdk::RGBA)) : Nil
- #to_unsafe
Constructor Detail
Class Method Detail
Instance Method Detail
def snapshot_symbolic(snapshot : Gdk::Snapshot, width : Float64, height : Float64, colors : Enumerable(Gdk::RGBA)) : Nil
#