~inkscape.dev/inkscape/trunk

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
#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, read the file 'COPYING' for more information
 */

#ifdef HAVE_CONFIG_H
# include "config.h"
#endif // HAVE_CONFIG_H

#if HAVE_STDINT_H
# include <stdint.h>
#endif

#include <vector>
#include <string>


namespace Inkscape
{

class ColorProfile;

} // namespace Inkscape

namespace colorspace
{

class Component
{
public:
    Component();
    Component(std::string const &name, std::string const &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