Package: gdk

GBoxed gdk:color

Declaration

(define-gboxed-cstruct color "GdkColor"
  (:export t
   :type-initializer "gdk_color_get_type")
  (pixel :uint32 :initform 0)
  (red :uint16 :initform 0)
  (green :uint16 :initform 0)
  (blue :uint16 :initform 0))  

Values

pixel
For allocated colors, the pixel value used to draw this color on the screen. Not used anymore.
red
The red component of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.
green
The green component of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.
blue
The blue component of the color. This is a value between 0 and 65535, with 65535 indicating full intensity.

Details

The gdk:color structure is used to describe a color, similar to the XColor structure used in the X11 drawing API.

Warning

The gdk:color structure has been deprecated since version 3.14 and should not be used in newly written code. Use the gdk:rgba structure.
 

Returned by

Slot Access Functions

See also

2025-1-15