diff options
| author | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-19 18:55:42 +0000 |
|---|---|---|
| committer | Emmanuel Gil Peyrot <linkmauve@linkmauve.fr> | 2018-06-19 22:26:34 +0000 |
| commit | cf5edc95c552fe32d365f33b77e2213e814a980a (patch) | |
| tree | 9206667956e077dffe01724924e15d5c52ce423f /src/color.h | |
| parent | Run clang-tidy’s modernize-redundant-void-arg pass. (diff) | |
| download | inkscape-cf5edc95c552fe32d365f33b77e2213e814a980a.tar.gz inkscape-cf5edc95c552fe32d365f33b77e2213e814a980a.zip | |
Replace functions with methods in SPColor.
Diffstat (limited to 'src/color.h')
| -rw-r--r-- | src/color.h | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/src/color.h b/src/color.h index 02a4fc90f..1bc29673f 100644 --- a/src/color.h +++ b/src/color.h @@ -62,24 +62,24 @@ struct SPColor { union { float c[3]; } v; -}; -guint32 sp_color_get_rgba32_ualpha (const SPColor *color, guint32 alpha); -guint32 sp_color_get_rgba32_falpha (const SPColor *color, float alpha); + guint32 get_rgba32_ualpha (guint32 alpha) const; + guint32 get_rgba32_falpha (float alpha) const; -void sp_color_get_rgb_floatv (const SPColor *color, float *rgb); -void sp_color_get_cmyk_floatv (const SPColor *color, float *cmyk); + void get_rgb_floatv (float *rgb) const; + void get_cmyk_floatv (float *cmyk) const; -/* Plain mode helpers */ + /* Plain mode helpers */ -void sp_color_rgb_to_hsv_floatv (float *hsv, float r, float g, float b); -void sp_color_hsv_to_rgb_floatv (float *rgb, float h, float s, float v); + static void rgb_to_hsv_floatv (float *hsv, float r, float g, float b); + static void hsv_to_rgb_floatv (float *rgb, float h, float s, float v); -void sp_color_rgb_to_hsl_floatv (float *hsl, float r, float g, float b); -void sp_color_hsl_to_rgb_floatv (float *rgb, float h, float s, float l); + static void rgb_to_hsl_floatv (float *hsl, float r, float g, float b); + static void hsl_to_rgb_floatv (float *rgb, float h, float s, float l); -void sp_color_rgb_to_cmyk_floatv (float *cmyk, float r, float g, float b); -void sp_color_cmyk_to_rgb_floatv (float *rgb, float c, float m, float y, float k); + static void rgb_to_cmyk_floatv (float *cmyk, float r, float g, float b); + static void cmyk_to_rgb_floatv (float *rgb, float c, float m, float y, float k); +}; #endif // SEEN_SP_COLOR_H |
