forked from microsoft/Xbox-ATG-Samples
-
Notifications
You must be signed in to change notification settings - Fork 0
/
TopLevelScreen.h
39 lines (33 loc) · 1.06 KB
/
TopLevelScreen.h
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
//--------------------------------------------------------------------------------------
// TopLevelScreen.h
//
// Advanced Technology Group (ATG)
// Copyright (C) Microsoft Corporation. All rights reserved.
//--------------------------------------------------------------------------------------
#pragma once
#include "PanelScreen.h"
#include "NavigationHint.h"
class TopLevelScreen : public PanelScreen
{
public:
TopLevelScreen(
FrontPanelManager *owner,
const wchar_t *titleText,
const wchar_t *labelText,
const wchar_t *descriptionText);
void RenderFrontPanel() override;
private:
class TopLevelNavigationHint : public NavigationHint
{
public:
TopLevelNavigationHint();
};
const unsigned MIN_LABEL_WIDTH = 12;
const unsigned RIGHT_LABEL_PADDING = 1;
std::wstring m_titleText;
std::wstring m_labelText;
std::wstring m_descriptionText;
ATG::RasterFont &m_titleFont;
ATG::RasterFont &m_descriptionFont;
TopLevelNavigationHint m_nav;
};