Shadow.h
Go to the documentation of this file.
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libmspub project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_SHADOW_H
#define INCLUDED_SHADOW_H
#include "ColorReference.h"
namespace libmspub
{
enum ShadowType
{
OFFSET,
DOUBLE,
RICH,
SHADOW_SHAPE,
DRAWING,
EMBOSS_OR_ENGRAVE
};
struct Shadow
{
ShadowType m_type;
int m_offsetXInEmu;
int m_offsetYInEmu;
int m_SecondOffsetXInEmu;
int m_SecondOffsetYInEmu;
double m_originXInEmu;
double m_originYInEmu;
double m_opacity;
ColorReference m_color;
ColorReference m_highColor;
Shadow(ShadowType type, int offsetXInEmu, int offsetYInEmu, int secondOffsetXInEmu, int secondOffsetYInEmu,
double originXInEmu, double originYInEmu, double opacity,
ColorReference color, ColorReference colorH)
: m_type(type), m_offsetXInEmu(offsetXInEmu), m_offsetYInEmu(offsetYInEmu),
m_SecondOffsetXInEmu(secondOffsetXInEmu), m_SecondOffsetYInEmu(secondOffsetYInEmu),
m_originXInEmu(originXInEmu), m_originYInEmu(originYInEmu),
m_opacity(opacity), m_color(color), m_highColor(colorH)
{
}
};
bool needsEmulation(const Shadow &shadow);
} // namespace libmspub
#endif /* INCLUDED_SHADOW_H */
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
ColorReference.h
libmspub::ColorReference
Definition ColorReference.h:20
libmspub
Definition Arrow.h:14
libmspub::needsEmulation
bool needsEmulation(const Shadow &shadow)
Definition Shadow.cpp:15
libmspub::ShadowType
ShadowType
Definition Shadow.h:18
libmspub::OFFSET
@ OFFSET
Definition Shadow.h:19
libmspub::RICH
@ RICH
Definition Shadow.h:21
libmspub::DRAWING
@ DRAWING
Definition Shadow.h:23
libmspub::DOUBLE
@ DOUBLE
Definition Shadow.h:20
libmspub::EMBOSS_OR_ENGRAVE
@ EMBOSS_OR_ENGRAVE
Definition Shadow.h:24
libmspub::SHADOW_SHAPE
@ SHADOW_SHAPE
Definition Shadow.h:22
libmspub::Shadow::m_offsetYInEmu
int m_offsetYInEmu
Definition Shadow.h:30
libmspub::Shadow::m_type
ShadowType m_type
Definition Shadow.h:28
libmspub::Shadow::m_SecondOffsetXInEmu
int m_SecondOffsetXInEmu
Definition Shadow.h:31
libmspub::Shadow::m_SecondOffsetYInEmu
int m_SecondOffsetYInEmu
Definition Shadow.h:32
libmspub::Shadow::m_opacity
double m_opacity
Definition Shadow.h:35
libmspub::Shadow::m_highColor
ColorReference m_highColor
Definition Shadow.h:37
libmspub::Shadow::m_originYInEmu
double m_originYInEmu
Definition Shadow.h:34
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_offsetXInEmu
int m_offsetXInEmu
Definition Shadow.h:29
libmspub::Shadow::m_color
ColorReference m_color
Definition Shadow.h:36
libmspub::Shadow::m_originXInEmu
double m_originXInEmu
Definition Shadow.h:33