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/example/doric/DoricPanel.h

30 lines
514 B
C
Raw Permalink 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-05-18 16:15:28 +08:00
#include "DoricExport.h"
2021-02-04 16:59:58 +08:00
#include "DoricContext.h"
2021-05-18 16:15:28 +08:00
class DORIC_EXPORT DoricPanel {
2021-02-04 16:59:58 +08:00
private:
DoricContext *mContext;
int renderedWidth = -1;
int renderedHeight = -1;
2021-06-09 16:46:33 +08:00
QQmlApplicationEngine *mQmlEngine;
2021-02-19 19:01:31 +08:00
QQuickItem *mQuickItem;
2021-02-04 16:59:58 +08:00
public:
2021-06-09 16:46:33 +08:00
DoricPanel(QQmlApplicationEngine *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