Branch data Line data Source code
1 : : #pragma once
2 : : #include <string>
3 : :
4 : : class IGuiPlatform {
5 : : public:
6 : 2 : virtual ~IGuiPlatform() = default;
7 : : virtual void SetAlwaysOnTop(bool enabled) = 0;
8 : : virtual void ResizeWindow(int x, int y, int w, int h) = 0;
9 : : virtual void SaveWindowGeometry(bool is_graph_mode) = 0;
10 : : virtual bool OpenPresetFileDialog(std::string& outPath) = 0;
11 : : virtual bool SavePresetFileDialog(std::string& outPath, const std::string& defaultName) = 0;
12 : : virtual void* GetWindowHandle() = 0;
13 : :
14 : : // Test support
15 : 1 : virtual bool GetAlwaysOnTopMock() { return false; }
16 : : };
17 : :
18 : : // Singleton access
19 : : IGuiPlatform& GetGuiPlatform();
20 : :
21 : : // Global helper for simple access (compatibility)
22 : : void SetWindowAlwaysOnTopPlatform(bool enabled);
|