6#ifndef LIBKIS_GRIDCONFIG_H
7#define LIBKIS_GRIDCONFIG_H
10#include "kis_grid_config.h"
12#include "kritalibkis_export.h"
32 bool operator==(
const GridConfig &other)
const;
33 bool operator!=(
const GridConfig &other)
const;
47 void setVisible(
bool visible);
59 void setSnap(
bool snap);
71 void setOffset(
QPoint offset);
85 void setSpacing(
QPoint spacing);
93 bool spacingActiveHorizontal()
const;
101 void setSpacingActiveHorizontal(
bool active);
109 bool spacingActiveVertical()
const;
117 void setSpacingActiveVertical(
bool active);
124 int subdivision()
const;
131 void setSubdivision(
int subdivision);
138 qreal angleLeft()
const;
145 void setAngleLeft(qreal angleLeft);
152 qreal angleRight()
const;
159 void setAngleRight(qreal angleRight);
167 bool angleLeftActive()
const;
175 void setAngleLeftActive(
bool active);
183 bool angleRightActive()
const;
191 void setAngleRightActive(
bool active);
198 int cellSpacing()
const;
205 void setCellSpacing(
int cellSpacing);
212 int cellSize()
const;
219 void setCellSize(
int cellSize);
237 void setType(
const QString &gridType);
244 bool offsetAspectLocked()
const;
251 void setOffsetAspectLocked(
bool offsetAspectLocked);
259 bool spacingAspectLocked()
const;
267 void setSpacingAspectLocked(
bool spacingAspectLocked);
275 bool angleAspectLocked()
const;
283 void setAngleAspectLocked(
bool angleAspectLocked);
303 void setLineTypeMain(
const QString &lineType);
315 QString lineTypeSubdivision()
const;
327 void setLineTypeSubdivision(
const QString &lineType);
340 QString lineTypeVertical()
const;
353 void setLineTypeVertical(
const QString &lineType);
365 void setColorMain(
QColor colorMain);
372 QColor colorSubdivision()
const;
379 void setColorSubdivision(
QColor colorSubdivision);
386 QColor colorVertical()
const;
393 void setColorVertical(
QColor colorVertical);
400 bool fromXml(
const QString &xmlContent)
const;
412 KisGridConfig gridConfig()
const;
The Document class encapsulates a Krita Document/Image.
The GridConfig class encapsulates a Krita Guides configuration.
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Nov 22 2024 12:06:52 by
doxygen 1.12.0 written
by
Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.