Team Fortress 2 Source Code as on 22/4/2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

37 lines
1.1 KiB

  1. //========= Copyright Valve Corporation, All rights reserved. ============//
  2. //
  3. // Purpose:
  4. //
  5. //=============================================================================
  6. #ifndef SAVEWINDOWPOSITIONS_H
  7. #define SAVEWINDOWPOSITIONS_H
  8. #ifdef _WIN32
  9. #pragma once
  10. #endif
  11. namespace vgui
  12. {
  13. class Panel;
  14. class ToolWindow;
  15. class IToolWindowFactory;
  16. };
  17. class CMovieView;
  18. //-----------------------------------------------------------------------------
  19. // Purpose: This will save the bounds and the visibility state of UI elements registered during startup
  20. //-----------------------------------------------------------------------------
  21. class IWindowPositionMgr
  22. {
  23. public:
  24. virtual void SavePositions( char const *filename, char const *key ) = 0;
  25. virtual bool LoadPositions( char const *filename, vgui::Panel *parent, vgui::IToolWindowFactory *factory, char const *key, bool force = false ) = 0;
  26. virtual void RegisterPanel( char const *saveName, vgui::Panel *panel, bool contextMenu ) = 0;
  27. virtual void UnregisterPanel( vgui::Panel *panel ) = 0;
  28. };
  29. extern IWindowPositionMgr *windowposmgr;
  30. #endif // SAVEWINDOWPOSITIONS_H