Package: gtk

Function gtk:style-context-color

Lambda List

gtk:style-context-color (context state)

Arguments

context -- a gtk:style-context object
state -- a value of the gtk:state-flags flags to retrieve the color for

Return Value

The gdk:rgba foreground color.

Details

Gets the foreground color for a given state. See the gtk:style-context-property function for details.

Examples

(setq context (gtk:style-context-new))
=> #<GTK-STYLE-CONTEXT {10058ED093}>
(gtk:style-context-color context :normal)
=> #S(GDK-RGBA :RED 1.0d0 :GREEN 1.0d0 :BLUE 1.0d0 :ALPHA 1.0d0)    
 

See also

#2023-3-27