Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Latest commit

 

History

History
52 lines (46 loc) · 2.68 KB

SDL_WinRTApp.h

File metadata and controls

52 lines (46 loc) · 2.68 KB
 
Feb 24, 2013
Feb 24, 2013
3
struct SDL_WindowData;
4
5
6
7
ref class SDL_WinRTApp sealed : public Windows::ApplicationModel::Core::IFrameworkView
{
public:
Jan 9, 2013
Jan 9, 2013
8
9
10
11
12
13
14
15
SDL_WinRTApp();
// 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();
Oct 28, 2012
Oct 28, 2012
17
18
19
internal:
// SDL-specific methods
SDL_DisplayMode GetMainDisplayMode();
Oct 29, 2012
Oct 29, 2012
20
void PumpEvents();
Oct 30, 2012
Oct 30, 2012
21
const SDL_WindowData * GetSDLWindowData() const;
Oct 29, 2012
Oct 29, 2012
22
bool HasSDLWindowData() const;
Dec 28, 2012
Dec 28, 2012
23
void SetRelativeMouseMode(bool enable);
Oct 30, 2012
Oct 30, 2012
24
void SetSDLWindowData(const SDL_WindowData * windowData);
Feb 18, 2013
Feb 18, 2013
25
void SetSDLVideoDevice(const SDL_VideoDevice * videoDevice);
Nov 26, 2012
Nov 26, 2012
26
Windows::Foundation::Point TransformCursor(Windows::Foundation::Point rawPosition);
Oct 28, 2012
Oct 28, 2012
27
Jan 9, 2013
Jan 9, 2013
29
// Event Handlers.
May 26, 2013
May 26, 2013
30
void OnOrientationChanged(Platform::Object^ sender);
Jan 9, 2013
Jan 9, 2013
31
32
33
34
35
36
37
38
39
void OnWindowSizeChanged(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::WindowSizeChangedEventArgs^ args);
void OnLogicalDpiChanged(Platform::Object^ sender);
void OnActivated(Windows::ApplicationModel::Core::CoreApplicationView^ applicationView, Windows::ApplicationModel::Activation::IActivatedEventArgs^ args);
void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ args);
void OnResuming(Platform::Object^ sender, Platform::Object^ args);
void OnWindowClosed(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::CoreWindowEventArgs^ args);
void OnVisibilityChanged(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::VisibilityChangedEventArgs^ args);
void OnPointerPressed(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::PointerEventArgs^ args);
void OnPointerReleased(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::PointerEventArgs^ args);
Feb 10, 2013
Feb 10, 2013
40
void OnPointerWheelChanged(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::PointerEventArgs^ args);
Jan 9, 2013
Jan 9, 2013
41
void OnPointerMoved(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::PointerEventArgs^ args);
Dec 28, 2012
Dec 28, 2012
42
void OnMouseMoved(Windows::Devices::Input::MouseDevice^ mouseDevice, Windows::Devices::Input::MouseEventArgs^ args);
Nov 4, 2012
Nov 4, 2012
43
44
void OnKeyDown(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::KeyEventArgs^ args);
void OnKeyUp(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::KeyEventArgs^ args);
Feb 3, 2013
Feb 3, 2013
46
private:
Jan 9, 2013
Jan 9, 2013
47
48
bool m_windowClosed;
bool m_windowVisible;
Oct 29, 2012
Oct 29, 2012
49
const SDL_WindowData* m_sdlWindowData;
Feb 18, 2013
Feb 18, 2013
50
const SDL_VideoDevice* m_sdlVideoDevice;
Dec 28, 2012
Dec 28, 2012
51
bool m_useRelativeMouseMode;