mirror of
https://github.com/creyD/intelliphoto.git
synced 2026-04-13 03:40:31 +02:00
37 lines
834 B
C++
37 lines
834 B
C++
#ifndef Intelli_Tool_H
|
|
#define Intelli_Tool_H
|
|
|
|
#include "IntelliHelper/IntelliColorPicker.h"
|
|
#include <vector>
|
|
|
|
class LayerObject;
|
|
class PaintingArea;
|
|
|
|
class IntelliTool{
|
|
private:
|
|
void createToolLayer();
|
|
void mergeToolLayer();
|
|
void deleteToolLayer();
|
|
protected:
|
|
PaintingArea* Area;
|
|
IntelliColorPicker* colorPicker;
|
|
|
|
LayerObject* Active;
|
|
LayerObject* Canvas;
|
|
bool drawing = false;
|
|
|
|
public:
|
|
IntelliTool(PaintingArea* Area, IntelliColorPicker* colorPicker);
|
|
virtual ~IntelliTool() = 0;
|
|
|
|
virtual void onMouseRightPressed(int x, int y);
|
|
virtual void onMouseRightReleased(int x, int y);
|
|
virtual void onMouseLeftPressed(int x, int y);
|
|
virtual void onMouseLeftReleased(int x, int y);
|
|
|
|
virtual void onWheelScrolled(int value);
|
|
|
|
virtual void onMouseMoved(int x, int y);
|
|
};
|
|
#endif
|