Mozilla2:GFXColor: Difference between revisions

From MozillaWiki
Jump to navigation Jump to search
mNo edit summary
 
Line 1: Line 1:
== gfxColor Class ==
== gfxColor Class ==
We should be using RGBA colors all over the tree.  It needs to be able to accept packed uint32 colors (nscolor) that we currently use as well as accept strings of hex colors or named colors.
We should be using RGBA colors all over the tree.  It needs to be able to accept packed uint32 colors (nscolor) that we currently use as well as accept strings of hex colors or named colors.
''Why should color parsing be done here, rather than in the code that gets the string?''--[[User:Biesi|Biesi]] 16:58, 25 Jun 2005 (PDT)


=== The API ===
=== The API ===
[http://lxr.mozilla.org/mozilla/source/gfx/thebes/public/gfxColor.h gfxColor.h]
[http://lxr.mozilla.org/mozilla/source/gfx/thebes/public/gfxColor.h gfxColor.h]

Latest revision as of 23:58, 25 June 2005

gfxColor Class

We should be using RGBA colors all over the tree. It needs to be able to accept packed uint32 colors (nscolor) that we currently use as well as accept strings of hex colors or named colors.

Why should color parsing be done here, rather than in the code that gets the string?--Biesi 16:58, 25 Jun 2005 (PDT)

The API

gfxColor.h