QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskGraduationNode.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_GRADUATION_NODE_H
7#define QSK_GRADUATION_NODE_H
8
9#include "QskGlobal.h"
10#include "QskBasicLinesNode.h"
11
12#include <qnamespace.h>
13
14class QRectF;
15class QskIntervalF;
16class QskTickmarks;
18
19class QSK_EXPORT QskGraduationNode : public QskBasicLinesNode
20{
22
23 public:
24 enum Alignment
25 {
26 Leading,
27 Centered,
28 Trailing
29 };
30
32 ~QskGraduationNode() override;
33
34#if 1
35 // finding better names
36 void setAxis( Qt::Orientation, qreal pos, const QTransform& );
37 void setTickMetrics( Alignment, const QskGraduationMetrics& );
38#endif
39
40 void update( const QskTickmarks&, const QskIntervalF& );
41
42 private:
43 class PrivateData;
44 std::unique_ptr< PrivateData > m_data;
45};
46
47#endif