karbon

vcomposite_iface.h
1/* This file is part of the KDE project
2 Copyright (C) 2001, The Karbon Developers
3 Copyright (C) 2002, The Karbon Developers
4
5 This library is free software; you can redistribute it and/or
6 modify it under the terms of the GNU Library General Public
7 License as published by the Free Software Foundation; either
8 version 2 of the License, or (at your option) any later version.
9
10 This library is distributed in the hope that it will be useful,
11 but WITHOUT ANY WARRANTY; without even the implied warranty of
12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 Library General Public License for more details.
14
15 You should have received a copy of the GNU Library General Public License
16 along with this library; see the file COPYING.LIB. If not, write to
17 the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
18 * Boston, MA 02110-1301, USA.
19*/
20
21#ifndef __VCOMPOSITE_IFACE_H__
22#define __VCOMPOSITE_IFACE_H__
23
24#include "vobject_iface.h"
25
26class VPath;
27
28class VPathIface : public VObjectIface
29{
30 K_DCOP
31
32public:
33 VPathIface( VPath *composite );
34
35k_dcop:
36 bool moveTo( double x, double y );
37 bool lineTo( double x, double y );
38 bool curveTo( double x1, double y1, double x2, double y2, double x3, double y3 );
39 bool curve1To( double x2, double y2, double x3, double y3 );
40 bool curve2To( double x1, double y1, double x2, double y2 );
41 bool arcTo( double x1, double y1, double x2, double y2, double r );
42 void close();
43
44 //bool drawCenterNode() const;
45 //void setDrawCenterNode( bool drawCenterNode = true );
46
47private:
48 VPath *m_composite;
49};
50
51#endif
A composite path consists of one or many subpaths.
Definition vcomposite.h:48