|
IntelliPhoto
0.4
|
An abstract class that manages the basic events, like mouse clicks or scrolls events. More...
#include <IntelliTool.h>


Public Member Functions | |
| IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker) | |
| A constructor setting the general Painting Area and colorPicker. More... | |
| virtual | ~IntelliTool ()=0 |
| An abstract Destructor. More... | |
| virtual void | onMouseRightPressed (int x, int y) |
| A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on. Call this in child classes! More... | |
| virtual void | onMouseRightReleased (int x, int y) |
| A function managing the right click Released of a Mouse. Merging the Canvas to Active. Call this in child classes! More... | |
| virtual void | onMouseLeftPressed (int x, int y) |
| A function managing the left click Pressed of a Mouse. Resetting the current draw. Call this in child classes! More... | |
| virtual void | onMouseLeftReleased (int x, int y) |
| A function managing the left click Released of a Mouse. Call this in child classes! More... | |
| virtual void | onWheelScrolled (int value) |
| A function managing the scroll event. A Positive Value means scrolling outwards. Call this in child classes! More... | |
| virtual void | onMouseMoved (int x, int y) |
| A function managing the mouse moved event. Call this in child classes! More... | |
Protected Attributes | |
| PaintingArea * | Area |
| A pointer to the general PaintingArea to interact with. More... | |
| IntelliColorPicker * | colorPicker |
| A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors. More... | |
| LayerObject * | Active |
| A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More... | |
| LayerObject * | Canvas |
| A pointer to the drawing canvas of the tool, work on this. More... | |
| bool | drawing = false |
| A flag checking if the user is currently drawing or not. More... | |
An abstract class that manages the basic events, like mouse clicks or scrolls events.
Definition at line 13 of file IntelliTool.h.
| IntelliTool::IntelliTool | ( | PaintingArea * | Area, |
| IntelliColorPicker * | colorPicker | ||
| ) |
A constructor setting the general Painting Area and colorPicker.
| Area | - The general PaintingArea used by the project. |
| colorPicker | - The general colorPicker used by the project |
Definition at line 4 of file IntelliTool.cpp.
|
pure virtual |
An abstract Destructor.
Definition at line 10 of file IntelliTool.cpp.
|
virtual |
A function managing the left click Pressed of a Mouse. Resetting the current draw. Call this in child classes!
| x | - The x coordinate relative to the Active/Canvas Layer. |
| y | - The y coordinate relative to the Active/Canvas Layer. |
Reimplemented in IntelliToolLine, IntelliToolRectangle, IntelliToolCircle, IntelliToolPen, IntelliToolFloodFill, and IntelliToolPlainTool.
Definition at line 25 of file IntelliTool.cpp.


|
virtual |
A function managing the left click Released of a Mouse. Call this in child classes!
| x | - The x coordinate relative to the Active/Canvas Layer. |
| y | - The y coordinate relative to the Active/Canvas Layer. |
Reimplemented in IntelliToolLine, IntelliToolRectangle, IntelliToolCircle, IntelliToolPen, IntelliToolFloodFill, and IntelliToolPlainTool.
Definition at line 32 of file IntelliTool.cpp.


|
virtual |
A function managing the mouse moved event. Call this in child classes!
| x | - The x coordinate of the new Mouse Position. |
| y | - The y coordinate of the new Mouse Position. |
Reimplemented in IntelliToolLine, IntelliToolRectangle, IntelliToolCircle, IntelliToolPen, IntelliToolFloodFill, and IntelliToolPlainTool.
Definition at line 41 of file IntelliTool.cpp.


|
virtual |
A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on. Call this in child classes!
| x | - The x coordinate relative to the Active/Canvas Layer. |
| y | - The y coordinate relative to the Active/Canvas Layer. |
Reimplemented in IntelliToolLine, IntelliToolRectangle, IntelliToolCircle, IntelliToolPen, IntelliToolFloodFill, and IntelliToolPlainTool.
Definition at line 14 of file IntelliTool.cpp.

|
virtual |
A function managing the right click Released of a Mouse. Merging the Canvas to Active. Call this in child classes!
| x | - The x coordinate relative to the Active/Canvas Layer. |
| y | - The y coordinate relative to the Active/Canvas Layer. |
Reimplemented in IntelliToolLine, IntelliToolRectangle, IntelliToolCircle, IntelliToolPen, IntelliToolFloodFill, and IntelliToolPlainTool.
Definition at line 21 of file IntelliTool.cpp.

|
virtual |
A function managing the scroll event. A Positive Value means scrolling outwards. Call this in child classes!
| value | - The absolute the scroll has changed. |
Reimplemented in IntelliToolLine, IntelliToolRectangle, IntelliToolCircle, IntelliToolPen, IntelliToolFloodFill, and IntelliToolPlainTool.
Definition at line 46 of file IntelliTool.cpp.

|
protected |
A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews.
Definition at line 43 of file IntelliTool.h.
|
protected |
A pointer to the general PaintingArea to interact with.
Definition at line 33 of file IntelliTool.h.
|
protected |
A pointer to the drawing canvas of the tool, work on this.
Definition at line 48 of file IntelliTool.h.
|
protected |
A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors.
Definition at line 38 of file IntelliTool.h.
|
protected |
A flag checking if the user is currently drawing or not.
Definition at line 53 of file IntelliTool.h.