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/plugin/DoricNavBarPlugin.h

35 lines
950 B
C
Raw Normal View History

2021-06-10 17:15:56 +08:00
#ifndef DORICNAVBARPLUGIN_H
#define DORICNAVBARPLUGIN_H
#include <QQuickItem>
#include "DoricExport.h"
#include "DoricNativePlugin.h"
static QString TYPE_LEFT = "navbar_left";
static QString TYPE_RIGHT = "navbar_right";
static QString TYPE_CENTER = "navbar_center";
class DORIC_EXPORT DoricNavBarPlugin : public DoricNativePlugin {
Q_OBJECT
public:
using DoricNativePlugin::DoricNativePlugin;
Q_INVOKABLE void isHidden(QString jsValueString, QString callbackId);
Q_INVOKABLE void setHidden(QString jsValueString, QString callbackId);
Q_INVOKABLE void setTitle(QString jsValueString, QString callbackId);
Q_INVOKABLE void setBgColor(QString jsValueString, QString callbackId);
Q_INVOKABLE void setLeft(QString jsValueString, QString callbackId);
Q_INVOKABLE void setRight(QString jsValueString, QString callbackId);
Q_INVOKABLE void setCenter(QString jsValueString, QString callbackId);
};
#endif // DORICNAVBARPLUGIN_H