12 extern def_color g_def_colors
[];
14 class document_container
;
23 static const web_color transparent
;
24 static const web_color black
;
25 static const web_color white
;
27 web_color(byte r
, byte g
, byte b
, byte a
= 255)
43 bool operator==(web_color color
) const { return red
== color
.red
&& green
== color
.green
&& blue
== color
.blue
&& alpha
== color
.alpha
; }
44 bool operator!=(web_color color
) const { return !(*this == color
); }
46 string
to_string() const;
47 static web_color
from_string(const string
& str
, document_container
* callback
);
48 static string
resolve_name(const string
& name
, document_container
* callback
);
49 static bool is_color(const string
& str
, document_container
* callback
);
53 #endif // LH_WEB_COLOR_H