Blame src/lib/Shadow.h

rpm-build 9243a4
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
rpm-build 9243a4
/*
rpm-build 9243a4
 * This file is part of the libmspub project.
rpm-build 9243a4
 *
rpm-build 9243a4
 * This Source Code Form is subject to the terms of the Mozilla Public
rpm-build 9243a4
 * License, v. 2.0. If a copy of the MPL was not distributed with this
rpm-build 9243a4
 * file, You can obtain one at http://mozilla.org/MPL/2.0/.
rpm-build 9243a4
 */
rpm-build 9243a4
rpm-build 9243a4
#ifndef INCLUDED_SHADOW_H
rpm-build 9243a4
#define INCLUDED_SHADOW_H
rpm-build 9243a4
rpm-build 9243a4
#include "ColorReference.h"
rpm-build 9243a4
rpm-build 9243a4
namespace libmspub
rpm-build 9243a4
{
rpm-build 9243a4
enum ShadowType
rpm-build 9243a4
{
rpm-build 9243a4
  OFFSET,
rpm-build 9243a4
  DOUBLE,
rpm-build 9243a4
  RICH,
rpm-build 9243a4
  SHADOW_SHAPE,
rpm-build 9243a4
  DRAWING,
rpm-build 9243a4
  EMBOSS_OR_ENGRAVE
rpm-build 9243a4
};
rpm-build 9243a4
struct Shadow
rpm-build 9243a4
{
rpm-build 9243a4
  ShadowType m_type;
rpm-build 9243a4
  int m_offsetXInEmu;
rpm-build 9243a4
  int m_offsetYInEmu;
rpm-build 9243a4
  int m_SecondOffsetXInEmu;
rpm-build 9243a4
  int m_SecondOffsetYInEmu;
rpm-build 9243a4
  double m_originXInEmu;
rpm-build 9243a4
  double m_originYInEmu;
rpm-build 9243a4
  double m_opacity;
rpm-build 9243a4
  ColorReference m_color;
rpm-build 9243a4
  ColorReference m_highColor;
rpm-build 9243a4
  Shadow(ShadowType type, int offsetXInEmu, int offsetYInEmu, int secondOffsetXInEmu, int secondOffsetYInEmu,
rpm-build 9243a4
         double originXInEmu, double originYInEmu, double opacity,
rpm-build 9243a4
         ColorReference color, ColorReference colorH)
rpm-build 9243a4
    : m_type(type), m_offsetXInEmu(offsetXInEmu), m_offsetYInEmu(offsetYInEmu),
rpm-build 9243a4
      m_SecondOffsetXInEmu(secondOffsetXInEmu), m_SecondOffsetYInEmu(secondOffsetYInEmu),
rpm-build 9243a4
      m_originXInEmu(originXInEmu), m_originYInEmu(originYInEmu),
rpm-build 9243a4
      m_opacity(opacity), m_color(color), m_highColor(colorH)
rpm-build 9243a4
  {
rpm-build 9243a4
  }
rpm-build 9243a4
};
rpm-build 9243a4
bool needsEmulation(const Shadow &shadow);
rpm-build 9243a4
} // namespace libmspub
rpm-build 9243a4
rpm-build 9243a4
#endif /* INCLUDED_SHADOW_H */
rpm-build 9243a4
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */