Krita Source Code Documentation
Loading...
Searching...
No Matches
KoFlakeCoordinateSystem.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2016 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KOFLAKECOORDINATE_SYSTEM_H
8#define KOFLAKECOORDINATE_SYSTEM_H
9
10#include <QString>
11
12namespace KoFlake {
13
18
20{
21 CoordinateSystem result = defaultValue;
22
23 if (value == "userSpaceOnUse") {
24 result = UserSpaceOnUse;
25 } else if (value == "objectBoundingBox") {
26 result = ObjectBoundingBox;
27 }
28
29 return result;
30}
31
33{
34 return
36 "objectBoundingBox" :
37 "userSpaceOnUse";
38}
39}
40
41#endif // KOFLAKECOORDINATE_SYSTEM_H
42
float value(const T *src, size_t ch)
QString coordinateToString(CoordinateSystem value)
CoordinateSystem coordinatesFromString(const QString &value, CoordinateSystem defaultValue)