Inkscape
Vector Graphics Editor
Loading...
Searching...
No Matches
Inkscape::UI::Widget::ColorPalettePreview Class Reference

A Gtk::DrawingArea to preview color palette menu items by showing a small example of the colors. More...

#include <color-palette-preview.h>

Inheritance diagram for Inkscape::UI::Widget::ColorPalettePreview:

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
 

Detailed Description

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.

Constructor & Destructor Documentation

◆ ColorPalettePreview()

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.

Member Function Documentation

◆ draw_func()

void Inkscape::UI::Widget::ColorPalettePreview::draw_func ( Cairo::RefPtr< Cairo::Context > const &  cr,
int  width,
int  height 
)
private

Member Data Documentation

◆ _colors

std::vector<rgb_t> Inkscape::UI::Widget::ColorPalettePreview::_colors
private

Definition at line 33 of file color-palette-preview.h.

Referenced by draw_func().


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