lab 5 part 2 complete
This commit is contained in:
15
Lab5/line.h
15
Lab5/line.h
@@ -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
|
||||
Reference in New Issue
Block a user