2015-04-04 00:37:02 -07:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <obs.hpp>
|
|
|
|
#include "qt-display.hpp"
|
|
|
|
|
2015-04-13 14:31:36 -07:00
|
|
|
class QMouseEvent;
|
|
|
|
|
2015-04-04 00:37:02 -07:00
|
|
|
class OBSProjector : public OBSQTDisplay {
|
|
|
|
Q_OBJECT
|
|
|
|
|
|
|
|
private:
|
|
|
|
OBSDisplay display;
|
|
|
|
OBSSource source;
|
|
|
|
OBSSignal removedSignal;
|
|
|
|
|
|
|
|
static void OBSRender(void *data, uint32_t cx, uint32_t cy);
|
|
|
|
static void OBSSourceRemoved(void *data, calldata_t *params);
|
|
|
|
|
2015-04-13 14:31:36 -07:00
|
|
|
void mousePressEvent(QMouseEvent *event) override;
|
|
|
|
|
2015-04-04 00:37:02 -07:00
|
|
|
private slots:
|
|
|
|
void EscapeTriggered();
|
|
|
|
|
|
|
|
public:
|
|
|
|
OBSProjector(QWidget *parent, obs_source_t *source);
|
|
|
|
~OBSProjector();
|
|
|
|
|
|
|
|
void Init(int monitor);
|
|
|
|
};
|