public:
enum Type
{
- TYPE_NONE = (0),
- TYPE_POSITION = (1<<0),
- TYPE_TANGENT = (1<<1),
- TYPE_RADIUS = (1<<2),
- TYPE_WIDTH = (1<<3),
- TYPE_ANGLE = (1<<4),
- TYPE_VERTEX = (1<<5),
+ TYPE_NONE = (0), // 0
+ TYPE_POSITION = (1<<0), // 1
+ TYPE_TANGENT = (1<<1), // 2
+ TYPE_RADIUS = (1<<2), // 4
+ TYPE_WIDTH = (1<<3), // 8
+ TYPE_ANGLE = (1<<4), // 16
+ TYPE_VERTEX = (1<<5), // 32
TYPE_ALL = (~0),
synfig::String get_name()const { return name; }
bool operator==(const Duck &rhs)const;
+
+#ifdef _DEBUG
+ //! Returns a string containing the name of the given Type
+ static synfig::String type_name(Type id);
+
+ //! Returns a string containing the name of the type
+ synfig::String type_name()const { return type_name(get_type()); }
+#endif // _DEBUG
+
}; // END of class Duck
//! Combine Flags