Package: gtk

Function gtk:style-context-property

Lambda List

gtk:style-context-property (context property state)

Arguments

context -- a gtk:style-context object
property -- a string with a style property name
state -- a value of the gtk:state-flags flags to retrieve the property value for

Return Value

The value for the style property.

Details

Gets a style property from the style context for the given state.

Examples

(setq context (gtk:style-context-new))
=> #<GTK-STYLE-CONTEXT {100687D223}>
(gtk:style-context-property context "color" :normal)
=> #S(GDK-RGBA :RED 1.0d0 :GREEN 1.0d0 :BLUE 1.0d0 :ALPHA 1.0d0)
(gtk:style-context-property context "opacity" :normal)
=> 1.0d0
(gtk:style-context-property context "font" :normal)
=> #<PANGO-FONT-DESCRIPTION {100687E0B3}>
(pango:font-description-to-string *)
=> "Ubuntu 11"    
 

See also

#2023-3-27