Lines Matching defs:alpha
52 void SelectedColor::setAlpha(gfloat alpha)
54 g_return_if_fail( ( 0.0 <= alpha ) && ( alpha <= 1.0 ) );
55 setColorAlpha( _color, alpha);
58 gfloat SelectedColor::alpha() const
66 gfloat alpha = SP_RGBA32_A_F(value);
67 setColorAlpha(color, alpha);
75 void SelectedColor::setColorAlpha(SPColor const &color, gfloat alpha, bool emit_signal)
78 g_message("SelectedColor::setColorAlpha( this=%p, %f, %f, %f, %s, %f, %s)", this, color.v.c[0], color.v.c[1], color.v.c[2], (color.icc?color.icc->colorProfile.c_str():"<null>"), alpha, (emit_signal?"YES":"no"));
80 g_return_if_fail( ( 0.0 <= alpha ) && ( alpha <= 1.0 ) );
87 g_message("---- SelectedColor::setColorAlpha virgin:%s !close:%s alpha is:%s",
90 ((fabs((_alpha) - (alpha)) >= _EPSILON )?"YES":"no")
95 (fabs((_alpha) - (alpha)) >= _EPSILON )) {
100 _alpha = alpha;
115 g_message("++++ SelectedColor::setColorAlpha color:%08x ==> _color:%08X isClose:%s", color.toRGBA32(alpha), _color.toRGBA32(_alpha),
121 void SelectedColor::colorAlpha(SPColor &color, gfloat &alpha) const {
123 alpha = _alpha;