IntelliPhoto  0.4
IntelliToolRectangle Class Reference

#include <IntelliToolRectangle.h>

Inheritance diagram for IntelliToolRectangle:
Collaboration diagram for IntelliToolRectangle:

Public Member Functions

 IntelliToolRectangle (PaintingArea *Area, IntelliColorPicker *colorPicker)
 
virtual ~IntelliToolRectangle () override
 
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 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 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 9 of file IntelliToolRectangle.h.

Constructor & Destructor Documentation

◆ IntelliToolRectangle()

IntelliToolRectangle::IntelliToolRectangle ( PaintingArea Area,
IntelliColorPicker colorPicker 
)

Definition at line 5 of file IntelliToolRectangle.cpp.

◆ ~IntelliToolRectangle()

IntelliToolRectangle::~IntelliToolRectangle ( )
overridevirtual

Definition at line 11 of file IntelliToolRectangle.cpp.

Member Function Documentation

◆ onMouseLeftPressed()

void IntelliToolRectangle::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 41 of file IntelliToolRectangle.cpp.

Here is the call graph for this function:

◆ onMouseLeftReleased()

void IntelliToolRectangle::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 48 of file IntelliToolRectangle.cpp.

Here is the call graph for this function:

◆ onMouseMoved()

void IntelliToolRectangle::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 52 of file IntelliToolRectangle.cpp.

Here is the call graph for this function:

◆ onMouseRightPressed()

void IntelliToolRectangle::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 33 of file IntelliToolRectangle.cpp.

Here is the call graph for this function:

◆ onMouseRightReleased()

void IntelliToolRectangle::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 37 of file IntelliToolRectangle.cpp.

Here is the call graph for this function:

◆ onWheelScrolled()

void IntelliToolRectangle::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 61 of file IntelliToolRectangle.cpp.

Here is the call graph for this function:

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