A GdkGC is made up of a series of properties, each
of which may or may not be set, that describe everything from color to
font to line-width. It forms several of the underlying elements of the
style property in widgets, and is used in GDK where
GtkStyle would be used at GTK level. The
GC part of GdkGC stands for
graphics context, and every GDK drawing function
requires one in much the same way that every GTK drawing function
requires a style.
The functions that allow the getting and setting of
GdkGC properties are internalised in PHP-GTK. For
the most part, we have writeable properties instead of these methods.
Please note that there is no guarantee that all these properties will
be supported by your operating system; win32's 'little black boxes' text
issue is there because win32 does not support stippling, for example.
There is no direct constructor for a GdkGC. To
create one, you will need to use the GdkWindow
method new_gc() and set the
properties that you are interested in directly.