qskinny/examples/iotdashboard/nodes/RadialTickmarksNode.h
Peter Hartmann 927d2dd51c
Iot dashboard light intensity (#142)
* IOT dashboard: Make light dimmer use arc renderer

* use shadow

* add value text

* add warm and cold parts

* add knob

* handle input

* only move knob when drawing along the arc

* improve input handling

* add tickmarks

* add tickmarks node

* clean up a bit

* Update screenshot of IOT dashboard for github site
2021-11-19 15:02:57 +01:00

28 lines
773 B
C++

/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the 3-clause BSD License
*****************************************************************************/
#pragma once
#include <QskArcMetrics.h>
#include <QskIntervalF.h>
#include <QskScaleTickmarks.h>
#include <QSGGeometryNode>
class RadialTickmarksNodePrivate;
class RadialTickmarksNode : public QSGGeometryNode
{
public:
RadialTickmarksNode();
~RadialTickmarksNode() override;
void update( const QColor&, const QRectF&, const QskArcMetrics&,
const QskIntervalF&, const QskScaleTickmarks&, int, Qt::Orientation );
private:
Q_DECLARE_PRIVATE( RadialTickmarksNode )
};