#include <color.h>
| Public Member Functions | |
| void | adjust_hue (float hue) | 
| void | adjust_lightness (float change) | 
| void | adjust_saturation (float change) | 
| rgba_color_t | get_color () const | 
| void | get_color (color_component_t &red, color_component_t &green, color_component_t &blue, color_component_t &alpha) const | 
| void | get_hsl (color_component_t &hue, color_component_t &saturation, color_component_t &lightness, color_component_t &alpha) const | 
| bool | is_solid () const | 
| bool | is_transparent () const | 
| void | set_color (byte_component_t red, byte_component_t green, byte_component_t blue, byte_component_t alpha) | 
| void | set_color (color_component_t red, color_component_t green, color_component_t blue, color_component_t alpha) | 
| void | set_color (double red, double green, double blue, double alpha) | 
| void | set_color (int red, int green, int blue, int alpha) | 
| void | set_color (rgba_color_t const rgba) | 
| bool | set_color (std::string const &name, bool name_only) | 
| void | set_color (unsigned int red, unsigned int green, unsigned int blue, unsigned int alpha) | 
| void | set_hsl (color_component_t h, color_component_t s, color_component_t l, color_component_t alpha) | 
| std::string | to_string () const | 
| Private Attributes | |
| color_component_t | f_alpha = 1.0 | 
| color_component_t | f_blue = 0.0 | 
| color_component_t | f_green = 0.0 | 
| color_component_t | f_red = 0.0 | 
| void csspp::color::adjust_hue | ( | float | hue | ) | 
| void csspp::color::adjust_lightness | ( | float | change | ) | 
| void csspp::color::adjust_saturation | ( | float | change | ) | 
| rgba_color_t csspp::color::get_color | ( | ) | const | 
Definition at line 467 of file color.cpp.
References f_alpha, f_blue, f_green, and f_red.
Referenced by csspp::anonymous_namespace{expr_additive.cpp}::add(), csspp::node::display(), csspp::expression::is_equal(), csspp::expression::multiply(), csspp::node::set_color(), csspp::node::to_boolean(), and to_string().
| void csspp::color::get_color | ( | color_component_t & | red, | 
| color_component_t & | green, | ||
| color_component_t & | blue, | ||
| color_component_t & | alpha | ||
| ) | const | 
| void csspp::color::get_hsl | ( | color_component_t & | hue, | 
| color_component_t & | saturation, | ||
| color_component_t & | lightness, | ||
| color_component_t & | alpha | ||
| ) | const | 
| bool csspp::color::is_transparent | ( | ) | const | 
| void csspp::color::set_color | ( | byte_component_t | red, | 
| byte_component_t | green, | ||
| byte_component_t | blue, | ||
| byte_component_t | alpha | ||
| ) | 
| void csspp::color::set_color | ( | color_component_t | red, | 
| color_component_t | green, | ||
| color_component_t | blue, | ||
| color_component_t | alpha | ||
| ) | 
| void csspp::color::set_color | ( | double | red, | 
| double | green, | ||
| double | blue, | ||
| double | alpha | ||
| ) | 
| void csspp::color::set_color | ( | int | red, | 
| int | green, | ||
| int | blue, | ||
| int | alpha | ||
| ) | 
| void csspp::color::set_color | ( | rgba_color_t const | rgba | ) | 
Definition at line 228 of file color.cpp.
References set_color().
Referenced by csspp::anonymous_namespace{expr_additive.cpp}::add(), csspp::node::get_color(), csspp::expression::multiply(), set_color(), set_color(), and csspp::expression::unary().
| bool csspp::color::set_color | ( | std::string const & | name, | 
| bool | name_only | ||
| ) | 
Definition at line 276 of file color.cpp.
References f_alpha, f_blue, f_green, f_red, csspp::lexer::hex_to_dec(), csspp::lexer::is_hex(), and set_color().
| void csspp::color::set_color | ( | unsigned int | red, | 
| unsigned int | green, | ||
| unsigned int | blue, | ||
| unsigned int | alpha | ||
| ) | 
| void csspp::color::set_hsl | ( | color_component_t | h, | 
| color_component_t | s, | ||
| color_component_t | l, | ||
| color_component_t | alpha | ||
| ) | 
Definition at line 354 of file color.cpp.
References f_alpha, f_blue, f_green, f_red, and M_PI.
Referenced by csspp::expression::internal_function__hsl(), and csspp::expression::internal_function__hsla().
| std::string csspp::color::to_string | ( | ) | const | 
Definition at line 495 of file color.cpp.
References csspp::decimal_number_to_string(), f_alpha, and get_color().
Referenced by csspp::assembler::output(), and csspp::node::to_string().
| 
 | private | 
Definition at line 67 of file color.h.
Referenced by get_color(), get_color(), get_hsl(), is_solid(), is_transparent(), set_color(), set_color(), set_color(), set_color(), set_color(), set_color(), set_hsl(), and to_string().
| 
 | private | 
Definition at line 66 of file color.h.
Referenced by get_color(), get_color(), get_hsl(), set_color(), set_color(), set_color(), set_color(), set_color(), set_color(), and set_hsl().
| 
 | private | 
Definition at line 65 of file color.h.
Referenced by get_color(), get_color(), get_hsl(), set_color(), set_color(), set_color(), set_color(), set_color(), set_color(), and set_hsl().
| 
 | private | 
Definition at line 64 of file color.h.
Referenced by get_color(), get_color(), get_hsl(), set_color(), set_color(), set_color(), set_color(), set_color(), set_color(), and set_hsl().
Documentation of CSS Preprocessor.
This document is part of the Snap! Websites Project.
Copyright by Made to Order Software Corp.