dolphin/Source/Core/DolphinQt2/RenderWidget.h

35 lines
626 B
C
Raw Normal View History

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 QTimer;
2015-11-27 08:33:07 +00:00
class RenderWidget final : public QWidget
{
Q_OBJECT
2015-11-27 08:33:07 +00:00
public:
explicit RenderWidget(QWidget* parent = nullptr);
2015-11-27 08:33:07 +00:00
bool event(QEvent* event) override;
2015-11-27 08:33:07 +00:00
signals:
void EscapePressed();
void Closed();
void HandleChanged(void* handle);
void StateChanged(bool fullscreen);
2018-01-20 20:00:28 +00:00
void SizeChanged();
2017-06-01 06:49:21 +00:00
private:
void HandleCursorTimer();
2017-06-01 06:49:21 +00:00
void OnHideCursorChanged();
static constexpr int MOUSE_HIDE_DELAY = 3000;
QTimer* m_mouse_timer;
2015-11-27 08:33:07 +00:00
};