GdkColor

GdkColor

A structure that holds a defined color.

Object Hierarchy

Direct subclasses

None.

Description

A GdkColor provides an object structure for retaining information about a defined color.

This is an XcmsColor structure, and will take values in any XcmsColor format accordingly. Probably the most generally useful of these formats is the gamma-corrected XcmsRGB structure, which takes the range 0 to 65535 per RGB value, with 0, 0, 0 being the color black. RGB values that are given in this way are scaled to match the color range of the hardware device currently being used.

Colors can be assigned through an application's RC files, where the GdkColor objects are constructed via the application colormap defined through the file. Colors that are assigned in this way can be constructed using any of the formats accepted by the XcmsColor structure, including intensity doubles.

Note that this is not the case when assigning a color to a GdkColor directly.

Constructor

GdkColor (int red, int green, int blue);
-- Creates a new color object using one of three possible constructs.

Properties

red:
  The red part of the color
green:
  The green part of the color
blue:
  The blue part of the color

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