Files
CS3210/Lab5/line.h
2022-04-25 19:10:06 -05:00

29 lines
553 B
C++

#ifndef line_h
#define line_h
/**
* @file line.h
* @author Trevor Barnes (barnestr@msoe.edu)
* @brief
* @version 1.0
* @date 2022-04-12
*
* @copyright Copyright (c) 2022
*
*/
#include "shape.h"
#include "matrix.h"
#include "x11context.h"
class Line: public Shape{
public:
// Line constructor
Line(int x0, int y0, int x1, int y1, uint32_t color);
Line(const Line& from);
~Line();
Line& operator=(const Line& rhs);
void draw(GraphicsContext *gc);
Shape* clone();
};
#endif