Document state store for layers, shapes, document specfic settings and current view state.
More...
#include <document.h>
Document state store for layers, shapes, document specfic settings and current view state.
◆ Document()
◆ activeLayer()
| Layer * Document::activeLayer |
( |
| ) |
|
◆ addLayer()
| void Document::addLayer |
( |
LayerPtr & |
layer | ) |
|
◆ canvas()
| const Canvas * Document::canvas |
( |
| ) |
const |
◆ dumpStack()
| void Document::dumpStack |
( |
QList< LayerPtr > & |
stack | ) |
|
◆ execute() [1/4]
◆ execute() [2/4]
| void Document::execute |
( |
const CmdPtr & |
cmd | ) |
|
◆ execute() [3/4]
template<typename... Args>
| void Document::execute |
( |
const CmdPtr |
cmd0, |
|
|
Args... |
args |
|
) |
| |
|
inline |
◆ execute() [4/4]
| void Document::execute |
( |
initializer_list< CmdPtr > |
cmds | ) |
|
◆ findLayerByName()
| const LayerPtr * Document::findLayerByName |
( |
const QString & |
layer_name | ) |
|
◆ font()
| const QFont& Document::font |
( |
| ) |
const |
◆ framesCount()
| int Document::framesCount |
( |
| ) |
const |
◆ getCanvasCoord()
| QPointF Document::getCanvasCoord |
( |
QPointF |
window_coord | ) |
const |
◆ groupSelections()
| void Document::groupSelections |
( |
| ) |
|
◆ height()
| qreal Document::height |
( |
| ) |
const |
◆ hitTest()
| ShapePtr Document::hitTest |
( |
QPointF |
canvas_coord | ) |
|
◆ layers()
| const QList< LayerPtr > & Document::layers |
( |
| ) |
const |
◆ mousePressedCanvasCoord()
| QPointF Document::mousePressedCanvasCoord |
( |
| ) |
const |
◆ mousePressedScreenCoord()
| QPointF Document::mousePressedScreenCoord |
( |
| ) |
const |
◆ paint()
| void Document::paint |
( |
QPainter * |
painter | ) |
|
◆ redo()
◆ removeLayer()
| void Document::removeLayer |
( |
LayerPtr & |
layer | ) |
|
◆ scale()
| qreal Document::scale |
( |
| ) |
const |
◆ screenRect()
| QRectF Document::screenRect |
( |
| ) |
const |
◆ scroll()
| QPointF Document::scroll |
( |
| ) |
const |
◆ selections()
| QList< ShapePtr > & Document::selections |
( |
| ) |
|
◆ selectionsChanged
| void Document::selectionsChanged |
( |
| ) |
|
|
signal |
◆ setActiveLayer() [1/2]
| bool Document::setActiveLayer |
( |
const QString & |
name | ) |
|
◆ setActiveLayer() [2/2]
| void Document::setActiveLayer |
( |
LayerPtr & |
layer | ) |
|
◆ setCanvas()
| void Document::setCanvas |
( |
Canvas * |
canvas | ) |
|
◆ setFont()
| void Document::setFont |
( |
const QFont & |
font | ) |
|
◆ setHeight()
| void Document::setHeight |
( |
qreal |
height | ) |
|
◆ setLayersOrder()
| void Document::setLayersOrder |
( |
const QList< LayerPtr > & |
new_order | ) |
|
◆ setMousePressedScreenCoord()
| void Document::setMousePressedScreenCoord |
( |
QPointF |
screen_coord | ) |
|
◆ setScale()
| void Document::setScale |
( |
qreal |
scale | ) |
|
◆ setScreenSize()
| void Document::setScreenSize |
( |
QSize |
size | ) |
|
◆ setScroll()
| void Document::setScroll |
( |
QPointF |
scroll | ) |
|
◆ setSelection() [1/2]
| void Document::setSelection |
( |
nullptr_t |
| ) |
|
◆ setSelection() [2/2]
| void Document::setSelection |
( |
ShapePtr & |
shape | ) |
|
◆ setSelections()
| void Document::setSelections |
( |
const QList< ShapePtr > & |
new_selections | ) |
|
◆ settings()
◆ setWidth()
| void Document::setWidth |
( |
qreal |
width | ) |
|
◆ undo()
◆ ungroupSelections()
| void Document::ungroupSelections |
( |
| ) |
|
◆ width()
| qreal Document::width |
( |
| ) |
const |
◆ DocumentSerializer
The documentation for this class was generated from the following files: