diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-04-07 18:24:48 +0000 |
commit | cca66b9ec4e494c1d919bff0f71a820d8afab1fa (patch) | |
tree | 146f39ded1c938019e1ed42d30923c2ac9e86789 /src/colorspace.h | |
parent | Initial commit. (diff) | |
download | inkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.tar.xz inkscape-cca66b9ec4e494c1d919bff0f71a820d8afab1fa.zip |
Adding upstream version 1.2.2.upstream/1.2.2upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to '')
-rw-r--r-- | src/colorspace.h | 53 |
1 files changed, 53 insertions, 0 deletions
diff --git a/src/colorspace.h b/src/colorspace.h new file mode 100644 index 0000000..bed120b --- /dev/null +++ b/src/colorspace.h @@ -0,0 +1,53 @@ +// SPDX-License-Identifier: GPL-2.0-or-later +#ifndef SEEN_COLOR_SPACE_H +#define SEEN_COLOR_SPACE_H + +/* + * Authors: + * Jon A. Cruz <jon@joncruz.org> + * + * Copyright (C) 2013 Authors + * + * Released under GNU GPL v2+, read the file 'COPYING' for more information. + */ + +#ifdef HAVE_CONFIG_H +# include "config.h" // only include where actually required! +#endif + +#if HAVE_STDINT_H +# include <cstdint> +#endif + +#include <vector> +#include <string> + + +namespace Inkscape +{ + +class ColorProfile; + +} // namespace Inkscape + +namespace colorspace +{ + +class Component +{ +public: + Component(); + Component(std::string name, std::string tip, guint scale); + + std::string name; + std::string tip; + guint scale; +}; + +std::vector<Component> getColorSpaceInfo( uint32_t space ); + +std::vector<Component> getColorSpaceInfo( Inkscape::ColorProfile *prof ); + +} // namespace colorspace + +#endif // SEEN_COLOR_SPACE_H |