obs-studio/obs/window-projector.hpp
jp9000 661acfe043 UI: Add right-click context menu to projector
For now, just has the option to close the projector window.
2015-04-13 15:13:44 -07:00

30 lines
539 B
C++

#pragma once
#include <obs.hpp>
#include "qt-display.hpp"
class QMouseEvent;
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);
void mousePressEvent(QMouseEvent *event) override;
private slots:
void EscapeTriggered();
public:
OBSProjector(QWidget *parent, obs_source_t *source);
~OBSProjector();
void Init(int monitor);
};