summaryrefslogtreecommitdiffhomepage
path: root/project/vs2015.UWP/raylib.App.UWP/App.h
diff options
context:
space:
mode:
Diffstat (limited to 'project/vs2015.UWP/raylib.App.UWP/App.h')
-rw-r--r--project/vs2015.UWP/raylib.App.UWP/App.h41
1 files changed, 41 insertions, 0 deletions
diff --git a/project/vs2015.UWP/raylib.App.UWP/App.h b/project/vs2015.UWP/raylib.App.UWP/App.h
new file mode 100644
index 00000000..3f27eeb0
--- /dev/null
+++ b/project/vs2015.UWP/raylib.App.UWP/App.h
@@ -0,0 +1,41 @@
+#pragma once
+
+#include <string>
+
+#include "pch.h"
+
+namespace raylibUWP
+{
+ ref class App sealed : public Windows::ApplicationModel::Core::IFrameworkView
+ {
+ public:
+ App();
+
+ // IFrameworkView Methods.
+ virtual void Initialize(Windows::ApplicationModel::Core::CoreApplicationView^ applicationView);
+ virtual void SetWindow(Windows::UI::Core::CoreWindow^ window);
+ virtual void Load(Platform::String^ entryPoint);
+ virtual void Run();
+ virtual void Uninitialize();
+
+ protected:
+
+ // Application lifecycle event handlers.
+ void OnActivated(Windows::ApplicationModel::Core::CoreApplicationView^ applicationView, Windows::ApplicationModel::Activation::IActivatedEventArgs^ args);
+ void OnResuming(Platform::Object^ sender, Platform::Object^ args);
+
+ // Window event handlers.
+ void OnWindowSizeChanged(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::WindowSizeChangedEventArgs^ args);
+ void OnVisibilityChanged(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::VisibilityChangedEventArgs^ args);
+ void OnWindowClosed(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::CoreWindowEventArgs^ args);
+
+ // DisplayInformation event handlers.
+ void OnDpiChanged(Windows::Graphics::Display::DisplayInformation^ sender, Platform::Object^ args);
+ void OnOrientationChanged(Windows::Graphics::Display::DisplayInformation^ sender, Platform::Object^ args);
+
+ private:
+
+ bool mWindowClosed;
+ bool mWindowVisible;
+ };
+}