26 using SiliconStudio.Paradox.Graphics;
27 using SiliconStudio.Core;
28 using SiliconStudio.Core.Mathematics;
30 namespace SiliconStudio.
Paradox.Games
74 #region Public Properties
79 public abstract bool AllowUserResizing {
get; set; }
97 public abstract bool IsMinimized {
get; }
103 public abstract bool IsMouseVisible {
get; set; }
115 public abstract bool Visible {
get; set; }
120 public virtual Int2 Position {
get; set; }
126 public abstract bool IsBorderLess {
get; set; }
142 throw new ArgumentNullException(
"value");
155 #region Public Methods and Operators
157 public abstract void BeginScreenDeviceChange(
bool willBeFullScreen);
161 EndScreenDeviceChange(ClientBounds.Width, ClientBounds.Height);
164 public abstract void EndScreenDeviceChange(
int clientWidth,
int clientHeight);
174 internal abstract bool CanHandle(
GameContext gameContext);
176 internal abstract void Initialize(
GameContext gameContext);
178 internal bool Exiting;
180 internal Action InitCallback;
182 internal Action RunCallback;
184 internal Action ExitCallback;
186 internal abstract void Run();
188 internal abstract void Resize(
int width,
int height);
192 protected internal abstract void SetSupportedOrientations(
DisplayOrientation orientations);
198 EventHandler<EventArgs> handler = Activated;
207 EventHandler<EventArgs> handler = ClientSizeChanged;
218 EventHandler<EventArgs> handler = Deactivated;
227 EventHandler<EventArgs> handler = OrientationChanged;
234 protected abstract void SetTitle(
string title);
238 internal void OnPause()
243 internal void OnResume()
void EndScreenDeviceChange()
HRESULT Resize(_In_ const Image &srcImage, _In_ size_t width, _In_ size_t height, _In_ DWORD filter, _Out_ ScratchImage &image)
EventHandler< EventArgs > Deactivated
Occurs when this window is deactivated.
bool IsActivated
Indicate if the window is currently activated.
A platform specific window handle.
void OnOrientationChanged(object source, EventArgs e)
A service registry is a IServiceProvider that provides methods to register and unregister services...
DisplayOrientation
Describes the orientation of the display.
Base class for a framework component.
void OnActivated(object source, EventArgs e)
EventHandler< EventArgs > OrientationChanged
Occurs, when device orientation is changed.
Represents a three dimensional mathematical vector.
Contains context used to render the game (Control for WinForm, a DrawingSurface for WP8...
EventHandler< EventArgs > Activated
Occurs when this window is activated.
EventHandler< EventArgs > ClientSizeChanged
Occurs, when device client size is changed.
Structure using the same layout than System.Drawing.Rectangle
void OnClientSizeChanged(object source, EventArgs e)
void OnDeactivated(object source, EventArgs e)