void STFSliders::SetVisibleRange( double a, double b ) { v0 = Range( a, 0.0, 1.0 ); v1 = Range( b, 0.0, 1.0 ); if ( v1 < v0 ) Swap( v0, v1 ); InvalidateGradient(); Update(); }
void STFSliders::SetChannel( int c, bool color ) { if ( (c = Range( c, 0, 3 )) != channel || color != rgb ) { channel = c; rgb = color; InvalidateGradient(); Update(); } }
void CSVGGradientEditCtl::NewColor(COLORREF newrgb) { PrepareRange(); InvalidatePreview(); InvalidateGradient(); }