Package: gdk

GBoxed gdk:rgba

Declaration

(define-gboxed-cstruct gdk:rgba "GdkRGBA"
  (:export t
   :type-initializer "gdk_rgba_get_type")
  (red :double :initform 0.0d0)
  (green :double :initform 0.0d0)
  (blue :double :initform 0.0d0)
  (alpha :double :initform 0.0d0))  

Values

red
The intensity of the red channel from 0.0 to 1.0 inclusive.
green
The intensity of the green channel from 0.0 to 1.0 inclusive.
blue
The intensity of the blue channel from 0.0 to 1.0 inclusive.
alpha
The opacity of the color from 0.0 for completely translucent to 1.0 for opaque.

Details

The gdk:rgba structure is used to represent a (possibly translucent) color, in a way that is compatible with Cairo's notion of color.
 

Returned by

Slot Access Functions

2025-1-15