qskinny/src/controls/QskInputGrabber.h

36 lines
835 B
C
Raw Normal View History

2018-07-02 08:08:38 +02:00
/******************************************************************************
* QSkinny - Copyright (C) 2016 Uwe Rathmann
* This file may be used under the terms of the QSkinny License, Version 1.0
*****************************************************************************/
#ifndef QSK_INPUT_GRABBER_H
#define QSK_INPUT_GRABBER_H 1
#include "QskControl.h"
2018-08-03 08:15:28 +02:00
class QskInputGrabber : public QskControl
2018-07-02 08:08:38 +02:00
{
Q_OBJECT
using Inherited = QskControl;
2018-08-03 08:15:28 +02:00
public:
2018-07-02 08:08:38 +02:00
QskInputGrabber( QQuickItem* parent = nullptr );
2018-07-31 17:32:25 +02:00
~QskInputGrabber() override;
2018-07-02 08:08:38 +02:00
virtual QRectF grabberRect() const;
virtual bool isBlocking( const QPointF& ) const;
2018-08-03 08:15:28 +02:00
public Q_SLOTS:
2018-07-02 08:08:38 +02:00
void updateGeometry();
2018-08-03 08:15:28 +02:00
protected:
2018-07-31 17:32:25 +02:00
bool event( QEvent* ) override;
2018-07-02 08:08:38 +02:00
2018-08-03 08:15:28 +02:00
private:
2018-07-02 08:08:38 +02:00
class PrivateData;
std::unique_ptr< PrivateData > m_data;
};
#endif