Shadow.h
Go to the documentation of this file.
00001 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
00002 /*
00003  * This file is part of the libmspub project.
00004  *
00005  * This Source Code Form is subject to the terms of the Mozilla Public
00006  * License, v. 2.0. If a copy of the MPL was not distributed with this
00007  * file, You can obtain one at http://mozilla.org/MPL/2.0/.
00008  */
00009 
00010 #ifndef __SHADOW_H__
00011 #define __SHADOW_H__
00012 
00013 #include "ColorReference.h"
00014 
00015 namespace libmspub
00016 {
00017 enum ShadowType
00018 {
00019   OFFSET,
00020   DOUBLE,
00021   RICH,
00022   SHADOW_SHAPE,
00023   DRAWING,
00024   EMBOSS_OR_ENGRAVE
00025 };
00026 struct Shadow
00027 {
00028   ShadowType m_type;
00029   int m_offsetXInEmu;
00030   int m_offsetYInEmu;
00031   int m_SecondOffsetXInEmu;
00032   int m_SecondOffsetYInEmu;
00033   double m_originXInEmu;
00034   double m_originYInEmu;
00035   double m_opacity;
00036   ColorReference m_color;
00037   ColorReference m_highColor;
00038   Shadow(ShadowType type, int offsetXInEmu, int offsetYInEmu, int secondOffsetXInEmu, int secondOffsetYInEmu,
00039          double originXInEmu, double originYInEmu, double opacity,
00040          ColorReference color, ColorReference colorH)
00041     : m_type(type), m_offsetXInEmu(offsetXInEmu), m_offsetYInEmu(offsetYInEmu),
00042       m_SecondOffsetXInEmu(secondOffsetXInEmu), m_SecondOffsetYInEmu(secondOffsetYInEmu),
00043       m_originXInEmu(originXInEmu), m_originYInEmu(originYInEmu),
00044       m_opacity(opacity), m_color(color), m_highColor(colorH)
00045   {
00046   }
00047 };
00048 bool needsEmulation(const Shadow &shadow);
00049 } // namespace libmspub
00050 
00051 #endif /* __SHADOW_H__ */
00052 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */