IntelliPhoto
0.4
IntelliToolFloodFill.h
Go to the documentation of this file.
1
#ifndef INTELLITOOLFLOODFILL_H
2
#define INTELLITOOLFLOODFILL_H
3
#include "
IntelliTool.h
"
4
5
#include "QColor"
6
10
class
IntelliToolFloodFill
:
public
IntelliTool
{
11
public
:
17
IntelliToolFloodFill
(
PaintingArea
*
Area
,
IntelliColorPicker
*
colorPicker
);
18
22
virtual
~IntelliToolFloodFill
()
override
;
23
24
30
virtual
void
onMouseRightPressed
(
int
x,
int
y)
override
;
31
37
virtual
void
onMouseRightReleased
(
int
x,
int
y)
override
;
38
44
virtual
void
onMouseLeftPressed
(
int
x,
int
y)
override
;
45
51
virtual
void
onMouseLeftReleased
(
int
x,
int
y)
override
;
52
57
virtual
void
onWheelScrolled
(
int
value)
override
;
58
64
virtual
void
onMouseMoved
(
int
x,
int
y)
override
;
65
};
66
67
#endif // INTELLITOOLFLOODFILL_H
IntelliTool::colorPicker
IntelliColorPicker * colorPicker
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition:
IntelliTool.h:38
IntelliToolFloodFill::onMouseRightReleased
virtual void onMouseRightReleased(int x, int y) override
A function managing the right click released of a mouse.
Definition:
IntelliToolFloodFill.cpp:21
IntelliTool.h
IntelliToolFloodFill::onMouseLeftReleased
virtual void onMouseLeftReleased(int x, int y) override
A function managing the left click released of a mouse.
Definition:
IntelliToolFloodFill.cpp:66
IntelliToolFloodFill::onWheelScrolled
virtual void onWheelScrolled(int value) override
A function managing the scroll event.
Definition:
IntelliToolFloodFill.cpp:70
IntelliTool::Area
PaintingArea * Area
A pointer to the general PaintingArea to interact with.
Definition:
IntelliTool.h:33
IntelliToolFloodFill::onMouseLeftPressed
virtual void onMouseLeftPressed(int x, int y) override
A function managing the left click pressed of a mouse. Sets the point to flood fill around and does t...
Definition:
IntelliToolFloodFill.cpp:25
PaintingArea
Definition:
PaintingArea.h:25
IntelliToolFloodFill::~IntelliToolFloodFill
virtual ~IntelliToolFloodFill() override
A Destructor.
Definition:
IntelliToolFloodFill.cpp:12
IntelliToolFloodFill::IntelliToolFloodFill
IntelliToolFloodFill(PaintingArea *Area, IntelliColorPicker *colorPicker)
A constructor setting the general paintingArea and colorPicker.
Definition:
IntelliToolFloodFill.cpp:8
IntelliToolFloodFill::onMouseMoved
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event.
Definition:
IntelliToolFloodFill.cpp:75
IntelliTool
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition:
IntelliTool.h:13
IntelliColorPicker
The IntelliColorPicker manages the selected colors for one whole project.
Definition:
IntelliColorPicker.h:11
IntelliToolFloodFill::onMouseRightPressed
virtual void onMouseRightPressed(int x, int y) override
A function managing the right click pressed of a mouse. Clearing the canvas.
Definition:
IntelliToolFloodFill.cpp:17
IntelliToolFloodFill
The IntelliToolFloodFill class represents a tool to flood FIll a certian area.
Definition:
IntelliToolFloodFill.h:10
intelliphoto
src
Tool
IntelliToolFloodFill.h
Generated by
1.8.16