Inkscape
Vector Graphics Editor
color-scales.cpp File Reference

Color selector using sliders for each components, for multiple color modes. More...

Go to the source code of this file.

Namespaces

namespace  Inkscape
 CMYK to sRGB conversion routines.
 
namespace  Inkscape::UI
 User interface code.
 
namespace  Inkscape::UI::Widget
 Custom widgets.
 

Functions

static guchar const * Inkscape::UI::Widget::sp_color_scales_hue_map ()
 
static guchar const * Inkscape::UI::Widget::sp_color_scales_hsluv_map (guchar *map, std::function< void(float *, float)> callback)
 
const char * Inkscape::UI::Widget::get_color_mode_icon (SPColorScalesMode mode)
 
const char * Inkscape::UI::Widget::get_color_mode_label (SPColorScalesMode mode)
 
std::unique_ptr< Inkscape::UI::ColorSelectorFactoryInkscape::UI::Widget::get_factory (SPColorScalesMode mode)
 
std::vector< ColorPickerDescription > Inkscape::UI::Widget::get_color_pickers ()
 
static void Inkscape::UI::Widget::sp_color_interp (guchar *out, gint steps, gfloat *start, gfloat *end)
 
template<typename T >
static std::vector< T > Inkscape::UI::Widget::range (int const steps, T start, T end)
 

Variables

static constexpr int CSC_CHANNEL_R = (1 << 0)
 
static constexpr int CSC_CHANNEL_G = (1 << 1)
 
static constexpr int CSC_CHANNEL_B = (1 << 2)
 
static constexpr int CSC_CHANNEL_A = (1 << 3)
 
static constexpr int CSC_CHANNEL_H = (1 << 0)
 
static constexpr int CSC_CHANNEL_S = (1 << 1)
 
static constexpr int CSC_CHANNEL_V = (1 << 2)
 
static constexpr int CSC_CHANNEL_C = (1 << 0)
 
static constexpr int CSC_CHANNEL_M = (1 << 1)
 
static constexpr int CSC_CHANNEL_Y = (1 << 2)
 
static constexpr int CSC_CHANNEL_K = (1 << 3)
 
static constexpr int CSC_CHANNEL_CMYKA = (1 << 4)
 
static constexpr int CSC_CHANNELS_ALL = 0
 
static constexpr int XPAD = 2
 
static constexpr int YPAD = 2
 
static const char * Inkscape::UI::Widget::color_mode_icons []
 
const char * Inkscape::UI::Widget::color_mode_name []
 

Detailed Description

Color selector using sliders for each components, for multiple color modes.

Definition in file color-scales.cpp.

Variable Documentation

◆ CSC_CHANNEL_A

constexpr int CSC_CHANNEL_A = (1 << 3)
staticconstexpr

◆ CSC_CHANNEL_B

constexpr int CSC_CHANNEL_B = (1 << 2)
staticconstexpr

◆ CSC_CHANNEL_C

constexpr int CSC_CHANNEL_C = (1 << 0)
staticconstexpr

◆ CSC_CHANNEL_CMYKA

constexpr int CSC_CHANNEL_CMYKA = (1 << 4)
staticconstexpr

◆ CSC_CHANNEL_G

constexpr int CSC_CHANNEL_G = (1 << 1)
staticconstexpr

◆ CSC_CHANNEL_H

constexpr int CSC_CHANNEL_H = (1 << 0)
staticconstexpr

◆ CSC_CHANNEL_K

constexpr int CSC_CHANNEL_K = (1 << 3)
staticconstexpr

◆ CSC_CHANNEL_M

constexpr int CSC_CHANNEL_M = (1 << 1)
staticconstexpr

◆ CSC_CHANNEL_R

constexpr int CSC_CHANNEL_R = (1 << 0)
staticconstexpr

◆ CSC_CHANNEL_S

constexpr int CSC_CHANNEL_S = (1 << 1)
staticconstexpr

◆ CSC_CHANNEL_V

constexpr int CSC_CHANNEL_V = (1 << 2)
staticconstexpr

◆ CSC_CHANNEL_Y

constexpr int CSC_CHANNEL_Y = (1 << 2)
staticconstexpr

◆ CSC_CHANNELS_ALL

constexpr int CSC_CHANNELS_ALL = 0
staticconstexpr

◆ XPAD

constexpr int XPAD = 2
staticconstexpr

Definition at line 54 of file color-scales.cpp.

Referenced by Inkscape::UI::Widget::ColorScales< MODE >::_initUI().

◆ YPAD

constexpr int YPAD = 2
staticconstexpr

Definition at line 55 of file color-scales.cpp.

Referenced by Inkscape::UI::Widget::ColorScales< MODE >::_initUI().