mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-01-09 12:50:37 +00:00
205f6a9000
mainly move { to newline get rid of some lines here, add some lines there
45 lines
1.0 KiB
C++
45 lines
1.0 KiB
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
#include "Emu/RSX/GSRender.h"
|
|
|
|
#include <QWidget>
|
|
#include <QWindow>
|
|
|
|
class gs_frame : public QWindow, public GSFrameBase
|
|
{
|
|
Q_OBJECT
|
|
u64 m_frames = 0;
|
|
QString m_windowTitle;
|
|
bool m_show_fps;
|
|
bool m_disable_mouse;
|
|
|
|
public:
|
|
gs_frame(const QString& title, int w, int h, QIcon appIcon, bool disableMouse);
|
|
protected:
|
|
virtual void paintEvent(QPaintEvent *event);
|
|
|
|
void keyPressEvent(QKeyEvent *keyEvent) override;
|
|
void OnFullScreen();
|
|
|
|
void close() override;
|
|
|
|
bool shown() override;
|
|
void hide() override;
|
|
void show() override;
|
|
void mouseDoubleClickEvent(QMouseEvent* ev) override;
|
|
|
|
void* handle() const override;
|
|
|
|
void* make_context() override;
|
|
void set_current(draw_context_t context) override;
|
|
void delete_context(void* context) override;
|
|
void flip(draw_context_t context, bool skip_frame=false) override;
|
|
int client_width() override;
|
|
int client_height() override;
|
|
|
|
bool event(QEvent* ev) override;
|
|
private Q_SLOTS:
|
|
void HandleCursor(QWindow::Visibility visibility);
|
|
};
|