Web page hosting and cheap domains registration services
  

 Home

GDK Classes
Prev GdkColor Next

GdkColor

A structure that holds a defined color.

Object Hierarchy

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


Prev Home Next
GdkBitmap::width Up GdkColor Constructor

 

  

Network sites:

$8.95 domain registration : cheap domains from US$5.95

Active-Domain.com: domain register and domain registration services 

 
 
 

Disclaimer: This documentation is provided only for the benefits of our webhosting customers.
For authoritative source of the documentation, please refer to http://gtk.php.net/docs.php