QSkinny 0.8.0
C++/Qt UI toolkit
Loading...
Searching...
No Matches
QskPageIndicatorSkinlet.h
1/******************************************************************************
2 * QSkinny - Copyright (C) The authors
3 * SPDX-License-Identifier: BSD-3-Clause
4 *****************************************************************************/
5
6#ifndef QSK_PAGE_INDICATOR_SKINLET_H
7#define QSK_PAGE_INDICATOR_SKINLET_H
8
9#include "QskSkinlet.h"
10
11class QSK_EXPORT QskPageIndicatorSkinlet : public QskSkinlet
12{
13 Q_GADGET
14
15 using Inherited = QskSkinlet;
16
17 public:
18 enum NodeRole
19 {
20 PanelRole,
21 BulletsRole,
22
23 RoleCount
24 };
25
26 Q_INVOKABLE QskPageIndicatorSkinlet( QskSkin* = nullptr );
27 ~QskPageIndicatorSkinlet() override;
28
29 QRectF subControlRect( const QskSkinnable*,
30 const QRectF&, QskAspect::Subcontrol ) const override;
31
32 QSizeF sizeHint( const QskSkinnable*,
33 Qt::SizeHint, const QSizeF& ) const override;
34
35 int sampleCount( const QskSkinnable*, QskAspect::Subcontrol ) const override;
36
37 QRectF sampleRect( const QskSkinnable*,
38 const QRectF&, QskAspect::Subcontrol, int index ) const override;
39
40 int sampleIndexAt( const QskSkinnable*,
41 const QRectF&, QskAspect::Subcontrol, const QPointF& ) const override;
42
43 protected:
44 QSGNode* updateSubNode( const QskSkinnable*,
45 quint8 nodeRole, QSGNode* ) const override;
46
47 QSGNode* updateSampleNode( const QskSkinnable*,
48 QskAspect::Subcontrol, int index, QSGNode* ) const override;
49};
50
51#endif
Subcontrol
For use within the rendering or lay-outing of a specific QskSkinnable.
Definition QskAspect.h:104
Describes the rendering interface of a QskControl. Change the skinlet to change the appearance of the...
Definition QskSkinlet.h:34