yolobs-studio/UI/window-projector.hpp

32 lines
575 B
C++
Raw Normal View History

2016-02-23 23:16:51 +00:00
#pragma once
#include <obs.hpp>
#include "qt-display.hpp"
2017-04-19 19:54:15 +00:00
#include "window-basic-main.hpp"
2016-02-23 23:16:51 +00:00
class QMouseEvent;
class OBSProjector : public OBSQTDisplay {
Q_OBJECT
private:
OBSSource source;
OBSSignal removedSignal;
static void OBSRender(void *data, uint32_t cx, uint32_t cy);
static void OBSSourceRemoved(void *data, calldata_t *params);
void mousePressEvent(QMouseEvent *event) override;
2017-04-19 19:54:15 +00:00
int savedMonitor = 0;
2016-02-23 23:16:51 +00:00
private slots:
void EscapeTriggered();
public:
OBSProjector(QWidget *parent, obs_source_t *source);
~OBSProjector();
void Init(int monitor);
};