Blame c++/vector/curvearea.h
|
|
a7e4c0 |
#ifndef CURVEAREA_H
|
|
|
a7e4c0 |
#define CURVEAREA_H
|
|
|
a7e4c0 |
|
|
|
a7e4c0 |
|
|
|
a7e4c0 |
#include "activearea.h"
|
|
|
a7e4c0 |
#include "activecurve.h"
|
|
|
a7e4c0 |
|
|
|
a7e4c0 |
|
|
|
a7e4c0 |
class CurveArea: public ActiveArea {
|
|
|
a7e4c0 |
protected:
|
|
|
a7e4c0 |
ActivePoint::Handle hp0, hp1, ht0, ht1;
|
|
|
a7e4c0 |
ActivePoint::Handle bp0, bp1, bpp0, bpp1;
|
|
|
a7e4c0 |
ActivePoint::Handle cross;
|
|
|
a7e4c0 |
|
|
|
a7e4c0 |
void put_rect(const Context &context, const Rect &rect);
|
|
|
a7e4c0 |
void put_hmark(const Context &context, const Vector &point);
|
|
|
a7e4c0 |
void put_vmark(const Context &context, const Vector &point);
|
|
|
a7e4c0 |
void put_hline(const Context &context, const Vector &point);
|
|
|
a7e4c0 |
void put_vline(const Context &context, const Vector &point);
|
|
|
a7e4c0 |
void put_cross(const Context &context, const Vector &point);
|
|
|
a7e4c0 |
|
|
|
a7e4c0 |
void on_point_move(const ActivePoint::Handle &point, const Vector &oldposition, const Vector &newposition) override;
|
|
|
a7e4c0 |
void on_draw_content(const Context &context) override;
|
|
|
a7e4c0 |
|
|
|
a7e4c0 |
public:
|
|
|
a7e4c0 |
CurveArea();
|
|
|
a7e4c0 |
};
|
|
|
a7e4c0 |
|
|
|
a7e4c0 |
|
|
|
a7e4c0 |
#endif
|