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
15namespace libmspub
16{
26struct Shadow
27{
35 double m_opacity;
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};
48bool needsEmulation(const Shadow &shadow);
49} // namespace libmspub
50
51#endif /* INCLUDED_SHADOW_H */
52/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition ColorReference.h:20
Definition Arrow.h:14
bool needsEmulation(const Shadow &shadow)
Definition Shadow.cpp:15
ShadowType
Definition Shadow.h:18
@ OFFSET
Definition Shadow.h:19
@ RICH
Definition Shadow.h:21
@ DRAWING
Definition Shadow.h:23
@ DOUBLE
Definition Shadow.h:20
@ EMBOSS_OR_ENGRAVE
Definition Shadow.h:24
@ SHADOW_SHAPE
Definition Shadow.h:22
int m_offsetYInEmu
Definition Shadow.h:30
ShadowType m_type
Definition Shadow.h:28
int m_SecondOffsetXInEmu
Definition Shadow.h:31
int m_SecondOffsetYInEmu
Definition Shadow.h:32
double m_opacity
Definition Shadow.h:35
ColorReference m_highColor
Definition Shadow.h:37
double m_originYInEmu
Definition Shadow.h:34
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
int m_offsetXInEmu
Definition Shadow.h:29
ColorReference m_color
Definition Shadow.h:36
double m_originXInEmu
Definition Shadow.h:33

Generated for libmspub by doxygen 1.14.0