diff options
| author | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
|---|---|---|
| committer | FluorescentCIAAfricanAmerican <[email protected]> | 2020-04-22 12:56:21 -0400 |
| commit | 3bf9df6b2785fa6d951086978a3e66f49427166a (patch) | |
| tree | 2c0f1f0c63c4832882bc93814ebd2c2b1c6224e5 /public/toolutils/savewindowpositions.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/toolutils/savewindowpositions.h')
| -rw-r--r-- | public/toolutils/savewindowpositions.h | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/public/toolutils/savewindowpositions.h b/public/toolutils/savewindowpositions.h new file mode 100644 index 0000000..9ac9680 --- /dev/null +++ b/public/toolutils/savewindowpositions.h @@ -0,0 +1,37 @@ +//========= Copyright Valve Corporation, All rights reserved. ============// +// +// Purpose: +// +//============================================================================= + +#ifndef SAVEWINDOWPOSITIONS_H +#define SAVEWINDOWPOSITIONS_H +#ifdef _WIN32 +#pragma once +#endif + +namespace vgui +{ + class Panel; + class ToolWindow; + class IToolWindowFactory; +}; + +class CMovieView; + + +//----------------------------------------------------------------------------- +// Purpose: This will save the bounds and the visibility state of UI elements registered during startup +//----------------------------------------------------------------------------- +class IWindowPositionMgr +{ +public: + virtual void SavePositions( char const *filename, char const *key ) = 0; + virtual bool LoadPositions( char const *filename, vgui::Panel *parent, vgui::IToolWindowFactory *factory, char const *key, bool force = false ) = 0; + virtual void RegisterPanel( char const *saveName, vgui::Panel *panel, bool contextMenu ) = 0; + virtual void UnregisterPanel( vgui::Panel *panel ) = 0; +}; + +extern IWindowPositionMgr *windowposmgr; + +#endif // SAVEWINDOWPOSITIONS_H |