Main Page
Namespaces
Classes
Files
File List
File Members
ColorReference.h
Go to the documentation of this file.
1
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2
/*
3
* This file is part of the libmspub project.
4
*
5
* This Source Code Form is subject to the terms of the Mozilla Public
6
* License, v. 2.0. If a copy of the MPL was not distributed with this
7
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
8
*/
9
10
#ifndef __COLORREFERENCE_H__
11
#define __COLORREFERENCE_H__
12
13
#include "
MSPUBTypes.h
"
14
15
namespace
libmspub
16
{
17
class
ColorReference
18
{
19
unsigned
m_baseColor
;
20
unsigned
m_modifiedColor
;
21
// static const unsigned char COLOR_PALETTE;
22
static
const
unsigned
char
CHANGE_INTENSITY
;
23
static
const
unsigned
char
BLACK_BASE
;
24
static
const
unsigned
char
WHITE_BASE
;
25
Color
getRealColor
(
unsigned
c,
const
std::vector<Color> &palette)
const
;
26
public
:
27
explicit
ColorReference
(
unsigned
color) :
m_baseColor
(color),
m_modifiedColor
(color) { }
28
ColorReference
(
unsigned
baseColor,
unsigned
modifiedColor) :
m_baseColor
(baseColor),
m_modifiedColor
(modifiedColor) { }
29
Color
getFinalColor
(
const
std::vector<Color> &palette)
const
;
30
public
:
31
friend
bool
operator==
(
const
libmspub::ColorReference
&,
const
libmspub::ColorReference
&);
32
};
33
}
34
35
#endif
/* __COLORREFERENCE_H__ */
36
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Generated for libmspub by
doxygen
1.8.4