Shadow.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 INCLUDED_SHADOW_H
11 #define INCLUDED_SHADOW_H
12
13 #include "ColorReference.h"
14
15 namespace libmspub
16 {
17 enum ShadowType
18 {
19 OFFSET,
20 DOUBLE,
21 RICH,
22 SHADOW_SHAPE,
23 DRAWING,
24 EMBOSS_OR_ENGRAVE
25 };
26 struct Shadow
27 {
28 ShadowType m_type;
29 int m_offsetXInEmu;
30 int m_offsetYInEmu;
31 int m_SecondOffsetXInEmu;
32 int m_SecondOffsetYInEmu;
33 double m_originXInEmu;
34 double m_originYInEmu;
35 double m_opacity;
36 ColorReference m_color;
37 ColorReference m_highColor;
38 Shadow(ShadowType type, int offsetXInEmu, int offsetYInEmu, int secondOffsetXInEmu, int secondOffsetYInEmu,
39 double originXInEmu, double originYInEmu, double opacity,
40 ColorReference color, ColorReference colorH)
41 : m_type(type), m_offsetXInEmu(offsetXInEmu), m_offsetYInEmu(offsetYInEmu),
42 m_SecondOffsetXInEmu(secondOffsetXInEmu), m_SecondOffsetYInEmu(secondOffsetYInEmu),
43 m_originXInEmu(originXInEmu), m_originYInEmu(originYInEmu),
44 m_opacity(opacity), m_color(color), m_highColor(colorH)
45 {
46 }
47 };
48 bool needsEmulation(const Shadow &shadow);
49 } // namespace libmspub
50
51 #endif /* INCLUDED_SHADOW_H */
52 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libmspub::needsEmulation
bool needsEmulation(const Shadow &shadow)
Definition: Shadow.cpp:15
libmspub::ShadowType
ShadowType
Definition: Shadow.h:17
ColorReference.h
libmspub::OFFSET
Definition: Shadow.h:19
libmspub::Shadow::m_SecondOffsetYInEmu
int m_SecondOffsetYInEmu
Definition: Shadow.h:32
libmspub::Shadow::m_highColor
ColorReference m_highColor
Definition: Shadow.h:37
libmspub::DRAWING
Definition: Shadow.h:23
libmspub::Shadow::m_type
ShadowType m_type
Definition: Shadow.h:28
libmspub::ColorReference
Definition: ColorReference.h:17
libmspub::Shadow::Shadow
Shadow(ShadowType type, int offsetXInEmu, int offsetYInEmu, int secondOffsetXInEmu, int secondOffsetYInEmu, double originXInEmu, double originYInEmu, double opacity, ColorReference color, ColorReference colorH)
Definition: Shadow.h:38
libmspub::Shadow::m_originYInEmu
double m_originYInEmu
Definition: Shadow.h:34
libmspub::Shadow::m_opacity
double m_opacity
Definition: Shadow.h:35
libmspub::Shadow::m_SecondOffsetXInEmu
int m_SecondOffsetXInEmu
Definition: Shadow.h:31
libmspub
Definition: Arrow.h:13
libmspub::SHADOW_SHAPE
Definition: Shadow.h:22
libmspub::Shadow::m_offsetYInEmu
int m_offsetYInEmu
Definition: Shadow.h:30
libmspub::Shadow::m_offsetXInEmu
int m_offsetXInEmu
Definition: Shadow.h:29
libmspub::DOUBLE
Definition: Shadow.h:20
libmspub::EMBOSS_OR_ENGRAVE
Definition: Shadow.h:24
libmspub::RICH
Definition: Shadow.h:21
libmspub::Shadow::m_color
ColorReference m_color
Definition: Shadow.h:36
libmspub::Shadow::m_originXInEmu
double m_originXInEmu
Definition: Shadow.h:33
libmspub::Shadow
Definition: Shadow.h:26