color-item.h revision 9081c90ce6f9015ecd7566a85fd1630de21dc343
/** @file
* @brief Inkscape color swatch UI item.
*/
/* Authors:
* Jon A. Cruz
*
* Copyright (C) 2010 Jon A. Cruz
*
* Released under GNU GPL, read the file 'COPYING' for more information
*/
#ifndef SEEN_DIALOGS_COLOR_ITEM_H
#define SEEN_DIALOGS_COLOR_ITEM_H
#include "widgets/ege-paint-def.h"
#include "ui/previewable.h"
{
SwatchPage();
~SwatchPage();
int _prefWidth;
};
/**
* The color swatch you see on screen as a clickable box.
*/
{
ColorItem( unsigned int r, unsigned int g, unsigned int b,
::PreviewSize size,
void buttonClicked(bool secondary = false);
static void _colorDefChanged(void* data);
void _updatePreviews();
bool _isFill;
bool _isStroke;
bool _isLive;
bool _linkIsTone;
int _linkPercent;
int _linkGray;
};
} // namespace Dialogs
} // namespace UI
} // namespace Inkscape
#endif // SEEN_DIALOGS_COLOR_ITEM_H
/*
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 :