Arrow.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 INCLUDED_ARROW_H
11#define INCLUDED_ARROW_H
12
13 namespace libmspub
14{
15 enum ArrowStyle
16{
17 NO_ARROW,
18 TRIANGLE_ARROW,
19 STEALTH_ANGLE_ARROW,
20 ROTATED_SQUARE_ARROW,
21 CIRCLE_ARROW,
22 LINE_ARROW
23};
24 enum ArrowSize
25{
26 SMALL,
27 MEDIUM,
28 LARGE
29};
30 struct Arrow
31{
32 ArrowStyle m_style;
33 ArrowSize m_width;
34 ArrowSize m_height;
35 Arrow(ArrowStyle style, ArrowSize width, ArrowSize height) :
36 m_style(style), m_width(width), m_height(height)
37 {
38 }
39};
40} // namespace libmspub
41
42#endif /* INCLUDED_ARROW_H */
43/* vim:set shiftwidth=2 softtabstop=2 expandtab: */
libmspub
Definition Arrow.h:14
libmspub::ArrowStyle
ArrowStyle
Definition Arrow.h:16
libmspub::STEALTH_ANGLE_ARROW
@ STEALTH_ANGLE_ARROW
Definition Arrow.h:19
libmspub::ROTATED_SQUARE_ARROW
@ ROTATED_SQUARE_ARROW
Definition Arrow.h:20
libmspub::NO_ARROW
@ NO_ARROW
Definition Arrow.h:17
libmspub::CIRCLE_ARROW
@ CIRCLE_ARROW
Definition Arrow.h:21
libmspub::LINE_ARROW
@ LINE_ARROW
Definition Arrow.h:22
libmspub::TRIANGLE_ARROW
@ TRIANGLE_ARROW
Definition Arrow.h:18
libmspub::ArrowSize
ArrowSize
Definition Arrow.h:25
libmspub::LARGE
@ LARGE
Definition Arrow.h:28
libmspub::MEDIUM
@ MEDIUM
Definition Arrow.h:27
libmspub::SMALL
@ SMALL
Definition Arrow.h:26
libmspub::Arrow::m_width
ArrowSize m_width
Definition Arrow.h:33
libmspub::Arrow::m_style
ArrowStyle m_style
Definition Arrow.h:32
libmspub::Arrow::Arrow
Arrow(ArrowStyle style, ArrowSize width, ArrowSize height)
Definition Arrow.h:35
libmspub::Arrow::m_height
ArrowSize m_height
Definition Arrow.h:34