Line.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 __LINE_H__
11#define __LINE_H__
12#include "Dash.h"
13#include <boost/optional.hpp>
14#include "ColorReference.h"
15
16namespace libmspub
17{
18struct Line
19{
21 unsigned m_widthInEmu;
23 boost::optional<Dash> m_dash;
24 Line(ColorReference color, unsigned widthInEmu, bool lineExists) :
25 m_color(color), m_widthInEmu(widthInEmu), m_lineExists(lineExists),
26 m_dash() { }
27 Line(ColorReference color, unsigned widthInEmu, bool lineExists, Dash dash) :
28 m_color(color), m_widthInEmu(widthInEmu), m_lineExists(lineExists),
29 m_dash(dash) { }
30 bool operator==(const Line &r) const
31 {
32 return m_color == r.m_color && m_widthInEmu == r.m_widthInEmu &&
34 }
35};
36}
37
38#endif
39/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
Definition: ColorReference.h:18
Definition: Arrow.h:14
Definition: Dash.h:49
Definition: Line.h:19
bool operator==(const Line &r) const
Definition: Line.h:30
Line(ColorReference color, unsigned widthInEmu, bool lineExists, Dash dash)
Definition: Line.h:27
Line(ColorReference color, unsigned widthInEmu, bool lineExists)
Definition: Line.h:24
bool m_lineExists
Definition: Line.h:22
boost::optional< Dash > m_dash
Definition: Line.h:23
ColorReference m_color
Definition: Line.h:20
unsigned m_widthInEmu
Definition: Line.h:21

Generated for libmspub by doxygen 1.9.3