Next: Gtk Module, Previous: Gdk Module, Up: Top
The following extra Gdk level functions are provided by Guile Gtk.
If color is a
GdkColor
object, return it. If it's a string then parse it usinggdk-color-parse
and allocate a pixel usinggdk-color-alloc
ingtk-widget-get-default-colormap
.A program can use
gdk-color-intern
as an easy way to convert strings toGdkColor
objects, so as to avoid repeatedly having that done when calling functions expecting a color.
If font is a
GdkFont
object, return it. If it's a string then load that font usinggdk-font-load
, throwing an error if that function fails.A program can use
gdk-font-intern
as an easy way to convert strings toGdkFont
objects, so as to avoid repeatedly having that done when calling functions expecting a font.