Krita Source Code Documentation
Loading...
Searching...
No Matches
KoPathMergeUtils.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2018 Dmitry Kazakov <dimula73@gmail.com>
3 *
4 * SPDX-License-Identifier: GPL-2.0-or-later
5 */
6
7#ifndef KOPATHMERGEUTILS_H
8#define KOPATHMERGEUTILS_H
9
10#include <boost/optional.hpp>
11
12#include <QPointF>
13
14class KoPathPoint;
15
16namespace KritaUtils {
17
18boost::optional<QPointF> fetchControlPoint(KoPathPoint *pt, bool takeFirst);
19void makeSymmetric(KoPathPoint *pt, bool copyFromFirst);
20void restoreControlPoint(KoPathPoint *pt, bool restoreFirst, boost::optional<QPointF> savedPoint);
21
22}
23
24
25#endif // KOPATHMERGEUTILS_H
A KoPathPoint represents a point in a path.
void makeSymmetric(KoPathPoint *pt, bool copyFromFirst)
void restoreControlPoint(KoPathPoint *pt, bool restoreFirst, boost::optional< QPointF > savedPoint)
boost::optional< QPointF > fetchControlPoint(KoPathPoint *pt, bool takeFirst)