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
14
class
QRectF;
15
class
QskIntervalF
;
16
class
QskTickmarks
;
17
class
QskGraduationMetrics
;
18
19
class
QSK_EXPORT
QskGraduationNode
:
public
QskBasicLinesNode
20
{
21
using
Inherited
=
QskBasicLinesNode
;
22
23
public
:
24
enum
Alignment
25
{
26
Leading,
27
Centered,
28
Trailing
29
};
30
31
QskGraduationNode
();
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
QskBasicLinesNode
Definition
QskBasicLinesNode.h:23
QskGraduationMetrics
Definition
QskGraduationMetrics.h:15
QskGraduationNode
Definition
QskGraduationNode.h:20
QskIntervalF
Definition
QskIntervalF.h:17
QskTickmarks
Definition
QskTickmarks.h:13
src
nodes
QskGraduationNode.h
Generated by
1.9.8