Blame src/lib/Line.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_LINE_H
rpm-build 9243a4
#define INCLUDED_LINE_H
rpm-build 9243a4
rpm-build 9243a4
#include <boost/optional.hpp>
rpm-build 9243a4
rpm-build 9243a4
#include "ColorReference.h"
rpm-build 9243a4
#include "Dash.h"
rpm-build 9243a4
rpm-build 9243a4
namespace libmspub
rpm-build 9243a4
{
rpm-build 9243a4
struct Line
rpm-build 9243a4
{
rpm-build 9243a4
  ColorReference m_color;
rpm-build 9243a4
  unsigned m_widthInEmu;
rpm-build 9243a4
  bool m_lineExists;
rpm-build 9243a4
  boost::optional<Dash> m_dash;
rpm-build 9243a4
  Line(ColorReference color, unsigned widthInEmu, bool lineExists) :
rpm-build 9243a4
    m_color(color), m_widthInEmu(widthInEmu), m_lineExists(lineExists),
rpm-build 9243a4
    m_dash() { }
rpm-build 9243a4
  Line(ColorReference color, unsigned widthInEmu, bool lineExists, Dash dash) :
rpm-build 9243a4
    m_color(color), m_widthInEmu(widthInEmu), m_lineExists(lineExists),
rpm-build 9243a4
    m_dash(dash) { }
rpm-build 9243a4
  bool operator==(const Line &r) const
rpm-build 9243a4
  {
rpm-build 9243a4
    return m_color == r.m_color && m_widthInEmu == r.m_widthInEmu &&
rpm-build 9243a4
           m_lineExists == r.m_lineExists && m_dash == r.m_dash;
rpm-build 9243a4
  }
rpm-build 9243a4
};
rpm-build 9243a4
}
rpm-build 9243a4
rpm-build 9243a4
#endif
rpm-build 9243a4
/* vim:set shiftwidth=2 softtabstop=2 expandtab: */