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
7
class
IntelliToolFloodFill
:
public
IntelliTool
{
8
public
:
9
IntelliToolFloodFill
(
PaintingArea
*
Area
,
IntelliColorPicker
*
colorPicker
);
10
virtual
~IntelliToolFloodFill
()
override
;
11
12
13
virtual
void
onMouseRightPressed
(
int
x,
int
y)
override
;
14
virtual
void
onMouseRightReleased
(
int
x,
int
y)
override
;
15
virtual
void
onMouseLeftPressed
(
int
x,
int
y)
override
;
16
virtual
void
onMouseLeftReleased
(
int
x,
int
y)
override
;
17
18
virtual
void
onWheelScrolled
(
int
value)
override
;
19
20
virtual
void
onMouseMoved
(
int
x,
int
y)
override
;
21
};
22
23
#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. Merging the Canvas to Active....
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. Call this in child classes!
Definition:
IntelliToolFloodFill.cpp:66
IntelliToolFloodFill::onWheelScrolled
virtual void onWheelScrolled(int value) override
A function managing the scroll event. A Positive Value means scrolling outwards. Call this in child c...
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. Resetting the current draw....
Definition:
IntelliToolFloodFill.cpp:25
PaintingArea
Definition:
PaintingArea.h:26
IntelliToolFloodFill::~IntelliToolFloodFill
virtual ~IntelliToolFloodFill() override
Definition:
IntelliToolFloodFill.cpp:12
IntelliToolFloodFill::IntelliToolFloodFill
IntelliToolFloodFill(PaintingArea *Area, IntelliColorPicker *colorPicker)
Definition:
IntelliToolFloodFill.cpp:8
IntelliToolFloodFill::onMouseMoved
virtual void onMouseMoved(int x, int y) override
A function managing the mouse moved event. Call this in child classes!
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. Constructing the Canvas to draw on....
Definition:
IntelliToolFloodFill.cpp:17
IntelliToolFloodFill
Definition:
IntelliToolFloodFill.h:7
intelliphoto
src
Tool
IntelliToolFloodFill.h
Generated by
1.8.16