2015-11-27 08:33:07 +00:00
|
|
|
// Copyright 2015 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2+
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <QEvent>
|
|
|
|
#include <QWidget>
|
|
|
|
|
|
|
|
class RenderWidget final : public QWidget
|
|
|
|
{
|
2016-06-24 08:43:46 +00:00
|
|
|
Q_OBJECT
|
2015-11-27 08:33:07 +00:00
|
|
|
|
|
|
|
public:
|
2016-06-24 08:43:46 +00:00
|
|
|
explicit RenderWidget(QWidget* parent = nullptr);
|
2015-11-27 08:33:07 +00:00
|
|
|
|
2016-06-24 08:43:46 +00:00
|
|
|
bool event(QEvent* event);
|
2015-11-27 08:33:07 +00:00
|
|
|
|
|
|
|
signals:
|
2016-06-24 08:43:46 +00:00
|
|
|
void EscapePressed();
|
|
|
|
void Closed();
|
|
|
|
void HandleChanged(void* handle);
|
|
|
|
void FocusChanged(bool focus);
|
|
|
|
void StateChanged(bool fullscreen);
|
2017-06-01 06:49:21 +00:00
|
|
|
|
|
|
|
private:
|
|
|
|
void OnHideCursorChanged();
|
2015-11-27 08:33:07 +00:00
|
|
|
};
|