Next: , Previous: Gdk Module, Up: Top


6 Gdk Extras

The following extra Gdk level functions are provided by Guile Gtk.

— Function: gdk-color-intern color

If color is a GdkColor object, return it. If it's a string then parse it using gdk-color-parse and allocate a pixel using gdk-color-alloc in gtk-widget-get-default-colormap.

A program can use gdk-color-intern as an easy way to convert strings to GdkColor objects, so as to avoid repeatedly having that done when calling functions expecting a color.

— Function: gdk-color-new

Return a new GdkColor object, with zeros in all fields.

— Function: gdk-font-intern font

If font is a GdkFont object, return it. If it's a string then load that font using gdk-font-load, throwing an error if that function fails.

A program can use gdk-font-intern as an easy way to convert strings to GdkFont objects, so as to avoid repeatedly having that done when calling functions expecting a font.