2021-12-29 09:59:18 -05:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include "core/point.h"
|
|
|
|
#include "core/color.h"
|
|
|
|
|
|
|
|
namespace kku
|
|
|
|
{
|
|
|
|
|
2022-05-07 23:43:12 -04:00
|
|
|
/// Line
|
|
|
|
///
|
|
|
|
/// Graphical 2D line
|
2021-12-29 09:59:18 -05:00
|
|
|
class Line
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
virtual ~Line() = default;
|
|
|
|
virtual void setPosition(const kku::Point& p1, const kku::Point& p2) = 0;
|
|
|
|
virtual void setColor(const kku::Color& c1, const kku::Color& c2) = 0;
|
|
|
|
virtual void display() = 0;
|
|
|
|
};
|
|
|
|
|
2022-05-07 23:43:12 -04:00
|
|
|
}
|