selected-color.cpp revision 30d948d7644df2d9d66a700f98beea195c2fc391
/** @file
* Color selected in color selector widget.
* This file was created during the refactoring of SPColorSelector
*//*
* Authors:
* bulia byak <buliabyak@users.sf.net>
* Jon A. Cruz <jon@joncruz.org>
* Tomasz Boczkowski <penginsbacon@gmail.com>
*
* Copyright (C) 2014 Authors
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#include "selected-color.h"
#include <cmath>
#include <glib.h>
namespace Inkscape {
namespace UI {
: _color(0)
, _alpha(1.0)
, _virgin(true)
, _held(false)
{
}
SelectedColor::~SelectedColor() {
}
{
}
{
return _color;
}
{
}
{
return _alpha;
}
{
#ifdef DUMP_CHANGE_INFO
g_message("SelectedColor::setColorAlpha( this=%p, %f, %f, %f, %s, %f, %s) in %s", this, color.v.c[0], color.v.c[1], color.v.c[2], (color.icc?color.icc->colorProfile.c_str():"<null>"), alpha, (emit?"YES":"no"), FOO_NAME(_csel));
#endif
#ifdef DUMP_CHANGE_INFO
g_message("---- SelectedColor::setColorAlpha virgin:%s !close:%s alpha is:%s in %s",
);
#endif
_virgin = false;
if (emit) {
if (_held) {
} else {
}
}
#ifdef DUMP_CHANGE_INFO
} else {
g_message("++++ SelectedColor::setColorAlpha color:%08x ==> _color:%08X isClose:%s in %s", color.toRGBA32(alpha), _color.toRGBA32(_alpha),
#endif
}
}
}
if (grabbed) {
}
if (released) {
}
}
}
}
/*
Local Variables:
mode:c++
c-file-style:"stroustrup"
c-file-offsets:((innamespace . 0)(inline-open . 0)(case-label . +))
indent-tabs-mode:nil
fill-column:99
End:
*/
// vim: filetype=cpp:expandtab:shiftwidth=4:tabstop=8:softtabstop=4:fileencoding=utf-8:textwidth=99 :