lab 5 part 2 complete

This commit is contained in:
2022-05-10 01:45:01 -05:00
parent 780c2bba3c
commit 6a425d5300
10 changed files with 345 additions and 102 deletions

View File

@@ -19,12 +19,25 @@ class Line: public Shape{
public:
// Line constructor
Line(int x0, int y0, int x1, int y1, uint32_t color);
Line(const Line& from);
// Line copy constructor
Line(const Line& from);
// Line destructor
~Line();
// Line assignment operator
Line& operator=(const Line& rhs);
// Draw function
void draw(GraphicsContext *gc);
// Outputs line data to os
void out(std::ostream& os) const;
// Clones a line
Shape* clone();
};
#endif