dolphin/Source/Core/DolphinQt2/RenderWidget.h
2018-03-25 01:26:50 +01:00

37 lines
717 B
C++

// Copyright 2015 Dolphin Emulator Project
// Licensed under GPLv2+
// Refer to the license.txt file included.
#pragma once
#include <QEvent>
#include <QWidget>
class QTimer;
class RenderWidget final : public QWidget
{
Q_OBJECT
public:
explicit RenderWidget(QWidget* parent = nullptr);
bool event(QEvent* event) override;
void showFullScreen();
signals:
void EscapePressed();
void Closed();
void HandleChanged(void* handle);
void StateChanged(bool fullscreen);
void SizeChanged(int new_width, int new_height);
private:
void HandleCursorTimer();
void OnHideCursorChanged();
void SetFillBackground(bool fill);
static constexpr int MOUSE_HIDE_DELAY = 3000;
QTimer* m_mouse_timer;
};