20 #ifndef _GTKMM2EXT_COLORS_H_
21 #define _GTKMM2EXT_COLORS_H_
26 #include <cairomm/context.h>
78 SVAModifier (
Type t,
double ss,
double vv,
double aa) : type (t), _s (ss) , _v (vv) , _a (aa) {}
81 double s()
const {
return _s; }
82 double v()
const {
return _v; }
83 double a()
const {
return _a; }
99 HSV (
double h,
double s,
double v,
double a = 1.0);
void from_string(std::string const &)
std::string to_string() const
SVAModifier(Type t, double ss, double vv, double aa)
SVAModifier(std::string const &)
std::ostream & operator<<(std::ostream &o, const Gtkmm2ext::HSV &hsv)
PBD::PropertyDescriptor< uint32_t > color
void color_to_hsv(Color color, double &h, double &s, double &v)
void set_source_rgb_a(Cairo::RefPtr< Cairo::Context >, Gtkmm2ext::Color, float alpha)
uint32_t contrasting_text_color(uint32_t c)
Color change_alpha(Color, double alpha)
Color rgba_to_color(double r, double g, double b, double a)
Gdk::Color gdk_color_from_rgb(uint32_t)
Color hsva_to_color(double h, double s, double v, double a=1.0)
Gdk::Color gdk_color_from_rgba(uint32_t)
Color color_at_alpha(Color, double a)
uint32_t gdk_color_to_rgba(Gdk::Color const &)
void set_color_from_rgb(Gdk::Color &, uint32_t)
void color_to_rgba(Color, double &r, double &g, double &b, double &a)
void set_source_rgba(Cairo::RefPtr< Cairo::Context >, Gtkmm2ext::Color)
void set_color_from_rgba(Gdk::Color &, uint32_t)
void color_to_hsva(Color color, double &h, double &s, double &v, double &a)
bool operator==(const ProcessorSelection &a, const ProcessorSelection &b)
std::string to_string() const
HSV delta(const HSV &other) const
HSV lighter(double factor=0.7) const
HSV darker(double factor=1.3) const
HSV & operator=(const std::string &)
HSV mix(const HSV &other, double amt) const
void print(std::ostream &) const
double distance(const HSV &other) const
HSV(double h, double s, double v, double a=1.0)
HSV mod(SVAModifier const &svam)
HSV shade(double factor) const