FluentUI/src/FluFrameless.h

28 lines
637 B
C
Raw Normal View History

2023-12-11 23:47:03 +08:00
#ifndef FLUFRAMELESS_H
#define FLUFRAMELESS_H
#include <QObject>
#include <QQuickWindow>
#include <QtQml/qqml.h>
#include <QAbstractNativeEventFilter>
#include "stdafx.h"
class FluFrameless : public QObject, public QQmlParserStatus
{
Q_OBJECT
QML_NAMED_ELEMENT(FluFrameless)
public:
explicit FluFrameless(QObject *parent = nullptr);
~FluFrameless();
void classBegin() override;
void componentComplete() override;
protected:
bool eventFilter(QObject *obj, QEvent *event) override;
private:
2023-12-13 16:20:09 +08:00
void updateCursor(int edges);
2023-12-11 23:47:03 +08:00
private:
QPointer<QQuickWindow> _window = nullptr;
};
#endif // FLUFRAMELESS_H