IntelliPhoto  0.4
IntelliToolPlainTool Class Reference

#include <IntelliToolPlain.h>

Inheritance diagram for IntelliToolPlainTool:
Collaboration diagram for IntelliToolPlainTool:

Public Member Functions

 IntelliToolPlainTool (PaintingArea *Area, IntelliColorPicker *colorPicker)
 
virtual void onMouseLeftPressed (int x, int y) override
 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) override
 A function managing the left click Released of a Mouse. Call this in child classes! More...
 
virtual void onMouseRightPressed (int x, int y) override
 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) override
 A function managing the right click Released of a Mouse. Merging the Canvas to Active. Call this in child classes! More...
 
virtual void onWheelScrolled (int value) override
 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) override
 A function managing the mouse moved event. Call this in child classes! More...
 
- Public Member Functions inherited from IntelliTool
 IntelliTool (PaintingArea *Area, IntelliColorPicker *colorPicker)
 A constructor setting the general Painting Area and colorPicker. More...
 
virtual ~IntelliTool ()=0
 An abstract Destructor. More...
 

Additional Inherited Members

- Protected Attributes inherited from IntelliTool
PaintingAreaArea
 A pointer to the general PaintingArea to interact with. More...
 
IntelliColorPickercolorPicker
 A pointer to the IntelliColorPicker of the PaintingArea to interact with, and get the colors. More...
 
LayerObjectActive
 A pointer to the underlying active Layer, do not work on this. This is used for data grabbing or previews. More...
 
LayerObjectCanvas
 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...
 

Detailed Description

Definition at line 7 of file IntelliToolPlain.h.

Constructor & Destructor Documentation

◆ IntelliToolPlainTool()

IntelliToolPlainTool::IntelliToolPlainTool ( PaintingArea Area,
IntelliColorPicker colorPicker 
)

Definition at line 5 of file IntelliToolPlain.cpp.

Member Function Documentation

◆ onMouseLeftPressed()

void IntelliToolPlainTool::onMouseLeftPressed ( int  x,
int  y 
)
overridevirtual

A function managing the left click Pressed of a Mouse. Resetting the current draw. Call this in child classes!

Parameters
x- The x coordinate relative to the Active/Canvas Layer.
y- The y coordinate relative to the Active/Canvas Layer.

Reimplemented from IntelliTool.

Definition at line 9 of file IntelliToolPlain.cpp.

Here is the call graph for this function:

◆ onMouseLeftReleased()

void IntelliToolPlainTool::onMouseLeftReleased ( int  x,
int  y 
)
overridevirtual

A function managing the left click Released of a Mouse. Call this in child classes!

Parameters
x- The x coordinate relative to the Active/Canvas Layer.
y- The y coordinate relative to the Active/Canvas Layer.

Reimplemented from IntelliTool.

Definition at line 15 of file IntelliToolPlain.cpp.

Here is the call graph for this function:

◆ onMouseMoved()

void IntelliToolPlainTool::onMouseMoved ( int  x,
int  y 
)
overridevirtual

A function managing the mouse moved event. Call this in child classes!

Parameters
x- The x coordinate of the new Mouse Position.
y- The y coordinate of the new Mouse Position.

Reimplemented from IntelliTool.

Definition at line 28 of file IntelliToolPlain.cpp.

Here is the call graph for this function:

◆ onMouseRightPressed()

void IntelliToolPlainTool::onMouseRightPressed ( int  x,
int  y 
)
overridevirtual

A function managing the right click Pressed of a Mouse. Constructing the Canvas to draw on. Call this in child classes!

Parameters
x- The x coordinate relative to the Active/Canvas Layer.
y- The y coordinate relative to the Active/Canvas Layer.

Reimplemented from IntelliTool.

Definition at line 19 of file IntelliToolPlain.cpp.

Here is the call graph for this function:

◆ onMouseRightReleased()

void IntelliToolPlainTool::onMouseRightReleased ( int  x,
int  y 
)
overridevirtual

A function managing the right click Released of a Mouse. Merging the Canvas to Active. Call this in child classes!

Parameters
x- The x coordinate relative to the Active/Canvas Layer.
y- The y coordinate relative to the Active/Canvas Layer.

Reimplemented from IntelliTool.

Definition at line 23 of file IntelliToolPlain.cpp.

Here is the call graph for this function:

◆ onWheelScrolled()

void IntelliToolPlainTool::onWheelScrolled ( int  value)
overridevirtual

A function managing the scroll event. A Positive Value means scrolling outwards. Call this in child classes!

Parameters
value- The absolute the scroll has changed.

Reimplemented from IntelliTool.

Definition at line 32 of file IntelliToolPlain.cpp.

Here is the call graph for this function:

The documentation for this class was generated from the following files: