GdkColor Constructor

GdkColor Constructor

GdkColor (int red, int green, int blue);

When constructing a GdkColor directly, you will need to use the system's color names, hex RGB triples or XcmsRGB values. Attempting to use other formats here will not result in an error message, because the structure itself recognises them, but equally they will not display, because the function doesn't recognise them at all.

The options when directly constructing colors in PHP-GTK are:

Color names that are used on a given system are defined in a file named rgb.txt. The equivalent file is not available in human-readable form under win32, although utilised. Here is one of the better reference pages currently online detailing the standard color names used by window management systems.

See also: GtkStyle.

© Copyright 2003-2023 www.php-editors.com. The ultimate PHP Editor and PHP IDE site.