summaryrefslogtreecommitdiff
path: root/public/panorama/layout/stylefiletypes.h
blob: 418d6adcabc7990f6db94ea3b545461e05a34a40 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
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