Package: gtk
Function gtk:snapshot-append-color
Lambda Listgtk:snapshot-append-color (snapshot color bounds) ArgumentsDetails
Creates a new render node drawing the color into the given bounds and appends it to the current render node of snapshot. You should try to avoid calling this function if color is transparent. Examples(defmethod color-swatch-snapshot-impl ((swatch color-swatch) snapshot) (let ((width (gtk:widget-width swatch)) (height (gtk:widget-height swatch)) (color (color-swatch-color swatch))) (graphene:with-rect (bounds 0 0 width height) (gtk:snapshot-append-color snapshot color bounds)))) | See also |
2025-08-23