64 // |
64 // |
65 // Object type codes. |
65 // Object type codes. |
66 // |
66 // |
67 enum LDObjectType |
67 enum LDObjectType |
68 { |
68 { |
69 OBJ_SubfileReference, // Object represents a sub-file reference |
69 SubfileReference, // Object represents a sub-file reference |
70 OBJ_Quad, // Object represents a quadrilateral |
70 Quad, // Object represents a quadrilateral |
71 OBJ_Triangle, // Object represents a triangle |
71 Triangle, // Object represents a triangle |
72 OBJ_Line, // Object represents a line |
72 Line, // Object represents a line |
73 OBJ_CondLine, // Object represents a conditional line |
73 CondLine, // Object represents a conditional line |
74 OBJ_Bfc, // Object represents a BFC statement |
74 Bfc, // Object represents a BFC statement |
75 OBJ_Overlay, // Object contains meta-info about an overlay image. |
75 Comment, // Object represents a comment |
76 OBJ_Comment, // Object represents a comment |
76 Error, // Object is the result of failed parsing |
77 OBJ_Error, // Object is the result of failed parsing |
77 Empty, // Object represents an empty line |
78 OBJ_Empty, // Object represents an empty line |
78 BezierCurve, // Object represents a Bézier curve |
79 OBJ_BezierCurve, // Object represents a Bézier curve |
79 _End |
80 |
80 }; |
81 OBJ_NumTypes, // Amount of object types |
81 |
82 OBJ_FirstType = OBJ_SubfileReference |
82 MAKE_ITERABLE_ENUM(LDObjectType) |
83 }; |
|
84 |
|
85 MAKE_ITERABLE_ENUM (LDObjectType, OBJ_SubfileReference, OBJ_BezierCurve) |
|
86 |
83 |
87 // |
84 // |
88 // LDObject |
85 // LDObject |
89 // |
86 // |
90 // Base class object for all object types. Each LDObject represents a single line |
87 // Base class object for all object types. Each LDObject represents a single line |