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/panorama/layout/stylefiletypes.h | |
| download | archived-source-engine-2018-hl2-src-master.tar.xz archived-source-engine-2018-hl2-src-master.zip | |
Diffstat (limited to 'public/panorama/layout/stylefiletypes.h')
| -rw-r--r-- | public/panorama/layout/stylefiletypes.h | 61 |
1 files changed, 61 insertions, 0 deletions
diff --git a/public/panorama/layout/stylefiletypes.h b/public/panorama/layout/stylefiletypes.h new file mode 100644 index 0000000..418d6ad --- /dev/null +++ b/public/panorama/layout/stylefiletypes.h @@ -0,0 +1,61 @@ +//=========== Copyright Valve Corporation, All rights reserved. ===============// +// +// Purpose: +//=============================================================================// + +#ifndef PANORAMA_STYLEFILETYPES_H +#define PANORAMA_STYLEFILETYPES_H + +#ifdef _WIN32 +#pragma once +#endif + +#include "../iuipanel.h" + +namespace panorama +{ +class IUILayoutFile; +class IUIPanel; + +//----------------------------------------------------------------------------- +// Purpose: Validate statics +//----------------------------------------------------------------------------- +#ifdef DBGFLAG_VALIDATE + void ValidateStylePropertyFactory( CValidator &validator ); +#endif + +//----------------------------------------------------------------------------- +// Purpose: Used to sort styles to apply by cascade order +//----------------------------------------------------------------------------- +struct StyleFromFile_t; +class CLayoutFile; +struct CascadeStyleFileInfo_t +{ + const StyleFromFile_t *m_pStyleFromFile; + panorama::IUILayoutFile *m_pLayoutFile; // layout file + uint m_iStyleFile; // layout file index + uint m_unSelectorSpecificity; // score for this selector (high = overrides lower valued selectors) +}; + +//----------------------------------------------------------------------------- +// Purpose: All the info needed to identify a panel. Used when looking up a style w/o a IUIPanel* +//----------------------------------------------------------------------------- +class CPanelIdentifiers +{ +public: + CPanelIdentifiers(); + CPanelIdentifiers( IUIPanel *pPanel ); + + CPanoramaSymbol m_symPanelType; + uint m_unStyleFlags; + const CPanoramaSymbol *m_psymClasses; + uint m_csymClasses; + const char *m_pchID; + bool m_bTreatPanelAsParent; + IUIPanel *m_pPanel; +}; + +} // namespace panorama + + +#endif //PANORAMA_STYLEFILETYPES_H |