summaryrefslogtreecommitdiffstats
path: root/src/colorspace.h
blob: bed120b5e29eed0787381bf1efb65015841d5328 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
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