KEYShape.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 libetonyek 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 KEYSHAPE_H_INCLUDED
11 #define KEYSHAPE_H_INCLUDED
12 
13 #include <boost/shared_ptr.hpp>
14 
15 #include "KEYPath_fwd.h"
16 #include "KEYStyle.h"
17 #include "KEYText_fwd.h"
18 
19 namespace libetonyek
20 {
21 
22 struct KEYSize;
23 
26 struct KEYShape
27 {
32 
33  KEYShape();
34 };
35 
36 typedef boost::shared_ptr<KEYShape> KEYShapePtr_t;
37 
41 
44 KEYPathPtr_t makePolygonPath(const KEYSize &size, unsigned edges);
46 
47 KEYPathPtr_t makeArrowPath(const KEYSize &size, double headWidth, double stemThickness);
48 KEYPathPtr_t makeDoubleArrowPath(const KEYSize &size, double headWidth, double stemThickness);
49 KEYPathPtr_t makeStarPath(const KEYSize &size, unsigned points, double innerRadius);
50 KEYPathPtr_t makeConnectionPath(const KEYSize &size, double middleX, double middleY);
51 
52 KEYPathPtr_t makeCalloutPath(const KEYSize &size, double radius, double tailSize, double tailX, double tailY);
53 KEYPathPtr_t makeQuoteBubblePath(const KEYSize &size, double radius, double tailSize, double tailX, double tailY);
54 
55 }
56 
57 #endif // KEYSHAPE_H_INCLUDED
58 
59 /* vim:set shiftwidth=2 softtabstop=2 expandtab: */

Generated for libetonyek by doxygen 1.8.3.1