Arrow.h
Go to the documentation of this file.
/* -*- Mode: C++; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* This file is part of the libmspub project.
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
#ifndef INCLUDED_ARROW_H
#define INCLUDED_ARROW_H
namespace libmspub
{
enum ArrowStyle
{
NO_ARROW,
TRIANGLE_ARROW,
STEALTH_ANGLE_ARROW,
ROTATED_SQUARE_ARROW,
CIRCLE_ARROW,
LINE_ARROW
};
enum ArrowSize
{
SMALL,
MEDIUM,
LARGE
};
struct Arrow
{
ArrowStyle m_style;
ArrowSize m_width;
ArrowSize m_height;
Arrow(ArrowStyle style, ArrowSize width, ArrowSize height) :
m_style(style), m_width(width), m_height(height)
{
}
};
} // namespace libmspub
#endif /* INCLUDED_ARROW_H */
/* 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