synfig-core
1.0.3
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
src
synfig
dashitem.h
Go to the documentation of this file.
1
/* === S Y N F I G ========================================================= */
22
/* ========================================================================= */
23
24
/* === S T A R T =========================================================== */
25
26
#ifndef __SYNFIG_DASHITEM_H
27
#define __SYNFIG_DASHITEM_H
28
29
/* === H E A D E R S ======================================================= */
30
31
#include "
uniqueid.h
"
32
#include "
real.h
"
33
34
/* === M A C R O S ========================================================= */
35
36
/* === T Y P E D E F S ===================================================== */
37
38
/* === C L A S S E S & S T R U C T S ======================================= */
39
40
namespace
synfig {
41
42
class
DashItem
:
public
UniqueID
43
{
44
private
:
45
Real
offset_;
46
Real
length_;
47
int
side_type_[2];
// Before [0] and After[1] side types
48
public
:
49
enum
SideType
50
{
51
TYPE_ROUNDED
=1,
52
TYPE_SQUARED
=2,
53
TYPE_PEAK
=3,
54
TYPE_FLAT
=4
55
};
56
DashItem
();
57
DashItem
(
Real
position,
Real
length,
int
sidebefore=
TYPE_FLAT
,
58
int
sideafter=
TYPE_FLAT
);
59
60
const
Real
&
get_length
()
const
;
61
void
set_length
(
Real
x);
62
const
Real
&
get_offset
()
const
;
63
void
set_offset
(
Real
x);
64
int
get_side_type_before
()
const
;
65
void
set_side_type_before
(
int
sidebefore);
66
int
get_side_type_after
()
const
;
67
void
set_side_type_after
(
int
sideafter);
68
int
get_side_type
(
int
i)
const
;
69
bool
operator ==
(
const
DashItem
& rhs);
70
};
// END of class DashItem
71
72
};
// END of namespace synfig
73
74
/* === E N D =============================================================== */
75
76
#endif
Generated on Mon Nov 16 2015 15:33:39 for synfig-core by
1.8.1.2