Logo Search packages:      
Sourcecode: xulrunner version File versions

gfxRGBA Struct Reference

#include <gfxColor.h>

List of all members.


Detailed Description

A color value, storing red, green, blue and alpha components. This class does not use premultiplied alpha.

XXX should this use doubles (instead of gfxFloat), for consistency with cairo?

Definition at line 159 of file gfxColor.h.


Public Types

enum  PackedColorType {
  PACKED_ABGR, PACKED_ABGR_PREMULTIPLIED, PACKED_ARGB, PACKED_ARGB_PREMULTIPLIED,
  PACKED_XBGR, PACKED_XRGB
}

Public Member Functions

 gfxRGBA (PRUint32 c, PackedColorType colorType=PACKED_ABGR)
 gfxRGBA (gfxFloat _r, gfxFloat _g, gfxFloat _b, gfxFloat _a=1.0)
 gfxRGBA (const gfxRGBA &c)
PRUint32 Packed (PackedColorType colorType=PACKED_ABGR) const

Public Attributes

gfxFloat a
gfxFloat b
gfxFloat g
gfxFloat r

The documentation for this struct was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index