qskinny/playground/parrots/Overlay.h

32 lines
756 B
C
Raw Normal View History

2023-12-07 10:24:47 +00:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* SPDX-License-Identifier: BSD-3-Clause
*****************************************************************************/
#pragma once
#include <qquickitem.h>
2023-12-08 14:47:32 +00:00
class OverlayPrivate;
2023-12-07 10:24:47 +00:00
2023-12-08 14:47:32 +00:00
class Overlay : public QQuickItem
2023-12-07 10:24:47 +00:00
{
Q_OBJECT
using Inherited = QQuickItem;
public:
2023-12-08 14:47:32 +00:00
Overlay( QQuickItem* = nullptr );
~Overlay() override;
2023-12-07 10:24:47 +00:00
QQuickItem* grabbedItem() const;
void setGrabbedItem( QQuickItem* );
protected:
void geometryChange( const QRectF&, const QRectF& ) override;
QSGNode* updatePaintNode( QSGNode*, UpdatePaintNodeData* ) override;
private:
2023-12-08 14:47:32 +00:00
Q_DECLARE_PRIVATE( Overlay )
2023-12-07 10:24:47 +00:00
};