This repository has been archived on 2024-07-22. You can view files and clone it, but cannot push or open issues or pull requests.
Doric/doric-Qt/doric/DoricPanel.h

28 lines
453 B
C
Raw Normal View History

2021-02-04 16:59:58 +08:00
#ifndef PANEL_H
#define PANEL_H
2021-02-19 10:04:54 +08:00
#include <QQuickItem>
2021-02-04 16:59:58 +08:00
#include "DoricContext.h"
2021-02-19 19:01:31 +08:00
class DoricPanel {
2021-02-04 16:59:58 +08:00
private:
DoricContext *mContext;
int renderedWidth = -1;
int renderedHeight = -1;
2021-02-23 14:28:08 +08:00
QQmlEngine *mQmlEngine;
2021-02-19 19:01:31 +08:00
QQuickItem *mQuickItem;
2021-02-04 16:59:58 +08:00
public:
2021-02-23 14:28:08 +08:00
DoricPanel(QQmlEngine *qmlEngine, QQuickItem *quickItem);
2021-02-04 16:59:58 +08:00
2021-04-09 16:39:43 +08:00
~DoricPanel();
2021-02-04 16:59:58 +08:00
void config(QString script, QString alias, QString extra);
void config(DoricContext *context);
};
#endif // PANEL_H