#include <PaintingArea.h>
|
| | PaintingArea (int maxWidth=600, int maxHeight=600, QWidget *parent=nullptr) |
| |
| | ~PaintingArea () |
| |
| bool | open (const QString &fileName) |
| |
| bool | save (const QString &fileName, const char *fileFormat) |
| |
| int | addLayer (int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image) |
| |
| int | addLayerAt (int idx, int width, int height, int widthOffset=0, int heightOffset=0, ImageType type=ImageType::Raster_Image) |
| |
| void | deleteLayer (int index) |
| |
| void | setLayerToActive (int index) |
| |
| void | setAlphaOfLayer (int index, int alpha) |
| |
| void | floodFill (int r, int g, int b, int a) |
| |
| void | movePositionActive (int x, int y) |
| |
| void | moveActiveLayer (int idx) |
| |
| void | colorPickerSetFirstColor () |
| |
| void | colorPickerSetSecondColor () |
| |
| void | colorPickerSwitchColor () |
| |
| void | createPenTool () |
| |
| void | createPlainTool () |
| |
| void | createLineTool () |
| |
Definition at line 28 of file PaintingArea.h.
◆ PaintingArea()
| PaintingArea::PaintingArea |
( |
int |
maxWidth = 600, |
|
|
int |
maxHeight = 600, |
|
|
QWidget * |
parent = nullptr |
|
) |
| |
◆ ~PaintingArea()
| PaintingArea::~PaintingArea |
( |
| ) |
|
◆ addLayer()
◆ addLayerAt()
◆ colorPickerSetFirstColor()
| void PaintingArea::colorPickerSetFirstColor |
( |
| ) |
|
◆ colorPickerSetSecondColor()
| void PaintingArea::colorPickerSetSecondColor |
( |
| ) |
|
◆ colorPickerSwitchColor()
| void PaintingArea::colorPickerSwitchColor |
( |
| ) |
|
◆ createLineTool()
| void PaintingArea::createLineTool |
( |
| ) |
|
◆ createPenTool()
| void PaintingArea::createPenTool |
( |
| ) |
|
◆ createPlainTool()
| void PaintingArea::createPlainTool |
( |
| ) |
|
◆ deleteLayer()
| void PaintingArea::deleteLayer |
( |
int |
index | ) |
|
◆ floodFill()
| void PaintingArea::floodFill |
( |
int |
r, |
|
|
int |
g, |
|
|
int |
b, |
|
|
int |
a |
|
) |
| |
◆ mouseMoveEvent()
| void PaintingArea::mouseMoveEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mousePressEvent()
| void PaintingArea::mousePressEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ mouseReleaseEvent()
| void PaintingArea::mouseReleaseEvent |
( |
QMouseEvent * |
event | ) |
|
|
overrideprotected |
◆ moveActiveLayer()
| void PaintingArea::moveActiveLayer |
( |
int |
idx | ) |
|
◆ movePositionActive()
| void PaintingArea::movePositionActive |
( |
int |
x, |
|
|
int |
y |
|
) |
| |
◆ open()
| bool PaintingArea::open |
( |
const QString & |
fileName | ) |
|
◆ paintEvent()
| void PaintingArea::paintEvent |
( |
QPaintEvent * |
event | ) |
|
|
overrideprotected |
◆ resizeEvent()
| void PaintingArea::resizeEvent |
( |
QResizeEvent * |
event | ) |
|
|
overrideprotected |
◆ save()
| bool PaintingArea::save |
( |
const QString & |
fileName, |
|
|
const char * |
fileFormat |
|
) |
| |
◆ setAlphaOfLayer()
| void PaintingArea::setAlphaOfLayer |
( |
int |
index, |
|
|
int |
alpha |
|
) |
| |
◆ setLayerToActive()
| void PaintingArea::setLayerToActive |
( |
int |
index | ) |
|
◆ slotActivateLayer
| void PaintingArea::slotActivateLayer |
( |
int |
a | ) |
|
|
slot |
◆ slotDeleteActiveLayer
| void PaintingArea::slotDeleteActiveLayer |
( |
| ) |
|
|
slot |
The documentation for this class was generated from the following files: