qskinny/playground/plots/QskPlotGridSkinlet.h

30 lines
770 B
C
Raw Normal View History

2023-11-28 13:36:47 +01:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* SPDX-License-Identifier: BSD-3-Clause
*****************************************************************************/
#pragma once
#include <QskSkinlet.h>
class QskPlotGridSkinlet : public QskSkinlet
{
Q_GADGET
using Inherited = QskSkinlet;
public:
enum NodeRole { MinorGrid, MajorGrid };
Q_INVOKABLE QskPlotGridSkinlet( QskSkin* = nullptr );
~QskPlotGridSkinlet() override;
protected:
QSGNode* updateSubNode( const QskSkinnable*,
quint8 nodeRole, QSGNode* ) const override;
private:
QSGNode* updateGridNode(
const QskSkinnable*, QskAspect::Subcontrol, QSGNode* ) const;
};