src/video/windowsrt/SDL_WinRTApp.h
changeset 8384 bc7a52629e1e
parent 8378 357a8e1166e5
child 8400 1315402d9028
     1.1 --- a/src/video/windowsrt/SDL_WinRTApp.h	Tue Jan 08 22:50:29 2013 -0500
     1.2 +++ b/src/video/windowsrt/SDL_WinRTApp.h	Tue Jan 08 23:11:22 2013 -0500
     1.3 @@ -10,14 +10,14 @@
     1.4  ref class SDL_WinRTApp sealed : public Windows::ApplicationModel::Core::IFrameworkView
     1.5  {
     1.6  public:
     1.7 -	SDL_WinRTApp();
     1.8 -	
     1.9 -	// IFrameworkView Methods.
    1.10 -	virtual void Initialize(Windows::ApplicationModel::Core::CoreApplicationView^ applicationView);
    1.11 -	virtual void SetWindow(Windows::UI::Core::CoreWindow^ window);
    1.12 -	virtual void Load(Platform::String^ entryPoint);
    1.13 -	virtual void Run();
    1.14 -	virtual void Uninitialize();
    1.15 +    SDL_WinRTApp();
    1.16 +    
    1.17 +    // IFrameworkView Methods.
    1.18 +    virtual void Initialize(Windows::ApplicationModel::Core::CoreApplicationView^ applicationView);
    1.19 +    virtual void SetWindow(Windows::UI::Core::CoreWindow^ window);
    1.20 +    virtual void Load(Platform::String^ entryPoint);
    1.21 +    virtual void Run();
    1.22 +    virtual void Uninitialize();
    1.23  
    1.24  internal:
    1.25      // SDL-specific methods
    1.26 @@ -32,25 +32,25 @@
    1.27      Windows::Foundation::Point TransformCursor(Windows::Foundation::Point rawPosition);
    1.28  
    1.29  protected:
    1.30 -	// Event Handlers.
    1.31 -	void OnWindowSizeChanged(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::WindowSizeChangedEventArgs^ args);
    1.32 -	void OnLogicalDpiChanged(Platform::Object^ sender);
    1.33 -	void OnActivated(Windows::ApplicationModel::Core::CoreApplicationView^ applicationView, Windows::ApplicationModel::Activation::IActivatedEventArgs^ args);
    1.34 -	void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ args);
    1.35 -	void OnResuming(Platform::Object^ sender, Platform::Object^ args);
    1.36 -	void OnWindowClosed(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::CoreWindowEventArgs^ args);
    1.37 -	void OnVisibilityChanged(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::VisibilityChangedEventArgs^ args);
    1.38 -	void OnPointerPressed(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::PointerEventArgs^ args);
    1.39 -	void OnPointerReleased(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::PointerEventArgs^ args);
    1.40 -	void OnPointerMoved(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::PointerEventArgs^ args);
    1.41 +    // Event Handlers.
    1.42 +    void OnWindowSizeChanged(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::WindowSizeChangedEventArgs^ args);
    1.43 +    void OnLogicalDpiChanged(Platform::Object^ sender);
    1.44 +    void OnActivated(Windows::ApplicationModel::Core::CoreApplicationView^ applicationView, Windows::ApplicationModel::Activation::IActivatedEventArgs^ args);
    1.45 +    void OnSuspending(Platform::Object^ sender, Windows::ApplicationModel::SuspendingEventArgs^ args);
    1.46 +    void OnResuming(Platform::Object^ sender, Platform::Object^ args);
    1.47 +    void OnWindowClosed(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::CoreWindowEventArgs^ args);
    1.48 +    void OnVisibilityChanged(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::VisibilityChangedEventArgs^ args);
    1.49 +    void OnPointerPressed(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::PointerEventArgs^ args);
    1.50 +    void OnPointerReleased(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::PointerEventArgs^ args);
    1.51 +    void OnPointerMoved(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::PointerEventArgs^ args);
    1.52      void OnMouseMoved(Windows::Devices::Input::MouseDevice^ mouseDevice, Windows::Devices::Input::MouseEventArgs^ args);
    1.53      void OnKeyDown(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::KeyEventArgs^ args);
    1.54      void OnKeyUp(Windows::UI::Core::CoreWindow^ sender, Windows::UI::Core::KeyEventArgs^ args);
    1.55  
    1.56  private:
    1.57 -	SDL_winrtrenderer^ m_renderer;
    1.58 -	bool m_windowClosed;
    1.59 -	bool m_windowVisible;
    1.60 +    SDL_winrtrenderer^ m_renderer;
    1.61 +    bool m_windowClosed;
    1.62 +    bool m_windowVisible;
    1.63      const SDL_WindowData* m_sdlWindowData;
    1.64      bool m_useRelativeMouseMode;
    1.65  };
    1.66 @@ -58,5 +58,5 @@
    1.67  ref class Direct3DApplicationSource sealed : Windows::ApplicationModel::Core::IFrameworkViewSource
    1.68  {
    1.69  public:
    1.70 -	virtual Windows::ApplicationModel::Core::IFrameworkView^ CreateView();
    1.71 +    virtual Windows::ApplicationModel::Core::IFrameworkView^ CreateView();
    1.72  };