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