mirror of
				https://github.com/ciphervance/supercell-wx.git
				synced 2025-11-04 07:20:04 +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
 |