+++ /dev/null
-/*\r
-* Copyright (c) 2007-2010 SlimDX Group\r
-* \r
-* Permission is hereby granted, free of charge, to any person obtaining a copy\r
-* of this software and associated documentation files (the "Software"), to deal\r
-* in the Software without restriction, including without limitation the rights\r
-* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell\r
-* copies of the Software, and to permit persons to whom the Software is\r
-* furnished to do so, subject to the following conditions:\r
-* \r
-* The above copyright notice and this permission notice shall be included in\r
-* all copies or substantial portions of the Software.\r
-* \r
-* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR\r
-* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,\r
-* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE\r
-* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER\r
-* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,\r
-* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN\r
-* THE SOFTWARE.\r
-*/\r
-#pragma once\r
-\r
-#include "DisplayMonitor.h"\r
-\r
-namespace SlimDX\r
-{\r
- namespace Windows\r
- {\r
- public ref class RenderForm : System::Windows::Forms::Form\r
- {\r
- private:\r
- void Construct( System::String^ text );\r
- void UpdateScreen();\r
-\r
- DisplayMonitor^ monitor;\r
- System::Drawing::Size cachedSize;\r
- bool sizeMove;\r
- bool minimized;\r
- bool maximized;\r
-\r
- protected:\r
- virtual void OnUserResized( System::EventArgs^ e );\r
- virtual void OnMonitorChanged( System::EventArgs^ e );\r
- virtual void OnAppActivated( System::EventArgs^ e );\r
- virtual void OnAppDeactivated( System::EventArgs^ e );\r
- virtual void OnPauseRendering( System::EventArgs^ e );\r
- virtual void OnResumeRendering( System::EventArgs^ e );\r
- virtual void OnSystemSuspend( System::EventArgs^ e );\r
- virtual void OnSystemResume( System::EventArgs^ e );\r
- virtual void OnScreensaver( System::ComponentModel::CancelEventArgs^ e );\r
-\r
- virtual void OnResizeBegin( System::EventArgs^ e ) override;\r
- virtual void OnResizeEnd( System::EventArgs^ e ) override;\r
- virtual void OnLoad( System::EventArgs^ e ) override;\r
- virtual void OnPaintBackground( System::Windows::Forms::PaintEventArgs^ e ) override;\r
-\r
- virtual void WndProc( System::Windows::Forms::Message% m ) override;\r
-\r
- public:\r
- RenderForm();\r
- RenderForm( System::String^ text );\r
-\r
- event System::EventHandler^ PauseRendering;\r
- event System::EventHandler^ ResumeRendering;\r
- event System::EventHandler^ UserResized;\r
- event System::EventHandler^ MonitorChanged;\r
- event System::EventHandler^ AppActivated;\r
- event System::EventHandler^ AppDeactivated;\r
- event System::EventHandler^ SystemSuspend;\r
- event System::EventHandler^ SystemResume;\r
- event System::ComponentModel::CancelEventHandler^ Screensaver;\r
-\r
- property DisplayMonitor^ Monitor\r
- {\r
- DisplayMonitor^ get() { return monitor; }\r
- }\r
- };\r
- }\r
-}
\ No newline at end of file