LCOV - code coverage report
Current view: top level - src - GuiPlatform.h (source / functions) Coverage Total Hit
Test: coverage_filtered.info Lines: 100.0 % 2 2
Test Date: 2026-03-01 21:30:38 Functions: 66.7 % 3 2
Branches: - 0 0

             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);
        

Generated by: LCOV version 2.0-1