Inkscape
Vector Graphics Editor
|
A Gtk::DrawingArea to preview color palette menu items by showing a small example of the colors. More...
#include <color-palette-preview.h>
Public Member Functions | |
ColorPalettePreview (std::vector< rgb_t > colors) | |
Construct with colors that we will preview. | |
Private Member Functions | |
void | draw_func (Cairo::RefPtr< Cairo::Context > const &cr, int, int) |
Private Attributes | |
std::vector< rgb_t > | _colors |
A Gtk::DrawingArea to preview color palette menu items by showing a small example of the colors.
Definition at line 26 of file color-palette-preview.h.
Inkscape::UI::Widget::ColorPalettePreview::ColorPalettePreview | ( | std::vector< rgb_t > | colors | ) |
Construct with colors that we will preview.
Definition at line 26 of file color-palette-preview.cpp.
References draw_func(), and Inkscape::UI::Widget::height.
|
private |
Definition at line 35 of file color-palette-preview.cpp.
References _colors, Inkscape::UI::Widget::dx, Inkscape::UI::Widget::height, index, and width.
Referenced by ColorPalettePreview().
|
private |
Definition at line 33 of file color-palette-preview.h.
Referenced by draw_func().