Krita Source Code Documentation
Loading...
Searching...
No Matches
Ruler.h
Go to the documentation of this file.
1/*
2 * SPDX-FileCopyrightText: 2008 Cyrille Berger <cberger@cberger.net>
3 *
4 * SPDX-License-Identifier: LGPL-2.0-or-later
5 */
6
7#ifndef _RULER_H_
8#define _RULER_H_
9
10#include <QPointF>
11
12class Ruler
13{
14public:
15 Ruler();
16 ~Ruler();
17 QPointF project(const QPointF&);
18 const QPointF& point1() const;
19 void setPoint1(const QPointF& p) {
20 p1 = p;
21 }
22 const QPointF& point2() const;
23 void setPoint2(const QPointF& p) {
24 p2 = p;
25 }
26private:
27 QPointF p1;
28 QPointF p2;
29};
30
31#endif
const Params2D p
Definition Ruler.h:13
const QPointF & point2() const
Definition Ruler.cc:36
QPointF p2
Definition Ruler.h:28
QPointF p1
Definition Ruler.h:27
void setPoint2(const QPointF &p)
Definition Ruler.h:23
const QPointF & point1() const
Definition Ruler.cc:31
Ruler()
Definition Ruler.cc:9
void setPoint1(const QPointF &p)
Definition Ruler.h:19
QPointF project(const QPointF &)
Definition Ruler.cc:17
~Ruler()
Definition Ruler.cc:13