mirror of
https://github.com/ciphervance/supercell-wx.git
synced 2025-10-30 19:10:06 +00:00
44 lines
669 B
C++
44 lines
669 B
C++
#pragma once
|
|
|
|
#include <QOpenGLWidget>
|
|
|
|
struct ImGuiContext;
|
|
|
|
namespace Ui
|
|
{
|
|
class ImGuiDebugWidget;
|
|
}
|
|
|
|
namespace scwx
|
|
{
|
|
namespace qt
|
|
{
|
|
namespace ui
|
|
{
|
|
|
|
class ImGuiDebugWidgetImpl;
|
|
|
|
class ImGuiDebugWidget : public QOpenGLWidget
|
|
{
|
|
private:
|
|
Q_DISABLE_COPY(ImGuiDebugWidget)
|
|
|
|
public:
|
|
explicit ImGuiDebugWidget(QWidget* parent = nullptr);
|
|
~ImGuiDebugWidget();
|
|
|
|
std::string context_name() const;
|
|
|
|
void set_current_context(ImGuiContext* context);
|
|
|
|
void initializeGL() override;
|
|
void paintGL() override;
|
|
|
|
private:
|
|
friend class ImGuiDebugWidgetImpl;
|
|
std::unique_ptr<ImGuiDebugWidgetImpl> p;
|
|
};
|
|
|
|
} // namespace ui
|
|
} // namespace qt
|
|
} // namespace scwx
|