-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDirectXPage.xaml.h
43 lines (36 loc) · 1.54 KB
/
DirectXPage.xaml.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
40
41
42
43
//
// BlankPage.xaml.h
// Declaration of the BlankPage.xaml class.
//
#pragma once
#include "DirectXPage.g.h"
#include "SimpleTextRenderer.h"
#include "BasicTimer.h"
namespace Puck
{
/// <summary>
/// A DirectX page that can be used on its own. Note that it may not be used within a Frame.
/// </summary>
[Windows::Foundation::Metadata::WebHostHidden]
public ref class DirectXPage sealed
{
public:
DirectXPage();
void OnPreviousColorPressed(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
void OnNextColorPressed(Platform::Object^ sender, Windows::UI::Xaml::RoutedEventArgs^ e);
void SaveInternalState(Windows::Foundation::Collections::IPropertySet^ state);
void LoadInternalState(Windows::Foundation::Collections::IPropertySet^ state);
private:
void OnPointerMoved(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ args);
void OnPointerPressed(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ args);
void OnPointerReleased(Platform::Object^ sender, Windows::UI::Xaml::Input::PointerRoutedEventArgs^ args);
void OnWindowSizeChanged(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::WindowSizeChangedEventArgs^ args);
void OnLogicalDpiChanged(Platform::Object^ sender);
void OnOrientationChanged(Platform::Object^ sender);
void OnDisplayContentsInvalidated(Platform::Object^ sender);
void OnRendering(Object^ sender, Object^ args);
Windows::Foundation::EventRegistrationToken m_eventToken;
SimpleTextRenderer^ m_renderer;
BasicTimer^ m_timer;
};
}