diff options
author | wm4 <wm4@nowhere> | 2016-03-10 21:47:51 +0100 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-03-10 21:47:51 +0100 |
commit | 9bc5c020de87fdffc40c9103992b26fe80cfe944 (patch) | |
tree | 1a31520041e5ac021fd351f2a6a798dc5c3a927b /DOCS/client_api_examples/qml_direct/main.h | |
parent | d8b27ee4de4e26d594855960a4421b99db9e76ea (diff) | |
download | mpv-9bc5c020de87fdffc40c9103992b26fe80cfe944.tar.bz2 mpv-9bc5c020de87fdffc40c9103992b26fe80cfe944.tar.xz |
DOCS: remove client API examples
Moved to: https://github.com/mpv-player/mpv-examples
Diffstat (limited to 'DOCS/client_api_examples/qml_direct/main.h')
-rw-r--r-- | DOCS/client_api_examples/qml_direct/main.h | 51 |
1 files changed, 0 insertions, 51 deletions
diff --git a/DOCS/client_api_examples/qml_direct/main.h b/DOCS/client_api_examples/qml_direct/main.h deleted file mode 100644 index b0310ff0be..0000000000 --- a/DOCS/client_api_examples/qml_direct/main.h +++ /dev/null @@ -1,51 +0,0 @@ -#ifndef MPVRENDERER_H_ -#define MPVRENDERER_H_ - -#include <QtQuick/QQuickItem> - -#include <mpv/client.h> -#include <mpv/opengl_cb.h> -#include <mpv/qthelper.hpp> - -class MpvRenderer : public QObject -{ - Q_OBJECT - mpv::qt::Handle mpv; - mpv_opengl_cb_context *mpv_gl; - QQuickWindow *window; - QSize size; - - friend class MpvObject; -public: - MpvRenderer(mpv::qt::Handle a_mpv, mpv_opengl_cb_context *a_mpv_gl); - virtual ~MpvRenderer(); -public slots: - void paint(); -}; - -class MpvObject : public QQuickItem -{ - Q_OBJECT - - mpv::qt::Handle mpv; - mpv_opengl_cb_context *mpv_gl; - MpvRenderer *renderer; - -public: - MpvObject(QQuickItem * parent = 0); - virtual ~MpvObject(); -public slots: - void command(const QVariant& params); - void sync(); - void swapped(); - void cleanup(); -signals: - void onUpdate(); -private slots: - void doUpdate(); - void handleWindowChanged(QQuickWindow *win); -private: - static void on_update(void *ctx); -}; - -#endif |