ShapeInfo.h
Go to the documentation of this file.
1 /* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
2 /* libmspub
3  * Version: MPL 1.1 / GPLv2+ / LGPLv2+
4  *
5  * The contents of this file are subject to the Mozilla Public License Version
6  * 1.1 (the "License"); you may not use this file except in compliance with
7  * the License or as specified alternatively below. You may obtain a copy of
8  * the License at http://www.mozilla.org/MPL/
9  *
10  * Software distributed under the License is distributed on an "AS IS" basis,
11  * WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
12  * for the specific language governing rights and limitations under the
13  * License.
14  *
15  * Major Contributor(s):
16  * Copyright (C) 2012 Brennan Vincent <brennanv@email.arizona.edu>
17  *
18  * All Rights Reserved.
19  *
20  * For minor contributions see the git repository.
21  *
22  * Alternatively, the contents of this file may be used under the terms of
23  * either the GNU General Public License Version 2 or later (the "GPLv2+"), or
24  * the GNU Lesser General Public License Version 2 or later (the "LGPLv2+"),
25  * in which case the provisions of the GPLv2+ or the LGPLv2+ are applicable
26  * instead of those above.
27  */
28 #ifndef __SHAPEINFO_H__
29 #define __SHAPEINFO_H__
30 #include <boost/optional.hpp>
31 #include <boost/shared_ptr.hpp>
32 #include <map>
33 #include <vector>
34 #include "ShapeType.h"
35 #include "Coordinate.h"
36 #include "Line.h"
37 #include "Margins.h"
38 #include "MSPUBTypes.h"
39 #include "Fill.h"
40 namespace libmspub
41 {
42 struct ShapeInfo
43 {
44  boost::optional<ShapeType> m_type;
45  boost::optional<unsigned> m_imgIndex;
46  boost::optional<Coordinate> m_coordinates;
47  std::vector<Line> m_lines;
48  boost::optional<unsigned> m_pageSeqNum;
49  boost::optional<std::pair<unsigned, unsigned> > m_textInfo;
50  std::map<unsigned, int> m_adjustValuesByIndex;
51  std::vector<int> m_adjustValues;
52  boost::optional<double> m_rotation;
53  boost::optional<std::pair<bool, bool> > m_flips;
54  boost::optional<Margins> m_margins;
55  boost::optional<BorderPosition> m_borderPosition; // Irrelevant except for rectangular shapes
56  boost::shared_ptr<const Fill> m_fill;
60  m_fill()
61  {
62  }
63 };
64 }
65 #endif
66 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */

Generated for libmspub by doxygen 1.8.1.1