Logo Search packages:      
Sourcecode: inkscape version File versions

Inkscape::UI::Dialogs::ColorItem Class Reference

Inheritance diagram for Inkscape::UI::Dialogs::ColorItem:

List of all members.

Detailed Description

The color swatch you see on screen as a clickable box.

Definition at line 61 of file swatches.cpp.

Public Member Functions

void buttonClicked (bool secondary=false)
 ColorItem (ColorItem const &other)
 ColorItem (unsigned int r, unsigned int g, unsigned int b, Glib::ustring &name)
 ColorItem (ege::PaintDef::ColorType type)
virtual Gtk::Widget * getPreview (PreviewStyle style, ViewType view,::PreviewSize size, guint ratio)
bool isFill ()
bool isStroke ()
virtual ColorItemoperator= (ColorItem const &other)
void setState (bool fill, bool stroke)

Public Attributes

ege::PaintDef def
void * ptr

Private Member Functions

void _linkTint (ColorItem &other, int percent)
void _linkTone (ColorItem &other, int percent, int grayLevel)

Static Private Member Functions

static void _colorDefChanged (void *data)
static void _dragGetColorData (GtkWidget *widget, GdkDragContext *drag_context, GtkSelectionData *data, guint info, guint time, gpointer user_data)
static void _dropDataIn (GtkWidget *widget, GdkDragContext *drag_context, gint x, gint y, GtkSelectionData *data, guint info, guint event_time, gpointer user_data)
static void _wireMagicColors (void *p)

Private Attributes

bool _isFill
bool _isLive
bool _isStroke
int _linkGray
bool _linkIsTone
int _linkPercent
std::vector< ColorItem * > _listeners
std::vector< Gtk::Widget * > _previews
Gtk::Tooltips tips


void _loadPaletteFile (gchar const *filename)

The documentation for this class was generated from the following file:

Generated by  Doxygen 1.6.0   Back to index